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

; 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::ClusterSequence" = type <{ ptr, %"class.fastjet::JetDefinition", %"class.std::vector", %"class.std::vector.1", i8, [3 x i8], i32, double, double, double, double, i32, i32, %"class.fastjet::SharedPtr.6", i32, i8, i8, [2 x i8], %"class.fastjet::SharedPtr.7", %"class.std::vector.8", double, double, double, double, i32, i32, i32, [4 x i8] }>
%"class.fastjet::JetDefinition" = type { i32, double, double, i32, ptr, %"class.fastjet::SharedPtr", %"class.fastjet::JetDefinition::DefaultRecombiner", ptr, %"class.fastjet::SharedPtr.0" }
%"class.fastjet::SharedPtr" = type { ptr }
%"class.fastjet::JetDefinition::DefaultRecombiner" = type <{ %"class.fastjet::JetDefinition::Recombiner", i32, [4 x i8] }>
%"class.fastjet::JetDefinition::Recombiner" = 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<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::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::history_element, std::allocator<fastjet::ClusterSequence::history_element>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastjet::SharedPtr.6" = type { ptr }
%"class.fastjet::SharedPtr.7" = type { ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::ClusterSequence::Tile, std::allocator<fastjet::ClusterSequence::Tile>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTVN7fastjet15ClusterSequenceE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@_ZTIN7fastjet22PseudoJetStructureBaseE = external constant ptr
@_ZTIN7fastjet24ClusterSequenceStructureE = external constant ptr
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [136 x i8], align 1
@__PRETTY_FUNCTION__._ZN7fastjet15ClusterSequenceD2Ev = external hidden unnamed_addr constant [53 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7fastjet15ClusterSequenceD2Ev(ptr noundef nonnull align 8 dereferenceable(276) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN7fastjet15ClusterSequenceE, i32 0, i32 0, i32 2), ptr %5, align 8, !tbaa !9
  %6 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 13
  %7 = invoke noundef ptr @_ZNK7fastjet9SharedPtrINS_22PseudoJetStructureBaseEEclEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %8 unwind label %52

8:                                                ; preds = %1
  %9 = icmp ne ptr %7, null
  br i1 %9, label %10, label %45

10:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %11 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 13
  %12 = invoke noundef ptr @_ZNK7fastjet9SharedPtrINS_22PseudoJetStructureBaseEEclEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %13 unwind label %52

13:                                               ; preds = %10
  %14 = icmp eq ptr %12, null
  br i1 %14, label %17, label %15

15:                                               ; preds = %13
  %16 = call ptr @__dynamic_cast(ptr %12, ptr @_ZTIN7fastjet22PseudoJetStructureBaseE, ptr @_ZTIN7fastjet24ClusterSequenceStructureE, i64 0) #7
  br label %18

17:                                               ; preds = %13
  br label %18

18:                                               ; preds = %17, %15
  %19 = phi ptr [ %16, %15 ], [ null, %17 ]
  store ptr %19, ptr %3, align 8, !tbaa !5
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %18
  br label %25

23:                                               ; preds = %18
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 62, ptr noundef @__PRETTY_FUNCTION__._ZN7fastjet15ClusterSequenceD2Ev) #8
  unreachable

24:                                               ; No predecessors!
  br label %25

25:                                               ; preds = %24, %22
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %27, i64 27
  %29 = load ptr, ptr %28, align 8
  invoke void %29(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef null)
          to label %30 unwind label %52

30:                                               ; preds = %25
  %31 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 15
  %32 = load i8, ptr %31, align 4, !tbaa !11, !range !38, !noundef !39
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %44

34:                                               ; preds = %30
  %35 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 13
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %36 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 13
  %37 = invoke noundef i64 @_ZNK7fastjet9SharedPtrINS_22PseudoJetStructureBaseEE9use_countEv(ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %38 unwind label %52

38:                                               ; preds = %34
  %39 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 14
  %40 = load i32, ptr %39, align 8, !tbaa !40
  %41 = sext i32 %40 to i64
  %42 = add nsw i64 %37, %41
  store i64 %42, ptr %4, align 8, !tbaa !41
  invoke void @_ZN7fastjet9SharedPtrINS_22PseudoJetStructureBaseEE9set_countERKl(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %43 unwind label %52

43:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %44

44:                                               ; preds = %43, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %45

45:                                               ; preds = %44, %8
  %46 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 19
  call void @_ZNSt6vectorIN7fastjet15ClusterSequence4TileESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %47 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 18
  call void @_ZN7fastjet9SharedPtrINS_15ClusterSequence6ExtrasEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %47) #7
  %48 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 13
  call void @_ZN7fastjet9SharedPtrINS_22PseudoJetStructureBaseEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #7
  %49 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 3
  call void @_ZNSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  %50 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 2
  call void @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  %51 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %5, i32 0, i32 1
  call void @_ZN7fastjet13JetDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %51) #7
  ret void

52:                                               ; preds = %38, %34, %25, %10, %1
  %53 = landingpad { ptr, i32 }
          catch ptr null
  %54 = extractvalue { ptr, i32 } %53, 0
  call void @__clang_call_terminate(ptr %54) #8
  unreachable
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #2

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

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7fastjet9SharedPtrINS_22PseudoJetStructureBaseEE9use_countEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

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

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

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

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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet13JetDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 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 = { noinline noreturn nounwind uwtable "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind willreturn memory(read) }
attributes #5 = { noreturn 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn 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, !30, i64 196}
!12 = !{!"_ZTSN7fastjet15ClusterSequenceE", !13, i64 8, !22, i64 88, !26, i64 112, !30, i64 136, !31, i64 140, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !16, i64 176, !14, i64 180, !32, i64 184, !31, i64 192, !30, i64 196, !30, i64 197, !33, i64 200, !34, i64 208, !15, i64 232, !15, i64 240, !15, i64 248, !15, i64 256, !31, i64 264, !31, i64 268, !31, i64 272}
!13 = !{!"_ZTSN7fastjet13JetDefinitionE", !14, i64 0, !15, i64 8, !15, i64 16, !16, i64 24, !6, i64 32, !17, i64 40, !18, i64 48, !6, i64 64, !21, i64 72}
!14 = !{!"_ZTSN7fastjet12JetAlgorithmE", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSN7fastjet8StrategyE", !7, i64 0}
!17 = !{!"_ZTSN7fastjet9SharedPtrIKNS_13JetDefinition6PluginEEE", !6, i64 0}
!18 = !{!"_ZTSN7fastjet13JetDefinition17DefaultRecombinerE", !19, i64 0, !20, i64 8}
!19 = !{!"_ZTSN7fastjet13JetDefinition10RecombinerE"}
!20 = !{!"_ZTSN7fastjet19RecombinationSchemeE", !7, i64 0}
!21 = !{!"_ZTSN7fastjet9SharedPtrIKNS_13JetDefinition10RecombinerEEE", !6, i64 0}
!22 = !{!"_ZTSSt6vectorIN7fastjet9PseudoJetESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"int", !7, i64 0}
!32 = !{!"_ZTSN7fastjet9SharedPtrINS_22PseudoJetStructureBaseEEE", !6, i64 0}
!33 = !{!"_ZTSN7fastjet9SharedPtrINS_15ClusterSequence6ExtrasEEE", !6, i64 0}
!34 = !{!"_ZTSSt6vectorIN7fastjet15ClusterSequence4TileESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = !{!12, !31, i64 192}
!41 = !{!42, !42, i64 0}
!42 = !{!"long", !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"

@_ZTVN7fastjet15ClusterSequenceE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@_ZTIN7fastjet22PseudoJetStructureBaseE = external constant ptr
@_ZTIN7fastjet24ClusterSequenceStructureE = external constant ptr
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [136 x i8], align 1
@__PRETTY_FUNCTION__._ZN7fastjet15ClusterSequenceD2Ev = external hidden unnamed_addr constant [53 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7fastjet15ClusterSequenceD2Ev(ptr noundef nonnull align 8 dereferenceable(276) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i64, align 8
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN7fastjet15ClusterSequenceE, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 184
  %4 = invoke noundef ptr @_ZNK7fastjet9SharedPtrINS_22PseudoJetStructureBaseEEclEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %5 unwind label %33

5:                                                ; preds = %1
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %27, label %6

6:                                                ; preds = %5
  %7 = invoke noundef ptr @_ZNK7fastjet9SharedPtrINS_22PseudoJetStructureBaseEEclEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %8 unwind label %33

8:                                                ; preds = %6
  %9 = icmp eq ptr %7, null
  br i1 %9, label %.thread, label %10

10:                                               ; preds = %8
  %11 = tail call ptr @__dynamic_cast(ptr nonnull %7, ptr nonnull @_ZTIN7fastjet22PseudoJetStructureBaseE, ptr nonnull @_ZTIN7fastjet24ClusterSequenceStructureE, i64 0) #7
  %.not4 = icmp eq ptr %11, null
  br i1 %.not4, label %.thread, label %12

.thread:                                          ; preds = %8, %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 62, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7fastjet15ClusterSequenceD2Ev) #8
  unreachable

12:                                               ; preds = %10
  %13 = load ptr, ptr %11, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 216
  %15 = load ptr, ptr %14, align 8
  invoke void %15(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef null)
          to label %16 unwind label %33

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 196
  %18 = load i8, ptr %17, align 4, !tbaa !8, !range !37, !noundef !38
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %20, label %27

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %21 = tail call noundef i64 @_ZNK7fastjet9SharedPtrINS_22PseudoJetStructureBaseEE9use_countEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %22 = getelementptr inbounds i8, ptr %0, i64 192
  %23 = load i32, ptr %22, align 8, !tbaa !39
  %24 = sext i32 %23 to i64
  %25 = add nsw i64 %21, %24
  store i64 %25, ptr %2, align 8, !tbaa !40
  invoke void @_ZN7fastjet9SharedPtrINS_22PseudoJetStructureBaseEE9set_countERKl(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %26 unwind label %33

26:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br label %27

27:                                               ; preds = %16, %26, %5
  %28 = getelementptr inbounds i8, ptr %0, i64 208
  call void @_ZNSt6vectorIN7fastjet15ClusterSequence4TileESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  %29 = getelementptr inbounds i8, ptr %0, i64 200
  call void @_ZN7fastjet9SharedPtrINS_15ClusterSequence6ExtrasEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  call void @_ZN7fastjet9SharedPtrINS_22PseudoJetStructureBaseEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %30 = getelementptr inbounds i8, ptr %0, i64 112
  call void @_ZNSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  %31 = getelementptr inbounds i8, ptr %0, i64 88
  call void @_ZNSt6vectorIN7fastjet9PseudoJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZN7fastjet13JetDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %32) #7
  ret void

33:                                               ; preds = %20, %12, %6, %1
  %34 = landingpad { ptr, i32 }
          catch ptr null
  %35 = extractvalue { ptr, i32 } %34, 0
  call void @__clang_call_terminate(ptr %35) #8
  unreachable
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7fastjet9SharedPtrINS_22PseudoJetStructureBaseEE9use_countEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

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

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

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

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

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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7fastjet13JetDefinitionD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 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 = { noinline noreturn nounwind uwtable "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nofree nounwind willreturn memory(read) }
attributes #5 = { noreturn 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn 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, !29, i64 196}
!9 = !{!"_ZTSN7fastjet15ClusterSequenceE", !10, i64 8, !21, i64 88, !25, i64 112, !29, i64 136, !30, i64 140, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !14, i64 176, !11, i64 180, !31, i64 184, !30, i64 192, !29, i64 196, !29, i64 197, !32, i64 200, !33, i64 208, !13, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !30, i64 264, !30, i64 268, !30, i64 272}
!10 = !{!"_ZTSN7fastjet13JetDefinitionE", !11, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !15, i64 32, !16, i64 40, !17, i64 48, !15, i64 64, !20, i64 72}
!11 = !{!"_ZTSN7fastjet12JetAlgorithmE", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"double", !12, i64 0}
!14 = !{!"_ZTSN7fastjet8StrategyE", !12, i64 0}
!15 = !{!"any pointer", !12, i64 0}
!16 = !{!"_ZTSN7fastjet9SharedPtrIKNS_13JetDefinition6PluginEEE", !15, i64 0}
!17 = !{!"_ZTSN7fastjet13JetDefinition17DefaultRecombinerE", !18, i64 0, !19, i64 8}
!18 = !{!"_ZTSN7fastjet13JetDefinition10RecombinerE"}
!19 = !{!"_ZTSN7fastjet19RecombinationSchemeE", !12, i64 0}
!20 = !{!"_ZTSN7fastjet9SharedPtrIKNS_13JetDefinition10RecombinerEEE", !15, i64 0}
!21 = !{!"_ZTSSt6vectorIN7fastjet9PseudoJetESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!25 = !{!"_ZTSSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!29 = !{!"bool", !12, i64 0}
!30 = !{!"int", !12, i64 0}
!31 = !{!"_ZTSN7fastjet9SharedPtrINS_22PseudoJetStructureBaseEEE", !15, i64 0}
!32 = !{!"_ZTSN7fastjet9SharedPtrINS_15ClusterSequence6ExtrasEEE", !15, i64 0}
!33 = !{!"_ZTSSt6vectorIN7fastjet15ClusterSequence4TileESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!9, !30, i64 192}
!40 = !{!41, !41, i64 0}
!41 = !{!"long", !12, i64 0}


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