; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/External/fastjet-3.0.0/src (MinHeap)

; 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.fastjet::MinHeap" = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<fastjet::MinHeap::ValueLoc, std::allocator<fastjet::MinHeap::ValueLoc>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::MinHeap::ValueLoc, std::allocator<fastjet::MinHeap::ValueLoc>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::MinHeap::ValueLoc, std::allocator<fastjet::MinHeap::ValueLoc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::MinHeap::ValueLoc, std::allocator<fastjet::MinHeap::ValueLoc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.fastjet::MinHeap::ValueLoc" = type { double, ptr }

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7fastjet7MinHeap11_initialiseERKSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #2
  %13 = trunc i64 %12 to i32
  store i32 %13, ptr %5, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %37, %2
  %15 = load i32, ptr %5, align 4, !tbaa !9
  %16 = zext i32 %15 to i64
  %17 = getelementptr inbounds %"class.fastjet::MinHeap", ptr %10, i32 0, i32 0
  %18 = call noundef i64 @_ZNKSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #2
  %19 = icmp ult i64 %16, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  br label %40

21:                                               ; preds = %14
  %22 = call noundef double @_ZNSt14numeric_limitsIdE3maxEv() #2
  %23 = getelementptr inbounds %"class.fastjet::MinHeap", ptr %10, i32 0, i32 0
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %25) #2
  %27 = getelementptr inbounds %"struct.fastjet::MinHeap::ValueLoc", ptr %26, i32 0, i32 0
  store double %22, ptr %27, align 8, !tbaa !11
  %28 = getelementptr inbounds %"class.fastjet::MinHeap", ptr %10, i32 0, i32 0
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %30) #2
  %32 = getelementptr inbounds %"class.fastjet::MinHeap", ptr %10, i32 0, i32 0
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #2
  %36 = getelementptr inbounds %"struct.fastjet::MinHeap::ValueLoc", ptr %35, i32 0, i32 1
  store ptr %31, ptr %36, align 8, !tbaa !14
  br label %37

37:                                               ; preds = %21
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = add i32 %38, 1
  store i32 %39, ptr %5, align 4, !tbaa !9
  br label %14, !llvm.loop !15

40:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %68, %40
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #2
  %46 = icmp ult i64 %43, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  br label %71

48:                                               ; preds = %41
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %51) #2
  %53 = load double, ptr %52, align 8, !tbaa !17
  %54 = getelementptr inbounds %"class.fastjet::MinHeap", ptr %10, i32 0, i32 0
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %56) #2
  %58 = getelementptr inbounds %"struct.fastjet::MinHeap::ValueLoc", ptr %57, i32 0, i32 0
  store double %53, ptr %58, align 8, !tbaa !11
  %59 = getelementptr inbounds %"class.fastjet::MinHeap", ptr %10, i32 0, i32 0
  %60 = load i32, ptr %6, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %61) #2
  %63 = getelementptr inbounds %"class.fastjet::MinHeap", ptr %10, i32 0, i32 0
  %64 = load i32, ptr %6, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %65) #2
  %67 = getelementptr inbounds %"struct.fastjet::MinHeap::ValueLoc", ptr %66, i32 0, i32 1
  store ptr %62, ptr %67, align 8, !tbaa !14
  br label %68

68:                                               ; preds = %48
  %69 = load i32, ptr %6, align 4, !tbaa !9
  %70 = add i32 %69, 1
  store i32 %70, ptr %6, align 4, !tbaa !9
  br label %41, !llvm.loop !18

71:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  %72 = getelementptr inbounds %"class.fastjet::MinHeap", ptr %10, i32 0, i32 0
  %73 = call noundef i64 @_ZNKSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #2
  %74 = sub i64 %73, 1
  %75 = trunc i64 %74 to i32
  store i32 %75, ptr %7, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %109, %71
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = icmp ugt i32 %77, 0
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  br label %112

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  %81 = getelementptr inbounds %"class.fastjet::MinHeap", ptr %10, i32 0, i32 0
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = sub i32 %82, 1
  %84 = udiv i32 %83, 2
  %85 = zext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %85) #2
  store ptr %86, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %87 = getelementptr inbounds %"class.fastjet::MinHeap", ptr %10, i32 0, i32 0
  %88 = load i32, ptr %7, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #2
  store ptr %90, ptr %9, align 8, !tbaa !5
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.fastjet::MinHeap::ValueLoc", ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !14
  %94 = getelementptr inbounds %"struct.fastjet::MinHeap::ValueLoc", ptr %93, i32 0, i32 0
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.fastjet::MinHeap::ValueLoc", ptr %96, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  %99 = getelementptr inbounds %"struct.fastjet::MinHeap::ValueLoc", ptr %98, i32 0, i32 0
  %100 = load double, ptr %99, align 8, !tbaa !11
  %101 = fcmp olt double %95, %100
  br i1 %101, label %102, label %108

102:                                              ; preds = %80
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.fastjet::MinHeap::ValueLoc", ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !14
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.fastjet::MinHeap::ValueLoc", ptr %106, i32 0, i32 1
  store ptr %105, ptr %107, align 8, !tbaa !14
  br label %108

108:                                              ; preds = %102, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %7, align 4, !tbaa !9
  %111 = add i32 %110, -1
  store i32 %111, ptr %7, align 4, !tbaa !9
  br label %76, !llvm.loop !19

112:                                              ; preds = %79
  ret void
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE3maxEv() #0 align 2

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

; 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 nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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 = { 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, !13, i64 0}
!12 = !{!"_ZTSN7fastjet7MinHeap8ValueLocE", !13, i64 0, !6, i64 8}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!13, !13, i64 0}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7fastjet7MinHeap11_initialiseERKSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 align 2 {
  %3 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #1
  %4 = and i64 %3, 4294967295
  %5 = tail call noundef i64 @_ZNKSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #1
  %6 = icmp ugt i64 %5, %4
  br i1 %6, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %2
  %7 = trunc i64 %3 to i32
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %2
  %8 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #1
  %.not36 = icmp eq i64 %8, 0
  br i1 %.not36, label %._crit_edge, label %.lr.ph28

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %9 = phi i64 [ %16, %.lr.ph ], [ %4, %.lr.ph.preheader ]
  %.026 = phi i32 [ %15, %.lr.ph ], [ %7, %.lr.ph.preheader ]
  %10 = tail call noundef double @_ZNSt14numeric_limitsIdE3maxEv() #1
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %9) #1
  store double %10, ptr %11, align 8, !tbaa !5
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %9) #1
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %9) #1
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %12, ptr %14, align 8, !tbaa !11
  %15 = add i32 %.026, 1
  %16 = zext i32 %15 to i64
  %17 = tail call noundef i64 @_ZNKSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #1
  %18 = icmp ugt i64 %17, %16
  br i1 %18, label %.lr.ph, label %.preheader, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph28, %.preheader
  %19 = tail call noundef i64 @_ZNKSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #1
  %20 = trunc i64 %19 to i32
  %.02329 = add i32 %20, -1
  %.not30 = icmp eq i32 %.02329, 0
  br i1 %.not30, label %._crit_edge35, label %.lr.ph34.preheader

.lr.ph34.preheader:                               ; preds = %._crit_edge
  %21 = zext i32 %.02329 to i64
  br label %.lr.ph34

.lr.ph28:                                         ; preds = %.preheader, %.lr.ph28
  %22 = phi i64 [ %30, %.lr.ph28 ], [ 0, %.preheader ]
  %.02227 = phi i32 [ %29, %.lr.ph28 ], [ 0, %.preheader ]
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %22) #1
  %24 = load double, ptr %23, align 8, !tbaa !14
  %25 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %22) #1
  store double %24, ptr %25, align 8, !tbaa !5
  %26 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %22) #1
  %27 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %22) #1
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  store ptr %26, ptr %28, align 8, !tbaa !11
  %29 = add i32 %.02227, 1
  %30 = zext i32 %29 to i64
  %31 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #1
  %32 = icmp ugt i64 %31, %30
  br i1 %32, label %.lr.ph28, label %._crit_edge, !llvm.loop !15

._crit_edge35:                                    ; preds = %46, %._crit_edge
  ret void

.lr.ph34:                                         ; preds = %.lr.ph34.preheader, %46
  %indvars.iv = phi i64 [ %21, %.lr.ph34.preheader ], [ %indvars.iv.next, %46 ]
  %.023.in31 = phi i64 [ %19, %.lr.ph34.preheader ], [ %indvars.iv, %46 ]
  %33 = add i64 %.023.in31, 4294967294
  %34 = lshr i64 %33, 1
  %35 = and i64 %34, 2147483647
  %36 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %35) #1
  %37 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #1
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %36, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = fcmp olt double %40, %43
  br i1 %44, label %45, label %46

45:                                               ; preds = %.lr.ph34
  store ptr %39, ptr %41, align 8, !tbaa !11
  br label %46

46:                                               ; preds = %45, %.lr.ph34
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %47 = and i64 %indvars.iv.next, 4294967295
  %.not = icmp eq i64 %47, 0
  br i1 %.not, label %._crit_edge35, label %.lr.ph34, !llvm.loop !16
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE3maxEv() local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN7fastjet7MinHeap8ValueLocESaIS2_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 nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass