; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/External/fastjet-3.0.0/plugins/Jade (JadePlugin)

; 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::NNH" = type { ptr, ptr, ptr, i32, %"class.std::vector.16" }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *, std::allocator<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *, std::allocator<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *, std::allocator<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *, std::allocator<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7fastjet10JadePlugin14run_clusteringERNS_15ClusterSequenceE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(276) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.fastjet::NNH", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %15)
  %17 = call noundef i64 @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  %18 = trunc i64 %17 to i32
  store i32 %18, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %6) #4
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %19)
  call void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEEC2ERKSt6vectorINS_9PseudoJetESaIS5_EE(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 8 dereferenceable(24) %20)
  br label %21

21:                                               ; preds = %77, %2
  %22 = load i32, ptr %5, align 4, !tbaa !9
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %24, label %81

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %25 = invoke noundef double @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE7dij_minERiS4_(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %26 unwind label %45

26:                                               ; preds = %24
  store double %25, ptr %10, align 8, !tbaa !11
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = icmp sge i32 %27, 0
  br i1 %28, label %29, label %49

29:                                               ; preds = %26
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = load double, ptr %10, align 8, !tbaa !11
  invoke void @_ZN7fastjet15ClusterSequence30plugin_record_ij_recombinationEiidRi(ptr noundef nonnull align 8 dereferenceable(276) %30, i32 noundef %31, i32 noundef %32, double noundef %33, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %34 unwind label %45

34:                                               ; preds = %29
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %37)
          to label %39 unwind label %45

39:                                               ; preds = %34
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %41) #4
  %43 = load i32, ptr %9, align 4, !tbaa !9
  invoke void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE10merge_jetsEiiRKNS_9PseudoJetEi(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef %35, i32 noundef %36, ptr noundef nonnull align 8 dereferenceable(88) %42, i32 noundef %43)
          to label %44 unwind label %45

44:                                               ; preds = %39
  br label %77

45:                                               ; preds = %39, %34, %29, %24
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %11, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %12, align 4
  br label %80

49:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %50)
          to label %52 unwind label %73

52:                                               ; preds = %49
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %54) #4
  %56 = invoke noundef double @_ZNK7fastjet9PseudoJet1EEv(ptr noundef nonnull align 8 dereferenceable(88) %55)
          to label %57 unwind label %73

57:                                               ; preds = %52
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %58)
          to label %60 unwind label %73

60:                                               ; preds = %57
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %62) #4
  %64 = invoke noundef double @_ZNK7fastjet9PseudoJet1EEv(ptr noundef nonnull align 8 dereferenceable(88) %63)
          to label %65 unwind label %73

65:                                               ; preds = %60
  %66 = fmul double %56, %64
  store double %66, ptr %13, align 8, !tbaa !11
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = load double, ptr %13, align 8, !tbaa !11
  invoke void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276) %67, i32 noundef %68, double noundef %69)
          to label %70 unwind label %73

70:                                               ; preds = %65
  %71 = load i32, ptr %7, align 4, !tbaa !9
  invoke void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE10remove_jetEi(ptr noundef nonnull align 8 dereferenceable(56) %6, i32 noundef %71)
          to label %72 unwind label %73

72:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %77

73:                                               ; preds = %70, %65, %60, %57, %52, %49
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %80

77:                                               ; preds = %72, %44
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = add nsw i32 %78, -1
  store i32 %79, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %21, !llvm.loop !13

80:                                               ; preds = %73, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %82

81:                                               ; preds = %21
  call void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void

82:                                               ; preds = %80
  %83 = load ptr, ptr %11, align 8
  %84 = load i32, ptr %12, align 4
  %85 = insertvalue { ptr, i32 } poison, ptr %83, 0
  %86 = insertvalue { ptr, i32 } %85, i32 %84, 1
  resume { ptr, i32 } %86
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE7dij_minERiS4_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet15ClusterSequence30plugin_record_ij_recombinationEiidRi(ptr noundef nonnull align 8 dereferenceable(276), i32 noundef, i32 noundef, double noundef, ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE10merge_jetsEiiRKNS_9PseudoJetEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7fastjet9PseudoJet1EEv(ptr noundef nonnull align 8 dereferenceable(88)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276), i32 noundef, double noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE10remove_jetEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 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 = { inlinehint 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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!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.fastjet::NNH" = type { ptr, ptr, ptr, i32, %"class.std::vector.16" }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *, std::allocator<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *, std::allocator<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *, std::allocator<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *, std::allocator<fastjet::NNH<fastjet::JadeBriefJet>::NNBJ *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7fastjet10JadePlugin14run_clusteringERNS_15ClusterSequenceE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(276) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.fastjet::NNH", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %1)
  %8 = tail call noundef i64 @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %9 = trunc i64 %8 to i32
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #4
  %10 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %1)
  call void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEEC2ERKSt6vectorINS_9PseudoJetESaIS5_EE(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(24) %10)
  %11 = icmp sgt i32 %9, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %45
  %.017 = phi i32 [ %46, %45 ], [ %9, %2 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %12 = invoke noundef double @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE7dij_minERiS4_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %13 unwind label %26

13:                                               ; preds = %.lr.ph
  %14 = load i32, ptr %5, align 4, !tbaa !5
  %15 = icmp sgt i32 %14, -1
  br i1 %15, label %16, label %28

16:                                               ; preds = %13
  %17 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_ZN7fastjet15ClusterSequence30plugin_record_ij_recombinationEiidRi(ptr noundef nonnull align 8 dereferenceable(276) %1, i32 noundef %17, i32 noundef %14, double noundef %12, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %18 unwind label %26

18:                                               ; preds = %16
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %1)
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %23) #4
  %25 = load i32, ptr %6, align 4, !tbaa !5
  invoke void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE10merge_jetsEiiRKNS_9PseudoJetEi(ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %19, i32 noundef %20, ptr noundef nonnull align 8 dereferenceable(88) %24, i32 noundef %25)
          to label %45 unwind label %26

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

28:                                               ; preds = %13
  %29 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %1)
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %31) #4
  %33 = call noundef double @_ZNK7fastjet9PseudoJet1EEv(ptr noundef nonnull align 8 dereferenceable(88) %32)
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276) %1)
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %36) #4
  %38 = call noundef double @_ZNK7fastjet9PseudoJet1EEv(ptr noundef nonnull align 8 dereferenceable(88) %37)
  %39 = fmul double %33, %38
  %40 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_ZN7fastjet15ClusterSequence30plugin_record_iB_recombinationEid(ptr noundef nonnull align 8 dereferenceable(276) %1, i32 noundef %40, double noundef %39)
          to label %41 unwind label %43

41:                                               ; preds = %28
  %42 = load i32, ptr %4, align 4, !tbaa !5
  call void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE10remove_jetEi(ptr noundef nonnull align 8 dereferenceable(56) %3, i32 noundef %42)
  br label %45

43:                                               ; preds = %28
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %48

45:                                               ; preds = %18, %41
  %46 = add nsw i32 %.017, -1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  %47 = icmp sgt i32 %.017, 1
  br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !9

48:                                               ; preds = %43, %26
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn

._crit_edge:                                      ; preds = %45, %2
  call void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7fastjet15ClusterSequence4jetsEv(ptr noundef nonnull align 8 dereferenceable(276)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE7dij_minERiS4_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet15ClusterSequence30plugin_record_ij_recombinationEiidRi(ptr noundef nonnull align 8 dereferenceable(276), i32 noundef, i32 noundef, double noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7fastjet9PseudoJet1EEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEE10remove_jetEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet3NNHINS_12JadeBriefJetENS_7_NoInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 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 = { inlinehint 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 = { 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 #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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