; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/JetCore/Jet.ll (ZN9SpartyJet3JetC2ERSt6vectorIPS0_SaIS2_EE)

; 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.SpartyJet::Jet" = type { %"class.fastjet::PseudoJet", i8, i32, ptr, %"class.std::vector" }
%"class.fastjet::PseudoJet" = type { ptr, %"class.fastjet::SharedPtr", %"class.fastjet::SharedPtr.0", double, double, double, double, double, double, double, i32, i32 }
%"class.fastjet::SharedPtr" = type { ptr }
%"class.fastjet::SharedPtr.0" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<SpartyJet::Jet *, std::allocator<SpartyJet::Jet *>>::_Vector_impl" }
%"struct.std::_Vector_base<SpartyJet::Jet *, std::allocator<SpartyJet::Jet *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SpartyJet::Jet *, std::allocator<SpartyJet::Jet *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SpartyJet::Jet *, std::allocator<SpartyJet::Jet *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTVN9SpartyJet3JetE = external dso_local unnamed_addr constant { [19 x ptr] }, align 8

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SpartyJet15HistoryProviderINS_14HistoryElementEE6setJetEPNS_3JetE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet9PseudoJet13set_user_infoEPNS0_12UserInfoBaseE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SpartyJet17SpartyJetUserInfoC2EPNS_3JetE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9SpartyJet3JetC2ERSt6vectorIPS0_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  call void @_ZN7fastjet9PseudoJetC2Edddd(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)
  store ptr getelementptr inbounds inrange(-16, 136) ({ [19 x ptr] }, ptr @_ZTVN9SpartyJet3JetE, i32 0, i32 0, i32 2), ptr %8, align 8, !tbaa !9
  %9 = getelementptr inbounds %"class.SpartyJet::Jet", ptr %8, i32 0, i32 1
  store i8 0, ptr %9, align 8, !tbaa !11
  %10 = getelementptr inbounds %"class.SpartyJet::Jet", ptr %8, i32 0, i32 2
  store i32 0, ptr %10, align 4, !tbaa !23
  %11 = getelementptr inbounds %"class.SpartyJet::Jet", ptr %8, i32 0, i32 4
  call void @_ZNSt6vectorIPN9SpartyJet3JetESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %12 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #7
          to label %13 unwind label %25

13:                                               ; preds = %2
  invoke void @_ZN9SpartyJet14HistoryElementC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %14 unwind label %29

14:                                               ; preds = %13
  %15 = getelementptr inbounds %"class.SpartyJet::Jet", ptr %8, i32 0, i32 3
  store ptr %12, ptr %15, align 8, !tbaa !24
  %16 = getelementptr inbounds %"class.SpartyJet::Jet", ptr %8, i32 0, i32 3
  %17 = load ptr, ptr %16, align 8, !tbaa !24
  invoke void @_ZN9SpartyJet15HistoryProviderINS_14HistoryElementEE6setJetEPNS_3JetE(ptr noundef nonnull align 8 dereferenceable(80) %17, ptr noundef %8)
          to label %18 unwind label %25

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !25
  br label %19

19:                                               ; preds = %57, %18
  %20 = load i64, ptr %7, align 8, !tbaa !25
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call noundef i64 @_ZNKSt6vectorIPN9SpartyJet3JetESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  %23 = icmp ult i64 %20, %22
  br i1 %23, label %33, label %24

24:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %64

25:                                               ; preds = %67, %64, %14, %2
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %5, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %6, align 4
  br label %73

29:                                               ; preds = %13
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %5, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %12, i64 noundef 80) #8
  br label %73

33:                                               ; preds = %19
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = load i64, ptr %7, align 8, !tbaa !25
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN9SpartyJet3JetESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %35) #6
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  invoke void @_ZN7fastjet9PseudoJetpLERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef nonnull align 8 dereferenceable(88) %37)
          to label %38 unwind label %60

38:                                               ; preds = %33
  %39 = getelementptr inbounds %"class.SpartyJet::Jet", ptr %8, i32 0, i32 3
  %40 = load ptr, ptr %39, align 8, !tbaa !24
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load i64, ptr %7, align 8, !tbaa !25
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN9SpartyJet3JetESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %42) #6
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = invoke noundef ptr @_ZN9SpartyJet3Jet7historyEv(ptr noundef nonnull align 8 dereferenceable(128) %44)
          to label %46 unwind label %60

46:                                               ; preds = %38
  invoke void @_ZN9SpartyJet15HistoryProviderINS_14HistoryElementEE9addParentEPS1_(ptr noundef nonnull align 8 dereferenceable(80) %40, ptr noundef %45)
          to label %47 unwind label %60

47:                                               ; preds = %46
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load i64, ptr %7, align 8, !tbaa !25
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN9SpartyJet3JetESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %49) #6
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = invoke noundef ptr @_ZN9SpartyJet3Jet7historyEv(ptr noundef nonnull align 8 dereferenceable(128) %51)
          to label %53 unwind label %60

53:                                               ; preds = %47
  %54 = getelementptr inbounds %"class.SpartyJet::Jet", ptr %8, i32 0, i32 3
  %55 = load ptr, ptr %54, align 8, !tbaa !24
  invoke void @_ZN9SpartyJet15HistoryProviderINS_14HistoryElementEE8setChildEPS1_(ptr noundef nonnull align 8 dereferenceable(80) %52, ptr noundef %55)
          to label %56 unwind label %60

56:                                               ; preds = %53
  br label %57

57:                                               ; preds = %56
  %58 = load i64, ptr %7, align 8, !tbaa !25
  %59 = add i64 %58, 1
  store i64 %59, ptr %7, align 8, !tbaa !25
  br label %19, !llvm.loop !27

60:                                               ; preds = %53, %47, %46, %38, %33
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %5, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %73

64:                                               ; preds = %24
  %65 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #7
          to label %66 unwind label %25

66:                                               ; preds = %64
  invoke void @_ZN9SpartyJet17SpartyJetUserInfoC2EPNS_3JetE(ptr noundef nonnull align 8 dereferenceable(17) %65, ptr noundef %8)
          to label %67 unwind label %69

67:                                               ; preds = %66
  invoke void @_ZN7fastjet9PseudoJet13set_user_infoEPNS0_12UserInfoBaseE(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef %65)
          to label %68 unwind label %25

68:                                               ; preds = %67
  ret void

69:                                               ; preds = %66
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %5, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %65, i64 noundef 24) #8
  br label %73

73:                                               ; preds = %69, %60, %29, %25
  call void @_ZNSt6vectorIPN9SpartyJet3JetESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #6
  br label %74

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SpartyJet14HistoryElementC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

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

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

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

declare void @_ZN7fastjet9PseudoJetpLERKS0_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SpartyJet15HistoryProviderINS_14HistoryElementEE9addParentEPS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #4 align 2

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

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

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

attributes #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 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 = { 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 #3 = { 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !18, i64 88}
!12 = !{!"_ZTSN9SpartyJet3JetE", !13, i64 0, !18, i64 88, !17, i64 92, !6, i64 96, !19, i64 104}
!13 = !{!"_ZTSN7fastjet9PseudoJetE", !14, i64 8, !15, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !17, i64 80, !17, i64 84}
!14 = !{!"_ZTSN7fastjet9SharedPtrINS_22PseudoJetStructureBaseEEE", !6, i64 0}
!15 = !{!"_ZTSN7fastjet9SharedPtrINS_9PseudoJet12UserInfoBaseEEE", !6, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIPN9SpartyJet3JetESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN9SpartyJet3JetESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN9SpartyJet3JetESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN9SpartyJet3JetESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!12, !17, i64 92}
!24 = !{!12, !6, i64 96}
!25 = !{!26, !26, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"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"

@_ZTVN9SpartyJet3JetE = external dso_local unnamed_addr constant { [19 x ptr] }, align 8

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SpartyJet15HistoryProviderINS_14HistoryElementEE6setJetEPNS_3JetE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7fastjet9PseudoJet13set_user_infoEPNS0_12UserInfoBaseE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SpartyJet17SpartyJetUserInfoC2EPNS_3JetE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9SpartyJet3JetC2ERSt6vectorIPS0_SaIS2_EE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN7fastjet9PseudoJetC2Edddd(ptr noundef nonnull align 8 dereferenceable(88) %0, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  store ptr getelementptr inbounds inrange(-16, 136) (i8, ptr @_ZTVN9SpartyJet3JetE, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 88
  store i8 0, ptr %3, align 8, !tbaa !8
  %4 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 0, ptr %4, align 4, !tbaa !22
  %5 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZNSt6vectorIPN9SpartyJet3JetESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %6 = invoke noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #6
          to label %7 unwind label %12

7:                                                ; preds = %2
  invoke void @_ZN9SpartyJet14HistoryElementC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %8 unwind label %14

8:                                                ; preds = %7
  %9 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr %6, ptr %9, align 8, !tbaa !23
  invoke void @_ZN9SpartyJet15HistoryProviderINS_14HistoryElementEE6setJetEPNS_3JetE(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull %0)
          to label %.preheader unwind label %12

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

._crit_edge:                                      ; preds = %23, %.preheader
  %11 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #6
          to label %33 unwind label %12

12:                                               ; preds = %34, %._crit_edge, %8, %2
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %38

14:                                               ; preds = %7
  %15 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %6, i64 noundef 80) #7
  br label %38

.lr.ph:                                           ; preds = %.preheader, %23
  %.014 = phi i64 [ %28, %23 ], [ 0, %.preheader ]
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN9SpartyJet3JetESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.014) #5
  %17 = load ptr, ptr %16, align 8, !tbaa !24
  invoke void @_ZN7fastjet9PseudoJetpLERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(88) %17)
          to label %18 unwind label %31

18:                                               ; preds = %.lr.ph
  %19 = load ptr, ptr %9, align 8, !tbaa !23
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN9SpartyJet3JetESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.014) #5
  %21 = load ptr, ptr %20, align 8, !tbaa !24
  %22 = tail call noundef ptr @_ZN9SpartyJet3Jet7historyEv(ptr noundef nonnull align 8 dereferenceable(128) %21)
  invoke void @_ZN9SpartyJet15HistoryProviderINS_14HistoryElementEE9addParentEPS1_(ptr noundef nonnull align 8 dereferenceable(80) %19, ptr noundef %22)
          to label %23 unwind label %31

23:                                               ; preds = %18
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN9SpartyJet3JetESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.014) #5
  %25 = load ptr, ptr %24, align 8, !tbaa !24
  %26 = tail call noundef ptr @_ZN9SpartyJet3Jet7historyEv(ptr noundef nonnull align 8 dereferenceable(128) %25)
  %27 = load ptr, ptr %9, align 8, !tbaa !23
  tail call void @_ZN9SpartyJet15HistoryProviderINS_14HistoryElementEE8setChildEPS1_(ptr noundef nonnull align 8 dereferenceable(80) %26, ptr noundef %27)
  %28 = add nuw i64 %.014, 1
  %29 = tail call noundef i64 @_ZNKSt6vectorIPN9SpartyJet3JetESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %30 = icmp ult i64 %28, %29
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !25

31:                                               ; preds = %18, %.lr.ph
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %38

33:                                               ; preds = %._crit_edge
  invoke void @_ZN9SpartyJet17SpartyJetUserInfoC2EPNS_3JetE(ptr noundef nonnull align 8 dereferenceable(17) %11, ptr noundef nonnull %0)
          to label %34 unwind label %36

34:                                               ; preds = %33
  invoke void @_ZN7fastjet9PseudoJet13set_user_infoEPNS0_12UserInfoBaseE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull %11)
          to label %35 unwind label %12

35:                                               ; preds = %34
  ret void

36:                                               ; preds = %33
  %37 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %11, i64 noundef 24) #7
  br label %38

38:                                               ; preds = %36, %31, %14, %12
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %13, %12 ], [ %37, %36 ], [ %15, %14 ]
  tail call void @_ZNSt6vectorIPN9SpartyJet3JetESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  tail call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SpartyJet14HistoryElementC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

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

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

declare void @_ZN7fastjet9PseudoJetpLERKS0_(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SpartyJet15HistoryProviderINS_14HistoryElementEE9addParentEPS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #4 align 2

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

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

attributes #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 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 = { 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 #3 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !17, i64 88}
!9 = !{!"_ZTSN9SpartyJet3JetE", !10, i64 0, !17, i64 88, !16, i64 92, !12, i64 96, !18, i64 104}
!10 = !{!"_ZTSN7fastjet9PseudoJetE", !11, i64 8, !14, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !16, i64 80, !16, i64 84}
!11 = !{!"_ZTSN7fastjet9SharedPtrINS_22PseudoJetStructureBaseEEE", !12, i64 0}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"_ZTSN7fastjet9SharedPtrINS_9PseudoJet12UserInfoBaseEEE", !12, i64 0}
!15 = !{!"double", !13, i64 0}
!16 = !{!"int", !13, i64 0}
!17 = !{!"bool", !13, i64 0}
!18 = !{!"_ZTSSt6vectorIPN9SpartyJet3JetESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIPN9SpartyJet3JetESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN9SpartyJet3JetESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN9SpartyJet3JetESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!22 = !{!9, !16, i64 92}
!23 = !{!9, !12, i64 96}
!24 = !{!12, !12, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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