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

; 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<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::auto_ptr.1" = type { ptr }
%"class.fastjet::GhostedAreaSpec" = type { double, double, i32, double, double, double, double, i8, %"class.fastjet::Selector", double, double, double, i32, i32, i32, %"class.std::vector.16" }
%"class.fastjet::Selector" = type { ptr, %"class.fastjet::SharedPtr.15" }
%"class.fastjet::SharedPtr.15" = type { ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::AreaDefinition" = type { i32, %"class.fastjet::GhostedAreaSpec", %"class.fastjet::VoronoiAreaSpec" }
%"class.fastjet::VoronoiAreaSpec" = type { double }

@_ZN7fastjet8fwrapper15input_particlesE = external dso_local global %"class.std::vector", align 8
@_ZN7fastjet8fwrapper4jetsE = external dso_local global %"class.std::vector", align 8
@_ZN7fastjet8fwrapper2csE = external dso_local global %"class.std::auto_ptr.1", align 8

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet8fwrapper24transfer_input_particlesEPKdRKi(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet8fwrapper13transfer_jetsEPdRi(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet8fwrapper25transfer_cluster_transferEPKdRKiRKNS_13JetDefinitionEPdRiRS1_S4_SA_(ptr noundef %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #1 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i1, align 1
  %21 = alloca %"class.fastjet::GhostedAreaSpec", align 8
  %22 = alloca %"class.fastjet::AreaDefinition", align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.std::vector", align 8
  %25 = alloca double, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN7fastjet8fwrapper24transfer_input_particlesEPKdRKi(ptr noundef %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %28 = load ptr, ptr %14, align 8, !tbaa !5
  %29 = load double, ptr %28, align 8, !tbaa !9
  %30 = fcmp oeq double %29, 0.000000e+00
  br i1 %30, label %31, label %42

31:                                               ; preds = %8
  %32 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 280) #7
  store i1 true, ptr %20, align 1
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  store i8 0, ptr %17, align 1, !tbaa !11
  invoke void @_ZN7fastjet15ClusterSequenceC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb(ptr noundef nonnull align 8 dereferenceable(276) %32, ptr noundef nonnull align 8 dereferenceable(24) @_ZN7fastjet8fwrapper15input_particlesE, ptr noundef nonnull align 8 dereferenceable(80) %33, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %34 unwind label %35

34:                                               ; preds = %31
  store i1 false, ptr %20, align 1
  call void @_ZNSt8auto_ptrIN7fastjet15ClusterSequenceEE5resetEPS1_(ptr noundef nonnull align 8 dereferenceable(8) @_ZN7fastjet8fwrapper2csE, ptr noundef %32) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  br label %68

35:                                               ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %18, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  %39 = load i1, ptr %20, align 1
  br i1 %39, label %40, label %41

40:                                               ; preds = %35
  call void @_ZdlPvm(ptr noundef %32, i64 noundef 280) #9
  br label %41

41:                                               ; preds = %40, %35
  br label %78

42:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 144, ptr %21) #8
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = load i32, ptr %45, align 4, !tbaa !13
  %47 = load ptr, ptr %16, align 8, !tbaa !5
  %48 = load double, ptr %47, align 8, !tbaa !9
  call void @_ZN7fastjet15GhostedAreaSpecC2Edidddd(ptr noundef nonnull align 8 dereferenceable(144) %21, double noundef %44, i32 noundef %46, double noundef %48, double noundef 1.000000e+00, double noundef 1.000000e-01, double noundef 1.000000e-100)
  call void @llvm.lifetime.start.p0(i64 160, ptr %22) #8
  invoke void @_ZN7fastjet14AreaDefinitionC2ENS_8AreaTypeERKNS_15GhostedAreaSpecE(ptr noundef nonnull align 8 dereferenceable(160) %22, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(144) %21)
          to label %49 unwind label %54

49:                                               ; preds = %42
  %50 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 448) #7
          to label %51 unwind label %58

51:                                               ; preds = %49
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN7fastjet19ClusterSequenceAreaC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKNS_14AreaDefinitionE(ptr noundef nonnull align 8 dereferenceable(448) %50, ptr noundef nonnull align 8 dereferenceable(24) @_ZN7fastjet8fwrapper15input_particlesE, ptr noundef nonnull align 8 dereferenceable(80) %52, ptr noundef nonnull align 8 dereferenceable(160) %22)
          to label %53 unwind label %62

53:                                               ; preds = %51
  call void @_ZNSt8auto_ptrIN7fastjet15ClusterSequenceEE5resetEPS1_(ptr noundef nonnull align 8 dereferenceable(8) @_ZN7fastjet8fwrapper2csE, ptr noundef %50) #8
  call void @_ZN7fastjet14AreaDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %22) #8
  call void @llvm.lifetime.end.p0(i64 160, ptr %22) #8
  call void @_ZN7fastjet15GhostedAreaSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %21) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %21) #8
  br label %68

54:                                               ; preds = %42
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %18, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %19, align 4
  br label %67

58:                                               ; preds = %49
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %18, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %19, align 4
  br label %66

62:                                               ; preds = %51
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %18, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %50, i64 noundef 448) #9
  br label %66

66:                                               ; preds = %62, %58
  call void @_ZN7fastjet14AreaDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %22) #8
  br label %67

67:                                               ; preds = %66, %54
  call void @llvm.lifetime.end.p0(i64 160, ptr %22) #8
  call void @_ZN7fastjet15GhostedAreaSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %21) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %21) #8
  br label %78

68:                                               ; preds = %53, %34
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  %69 = call noundef ptr @_ZNKSt8auto_ptrIN7fastjet15ClusterSequenceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN7fastjet8fwrapper2csE) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  store double 0.000000e+00, ptr %25, align 8, !tbaa !9
  call void @_ZNK7fastjet15ClusterSequence14inclusive_jetsERKd(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %24, ptr noundef nonnull align 8 dereferenceable(276) %69, ptr noundef nonnull align 8 dereferenceable(8) %25)
  invoke void @_ZN7fastjet12sorted_by_ptERKSt6vectorINS_9PseudoJetESaIS1_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %24)
          to label %70 unwind label %74

70:                                               ; preds = %68
  %71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @_ZN7fastjet8fwrapper4jetsE, ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  call void @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  call void @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN7fastjet8fwrapper13transfer_jetsEPdRi(ptr noundef %72, ptr noundef nonnull align 4 dereferenceable(4) %73)
  ret void

74:                                               ; preds = %68
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %18, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %19, align 4
  call void @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  br label %78

78:                                               ; preds = %74, %67, %41
  %79 = load ptr, ptr %18, align 8
  %80 = load i32, ptr %19, align 4
  %81 = insertvalue { ptr, i32 } poison, ptr %79, 0
  %82 = insertvalue { ptr, i32 } %81, i32 %80, 1
  resume { ptr, i32 } %82
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt8auto_ptrIN7fastjet15ClusterSequenceEE5resetEPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet14AreaDefinitionC2ENS_8AreaTypeERKNS_15GhostedAreaSpecE(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef, ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet14AreaDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet15GhostedAreaSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #5 align 2

declare void @_ZN7fastjet12sorted_by_ptERKSt6vectorINS_9PseudoJetESaIS1_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #6

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

declare void @_ZNK7fastjet15ClusterSequence14inclusive_jetsERKd(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(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 = { nobuiltin nounwind "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 = { 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 #6 = { "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 #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}


; 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<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::auto_ptr.1" = type { ptr }
%"class.fastjet::GhostedAreaSpec" = type { double, double, i32, double, double, double, double, i8, %"class.fastjet::Selector", double, double, double, i32, i32, i32, %"class.std::vector.16" }
%"class.fastjet::Selector" = type { ptr, %"class.fastjet::SharedPtr.15" }
%"class.fastjet::SharedPtr.15" = type { ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::AreaDefinition" = type { i32, %"class.fastjet::GhostedAreaSpec", %"class.fastjet::VoronoiAreaSpec" }
%"class.fastjet::VoronoiAreaSpec" = type { double }

@_ZN7fastjet8fwrapper15input_particlesE = external dso_local global %"class.std::vector", align 8
@_ZN7fastjet8fwrapper4jetsE = external dso_local global %"class.std::vector", align 8
@_ZN7fastjet8fwrapper2csE = external dso_local global %"class.std::auto_ptr.1", align 8

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet8fwrapper24transfer_input_particlesEPKdRKi(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet8fwrapper13transfer_jetsEPdRi(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet8fwrapper25transfer_cluster_transferEPKdRKiRKNS_13JetDefinitionEPdRiRS1_S4_SA_(ptr noundef %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %5, ptr nocapture noundef nonnull readonly align 4 dereferenceable(4) %6, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %7) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %9 = alloca i8, align 1
  %10 = alloca %"class.fastjet::GhostedAreaSpec", align 8
  %11 = alloca %"class.fastjet::AreaDefinition", align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca double, align 8
  tail call void @_ZN7fastjet8fwrapper24transfer_input_particlesEPKdRKi(ptr noundef %0, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %15 = load double, ptr %5, align 8, !tbaa !5
  %16 = fcmp oeq double %15, 0.000000e+00
  br i1 %16, label %17, label %22

17:                                               ; preds = %8
  %18 = tail call noalias noundef nonnull dereferenceable(280) ptr @_Znwm(i64 noundef 280) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  store i8 0, ptr %9, align 1, !tbaa !9
  invoke void @_ZN7fastjet15ClusterSequenceC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb(ptr noundef nonnull align 8 dereferenceable(276) %18, ptr noundef nonnull align 8 dereferenceable(24) @_ZN7fastjet8fwrapper15input_particlesE, ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %19 unwind label %20

19:                                               ; preds = %17
  call void @_ZNSt8auto_ptrIN7fastjet15ClusterSequenceEE5resetEPS1_(ptr noundef nonnull align 8 dereferenceable(8) @_ZN7fastjet8fwrapper2csE, ptr noundef nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  br label %37

20:                                               ; preds = %17
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @_ZdlPvm(ptr noundef nonnull %18, i64 noundef 280) #9
  br label %43

22:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %10) #8
  %23 = load i32, ptr %6, align 4, !tbaa !11
  %24 = load double, ptr %7, align 8, !tbaa !5
  call void @_ZN7fastjet15GhostedAreaSpecC2Edidddd(ptr noundef nonnull align 8 dereferenceable(144) %10, double noundef %15, i32 noundef %23, double noundef %24, double noundef 1.000000e+00, double noundef 1.000000e-01, double noundef 1.000000e-100)
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %11) #8
  invoke void @_ZN7fastjet14AreaDefinitionC2ENS_8AreaTypeERKNS_15GhostedAreaSpecE(ptr noundef nonnull align 8 dereferenceable(160) %11, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(144) %10)
          to label %25 unwind label %29

25:                                               ; preds = %22
  %26 = invoke noalias noundef nonnull dereferenceable(448) ptr @_Znwm(i64 noundef 448) #7
          to label %27 unwind label %31

27:                                               ; preds = %25
  invoke void @_ZN7fastjet19ClusterSequenceAreaC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKNS_14AreaDefinitionE(ptr noundef nonnull align 8 dereferenceable(448) %26, ptr noundef nonnull align 8 dereferenceable(24) @_ZN7fastjet8fwrapper15input_particlesE, ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 8 dereferenceable(160) %11)
          to label %28 unwind label %33

28:                                               ; preds = %27
  call void @_ZNSt8auto_ptrIN7fastjet15ClusterSequenceEE5resetEPS1_(ptr noundef nonnull align 8 dereferenceable(8) @_ZN7fastjet8fwrapper2csE, ptr noundef nonnull %26) #8
  call void @_ZN7fastjet14AreaDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %11) #8
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %11) #8
  call void @_ZN7fastjet15GhostedAreaSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %10) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %10) #8
  br label %37

29:                                               ; preds = %22
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %36

31:                                               ; preds = %25
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %27
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %26, i64 noundef 448) #9
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @_ZN7fastjet14AreaDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %11) #8
  br label %36

36:                                               ; preds = %35, %29
  %.pn.pn = phi { ptr, i32 } [ %.pn, %35 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %11) #8
  call void @_ZN7fastjet15GhostedAreaSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %10) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %10) #8
  br label %43

37:                                               ; preds = %28, %19
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #8
  %38 = call noundef ptr @_ZNKSt8auto_ptrIN7fastjet15ClusterSequenceEEptEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZN7fastjet8fwrapper2csE) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  store double 0.000000e+00, ptr %14, align 8, !tbaa !5
  call void @_ZNK7fastjet15ClusterSequence14inclusive_jetsERKd(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(276) %38, ptr noundef nonnull align 8 dereferenceable(8) %14)
  invoke void @_ZN7fastjet12sorted_by_ptERKSt6vectorINS_9PseudoJetESaIS1_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %39 unwind label %41

39:                                               ; preds = %37
  %40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @_ZN7fastjet8fwrapper4jetsE, ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @_ZN7fastjet8fwrapper13transfer_jetsEPdRi(ptr noundef %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  ret void

41:                                               ; preds = %37
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  br label %43

43:                                               ; preds = %20, %41, %36
  %.pn17 = phi { ptr, i32 } [ %42, %41 ], [ %21, %20 ], [ %.pn.pn, %36 ]
  resume { ptr, i32 } %.pn17
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt8auto_ptrIN7fastjet15ClusterSequenceEE5resetEPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet14AreaDefinitionC2ENS_8AreaTypeERKNS_15GhostedAreaSpecE(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef, ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet14AreaDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet15GhostedAreaSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #5 align 2

declare void @_ZN7fastjet12sorted_by_ptERKSt6vectorINS_9PseudoJetESaIS1_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

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

declare void @_ZNK7fastjet15ClusterSequence14inclusive_jetsERKd(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(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 = { nobuiltin nounwind "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 = { 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 #6 = { "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 #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass