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

; 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::PseudoJet" = type { ptr, %"class.fastjet::SharedPtr.6", %"class.fastjet::SharedPtr.14", double, double, double, double, double, double, double, i32, i32 }
%"class.fastjet::SharedPtr.6" = type { ptr }
%"class.fastjet::SharedPtr.14" = type { 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7fastjet23ClusterSequenceAreaBase14subtracted_jetERKNS_9PseudoJetEd(ptr dead_on_unwind noalias writable sret(%"class.fastjet::PseudoJet") align 8 %0, ptr noundef nonnull align 8 dereferenceable(276) %1, ptr noundef nonnull align 8 dereferenceable(88) %2, double noundef %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca %"class.fastjet::PseudoJet", align 8
  %10 = alloca i1, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.fastjet::PseudoJet", align 8
  %14 = alloca %"class.fastjet::PseudoJet", align 8
  %15 = alloca %"class.fastjet::PseudoJet", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store double %3, ptr %8, align 8, !tbaa !9
  %16 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #6
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = load ptr, ptr %16, align 8, !tbaa !11
  %19 = getelementptr inbounds ptr, ptr %18, i64 4
  %20 = load ptr, ptr %19, align 8
  call void %20(ptr dead_on_unwind writable sret(%"class.fastjet::PseudoJet") align 8 %9, ptr noundef nonnull align 8 dereferenceable(276) %16, ptr noundef nonnull align 8 dereferenceable(88) %17)
  store i1 false, ptr %10, align 1
  invoke void @_ZN7fastjet9PseudoJetC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0)
          to label %21 unwind label %37

21:                                               ; preds = %4
  %22 = load double, ptr %8, align 8, !tbaa !9
  %23 = invoke noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %24 unwind label %41

24:                                               ; preds = %21
  %25 = fmul double %22, %23
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = invoke noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %26)
          to label %28 unwind label %41

28:                                               ; preds = %24
  %29 = fcmp olt double %25, %27
  br i1 %29, label %30, label %59

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 88, ptr %13) #6
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 88, ptr %14) #6
  %32 = load double, ptr %8, align 8, !tbaa !9
  invoke void @_ZN7fastjetmlEdRKNS_9PseudoJetE(ptr dead_on_unwind writable sret(%"class.fastjet::PseudoJet") align 8 %14, double noundef %32, ptr noundef nonnull align 8 dereferenceable(88) %9)
          to label %33 unwind label %45

33:                                               ; preds = %30
  invoke void @_ZN7fastjetmiERKNS_9PseudoJetES2_(ptr dead_on_unwind writable sret(%"class.fastjet::PseudoJet") align 8 %13, ptr noundef nonnull align 8 dereferenceable(88) %31, ptr noundef nonnull align 8 dereferenceable(88) %14)
          to label %34 unwind label %49

34:                                               ; preds = %33
  %35 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(88) %13)
          to label %36 unwind label %53

36:                                               ; preds = %34
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %13) #6
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %14) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #6
  br label %72

37:                                               ; preds = %4
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %11, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %12, align 4
  br label %89

41:                                               ; preds = %83, %80, %79, %76, %75, %72, %24, %21
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %11, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %12, align 4
  br label %88

45:                                               ; preds = %30
  %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 %58

49:                                               ; preds = %33
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %11, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %12, align 4
  br label %57

53:                                               ; preds = %34
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %11, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %12, align 4
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %13) #6
  br label %57

57:                                               ; preds = %53, %49
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %14) #6
  br label %58

58:                                               ; preds = %57, %45
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #6
  br label %88

59:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 88, ptr %15) #6
  invoke void @_ZN7fastjet9PseudoJetC1Edddd(ptr noundef nonnull align 8 dereferenceable(88) %15, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %60 unwind label %63

60:                                               ; preds = %59
  %61 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %62 unwind label %67

62:                                               ; preds = %60
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %15) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #6
  br label %72

63:                                               ; preds = %59
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %11, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %12, align 4
  br label %71

67:                                               ; preds = %60
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %11, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %12, align 4
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %15) #6
  br label %71

71:                                               ; preds = %67, %63
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #6
  br label %88

72:                                               ; preds = %62, %36
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = invoke noundef i32 @_ZNK7fastjet9PseudoJet18cluster_hist_indexEv(ptr noundef nonnull align 8 dereferenceable(88) %73)
          to label %75 unwind label %41

75:                                               ; preds = %72
  invoke void @_ZN7fastjet9PseudoJet22set_cluster_hist_indexEi(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef %74)
          to label %76 unwind label %41

76:                                               ; preds = %75
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = invoke noundef i32 @_ZNK7fastjet9PseudoJet10user_indexEv(ptr noundef nonnull align 8 dereferenceable(88) %77)
          to label %79 unwind label %41

79:                                               ; preds = %76
  invoke void @_ZN7fastjet9PseudoJet14set_user_indexEi(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef %78)
          to label %80 unwind label %41

80:                                               ; preds = %79
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7fastjet9PseudoJet20structure_shared_ptrEv(ptr noundef nonnull align 8 dereferenceable(88) %81)
          to label %83 unwind label %41

83:                                               ; preds = %80
  invoke void @_ZN7fastjet9PseudoJet24set_structure_shared_ptrERKNS_9SharedPtrINS_22PseudoJetStructureBaseEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(8) %82)
          to label %84 unwind label %41

84:                                               ; preds = %83
  store i1 true, ptr %10, align 1
  %85 = load i1, ptr %10, align 1
  br i1 %85, label %87, label %86

86:                                               ; preds = %84
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #6
  br label %87

87:                                               ; preds = %86, %84
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #6
  ret void

88:                                               ; preds = %71, %58, %41
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #6
  br label %89

89:                                               ; preds = %88, %37
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %9) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #6
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr %11, align 8
  %92 = load i32, ptr %12, align 4
  %93 = insertvalue { ptr, i32 } poison, ptr %91, 0
  %94 = insertvalue { ptr, i32 } %93, i32 %92, 1
  resume { ptr, i32 } %94
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet9PseudoJetC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 align 2

declare void @_ZN7fastjetmiERKNS_9PseudoJetES2_(ptr dead_on_unwind writable sret(%"class.fastjet::PseudoJet") align 8, ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) #4

declare void @_ZN7fastjetmlEdRKNS_9PseudoJetE(ptr dead_on_unwind writable sret(%"class.fastjet::PseudoJet") align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(88)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) #5 align 2

declare void @_ZN7fastjet9PseudoJetC1Edddd(ptr noundef nonnull align 8 dereferenceable(88), double noundef, double noundef, double noundef, double noundef) unnamed_addr #4

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

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

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

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

declare void @_ZN7fastjet9PseudoJet24set_structure_shared_ptrERKNS_9SharedPtrINS_22PseudoJetStructureBaseEEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(8)) #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7fastjet9PseudoJet20structure_shared_ptrEv(ptr noundef nonnull align 8 dereferenceable(88)) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 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 = { 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 = !{!"vtable pointer", !8, 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.fastjet::PseudoJet" = type { ptr, %"class.fastjet::SharedPtr.6", %"class.fastjet::SharedPtr.14", double, double, double, double, double, double, double, i32, i32 }
%"class.fastjet::SharedPtr.6" = type { ptr }
%"class.fastjet::SharedPtr.14" = type { 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7fastjet23ClusterSequenceAreaBase14subtracted_jetERKNS_9PseudoJetEd(ptr dead_on_unwind noalias writable sret(%"class.fastjet::PseudoJet") align 8 %0, ptr noundef nonnull align 8 dereferenceable(276) %1, ptr noundef nonnull align 8 dereferenceable(88) %2, double noundef %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.fastjet::PseudoJet", align 8
  %6 = alloca %"class.fastjet::PseudoJet", align 8
  %7 = alloca %"class.fastjet::PseudoJet", align 8
  %8 = alloca %"class.fastjet::PseudoJet", align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #6
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 32
  %11 = load ptr, ptr %10, align 8
  call void %11(ptr dead_on_unwind nonnull writable sret(%"class.fastjet::PseudoJet") align 8 %5, ptr noundef nonnull align 8 dereferenceable(276) %1, ptr noundef nonnull align 8 dereferenceable(88) %2)
  invoke void @_ZN7fastjet9PseudoJetC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0)
          to label %12 unwind label %22

12:                                               ; preds = %4
  %13 = call noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %5)
  %14 = fmul double %13, %3
  %15 = call noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %16 = fcmp olt double %14, %15
  br i1 %16, label %17, label %34

17:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %7) #6
  invoke void @_ZN7fastjetmlEdRKNS_9PseudoJetE(ptr dead_on_unwind nonnull writable sret(%"class.fastjet::PseudoJet") align 8 %7, double noundef %3, ptr noundef nonnull align 8 dereferenceable(88) %5)
          to label %18 unwind label %26

18:                                               ; preds = %17
  invoke void @_ZN7fastjetmiERKNS_9PseudoJetES2_(ptr dead_on_unwind nonnull writable sret(%"class.fastjet::PseudoJet") align 8 %6, ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull align 8 dereferenceable(88) %7)
          to label %19 unwind label %28

19:                                               ; preds = %18
  %20 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(88) %6)
          to label %21 unwind label %30

21:                                               ; preds = %19
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #6
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %7) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #6
  br label %43

22:                                               ; preds = %4
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %50

24:                                               ; preds = %47, %43
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %49

26:                                               ; preds = %17
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %33

28:                                               ; preds = %18
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

30:                                               ; preds = %19
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #6
  br label %32

32:                                               ; preds = %30, %28
  %.pn17 = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %7) #6
  br label %33

33:                                               ; preds = %32, %26
  %.pn17.pn = phi { ptr, i32 } [ %.pn17, %32 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #6
  br label %49

34:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %8) #6
  invoke void @_ZN7fastjet9PseudoJetC1Edddd(ptr noundef nonnull align 8 dereferenceable(88) %8, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %35 unwind label %38

35:                                               ; preds = %34
  %36 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %37 unwind label %40

37:                                               ; preds = %35
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #6
  br label %43

38:                                               ; preds = %34
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %42

40:                                               ; preds = %35
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #6
  br label %42

42:                                               ; preds = %40, %38
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #6
  br label %49

43:                                               ; preds = %37, %21
  %44 = call noundef i32 @_ZNK7fastjet9PseudoJet18cluster_hist_indexEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  call void @_ZN7fastjet9PseudoJet22set_cluster_hist_indexEi(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef %44)
  %45 = call noundef i32 @_ZNK7fastjet9PseudoJet10user_indexEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  call void @_ZN7fastjet9PseudoJet14set_user_indexEi(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef %45)
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7fastjet9PseudoJet20structure_shared_ptrEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
          to label %47 unwind label %24

47:                                               ; preds = %43
  invoke void @_ZN7fastjet9PseudoJet24set_structure_shared_ptrERKNS_9SharedPtrINS_22PseudoJetStructureBaseEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %48 unwind label %24

48:                                               ; preds = %47
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #6
  ret void

49:                                               ; preds = %42, %33, %24
  %.pn20 = phi { ptr, i32 } [ %25, %24 ], [ %.pn17.pn, %33 ], [ %.pn, %42 ]
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #6
  br label %50

50:                                               ; preds = %49, %22
  %.pn20.pn = phi { ptr, i32 } [ %.pn20, %49 ], [ %23, %22 ]
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn20.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet9PseudoJetC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 align 2

declare void @_ZN7fastjetmiERKNS_9PseudoJetES2_(ptr dead_on_unwind writable sret(%"class.fastjet::PseudoJet") align 8, ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

declare void @_ZN7fastjetmlEdRKNS_9PseudoJetE(ptr dead_on_unwind writable sret(%"class.fastjet::PseudoJet") align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #5 align 2

declare void @_ZN7fastjet9PseudoJetC1Edddd(ptr noundef nonnull align 8 dereferenceable(88), double noundef, double noundef, double noundef, double noundef) unnamed_addr #4

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

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

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

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

declare void @_ZN7fastjet9PseudoJet24set_structure_shared_ptrERKNS_9SharedPtrINS_22PseudoJetStructureBaseEEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7fastjet9PseudoJet20structure_shared_ptrEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass