; 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"

%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"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 }
%"struct.fastjet::ClusterSequence::history_element" = type { i32, i32, i32, i32, double, double }

@.str.2 = external hidden unnamed_addr constant [136 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7fastjet15ClusterSequence15get_subhist_setERSt3setIPKNS0_15history_elementESt4lessIS4_ESaIS4_EERKNS_9PseudoJetEdi = external hidden unnamed_addr constant [117 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

; 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 i32 @_ZNK7fastjet9PseudoJet18cluster_hist_indexEv(ptr noundef nonnull align 8 dereferenceable(88)) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7fastjet15ClusterSequence15get_subhist_setERSt3setIPKNS0_15history_elementESt4lessIS4_ESaIS4_EERKNS_9PseudoJetEdi(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(88) %2, double noundef %3, i32 noundef %4) #4 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store double %3, ptr %9, align 8, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !11
  %25 = load ptr, ptr %6, align 8
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call noundef zeroext i1 @_ZNK7fastjet15ClusterSequence8containsERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(276) %25, ptr noundef nonnull align 8 dereferenceable(88) %26)
  br i1 %27, label %28, label %29

28:                                               ; preds = %5
  br label %31

29:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.56, ptr noundef @.str.2, i32 noundef 868, ptr noundef @__PRETTY_FUNCTION__._ZNK7fastjet15ClusterSequence15get_subhist_setERSt3setIPKNS0_15history_elementESt4lessIS4_ESaIS4_EERKNS_9PseudoJetEdi) #6
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %32) #7
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %34 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %25, i32 0, i32 3
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = call noundef i32 @_ZNK7fastjet9PseudoJet18cluster_hist_indexEv(ptr noundef nonnull align 8 dereferenceable(88) %35)
  %37 = sext i32 %36 to i64
  %38 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %37) #7
  store ptr %38, ptr %11, align 8, !tbaa !5
  %39 = call { ptr, i8 } @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48) %33, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %40 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 0
  %41 = extractvalue { ptr, i8 } %39, 0
  store ptr %41, ptr %40, align 8
  %42 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 1
  %43 = extractvalue { ptr, i8 } %39, 1
  store i8 %43, ptr %42, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !11
  br label %44

44:                                               ; preds = %112, %31
  br label %45

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = call ptr @_ZNKSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %46) #7
  %48 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = call ptr @_ZNKSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %49) #7
  %51 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %15, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  %52 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPKN7fastjet15ClusterSequence15history_elementEES7_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br i1 %52, label %53, label %54

53:                                               ; preds = %45
  br label %56

54:                                               ; preds = %45
  call void @__assert_fail(ptr noundef @.str.57, ptr noundef @.str.2, i32 noundef 879, ptr noundef @__PRETTY_FUNCTION__._ZNK7fastjet15ClusterSequence15get_subhist_setERSt3setIPKNS0_15history_elementESt4lessIS4_ESaIS4_EERKNS_9PseudoJetEdi) #6
  unreachable

55:                                               ; No predecessors!
  br label %56

56:                                               ; preds = %55, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %57 = call ptr @_ZNSt23_Rb_tree_const_iteratorIPKN7fastjet15ClusterSequence15history_elementEEmmEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0) #7
  %58 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %16, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIPKN7fastjet15ClusterSequence15history_elementEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  store ptr %60, ptr %17, align 8, !tbaa !5
  %61 = load i32, ptr %13, align 4, !tbaa !11
  %62 = load i32, ptr %10, align 4, !tbaa !11
  %63 = icmp eq i32 %61, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %56
  store i32 3, ptr %18, align 4
  br label %110

65:                                               ; preds = %56
  %66 = load ptr, ptr %17, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.fastjet::ClusterSequence::history_element", ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !13
  %69 = icmp slt i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %65
  store i32 3, ptr %18, align 4
  br label %110

71:                                               ; preds = %65
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.fastjet::ClusterSequence::history_element", ptr %72, i32 0, i32 5
  %74 = load double, ptr %73, align 8, !tbaa !15
  %75 = load double, ptr %9, align 8, !tbaa !9
  %76 = fcmp ole double %74, %75
  br i1 %76, label %77, label %78

77:                                               ; preds = %71
  store i32 3, ptr %18, align 4
  br label %110

78:                                               ; preds = %71
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %14, i64 8, i1 false), !tbaa.struct !16
  %80 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %19, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8
  %82 = call ptr @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIS4_E(ptr noundef nonnull align 8 dereferenceable(48) %79, ptr %81)
  %83 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %85 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %25, i32 0, i32 3
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.fastjet::ClusterSequence::history_element", ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !13
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %89) #7
  store ptr %90, ptr %21, align 8, !tbaa !5
  %91 = call { ptr, i8 } @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48) %84, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %92 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 0
  %93 = extractvalue { ptr, i8 } %91, 0
  store ptr %93, ptr %92, align 8
  %94 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 1
  %95 = extractvalue { ptr, i8 } %91, 1
  store i8 %95, ptr %94, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %97 = getelementptr inbounds %"class.fastjet::ClusterSequence", ptr %25, i32 0, i32 3
  %98 = load ptr, ptr %17, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.fastjet::ClusterSequence::history_element", ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 4, !tbaa !17
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %101) #7
  store ptr %102, ptr %23, align 8, !tbaa !5
  %103 = call { ptr, i8 } @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48) %96, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %104 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 0
  %105 = extractvalue { ptr, i8 } %103, 0
  store ptr %105, ptr %104, align 8
  %106 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 1
  %107 = extractvalue { ptr, i8 } %103, 1
  store i8 %107, ptr %106, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %108 = load i32, ptr %13, align 4, !tbaa !11
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %13, align 4, !tbaa !11
  store i32 0, ptr %18, align 4
  br label %110

110:                                              ; preds = %78, %77, %70, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %111 = load i32, ptr %18, align 4
  switch i32 %111, label %114 [
    i32 0, label %112
    i32 3, label %113
  ]

112:                                              ; preds = %110
  br label %44, !llvm.loop !18

113:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  ret void

114:                                              ; preds = %110
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPKN7fastjet15ClusterSequence15history_elementEES7_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7fastjet15ClusterSequence8containsERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(88)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSN7fastjet15ClusterSequence15history_elementE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !10, i64 16, !10, i64 24}
!15 = !{!14, !10, i64 24}
!16 = !{i64 0, i64 8, !5}
!17 = !{!14, !12, i64 4}
!18 = distinct !{!18, !19}
!19 = !{!"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"

%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@.str.2 = external hidden unnamed_addr constant [136 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__._ZNK7fastjet15ClusterSequence15get_subhist_setERSt3setIPKNS0_15history_elementESt4lessIS4_ESaIS4_EERKNS_9PseudoJetEdi = external hidden unnamed_addr constant [117 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

; 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 i32 @_ZNK7fastjet9PseudoJet18cluster_hist_indexEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7fastjet15ClusterSequence15get_subhist_setERSt3setIPKNS0_15history_elementESt4lessIS4_ESaIS4_EERKNS_9PseudoJetEdi(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(88) %2, double noundef %3, i32 noundef %4) local_unnamed_addr #4 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = tail call noundef zeroext i1 @_ZNK7fastjet15ClusterSequence8containsERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(88) %2)
  br i1 %11, label %13, label %12

12:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.56, ptr noundef nonnull @.str.2, i32 noundef 868, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7fastjet15ClusterSequence15get_subhist_setERSt3setIPKNS0_15history_elementESt4lessIS4_ESaIS4_EERKNS_9PseudoJetEdi) #5
  unreachable

13:                                               ; preds = %5
  tail call void @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %14 = getelementptr inbounds i8, ptr %0, i64 112
  %15 = tail call noundef i32 @_ZNK7fastjet9PseudoJet18cluster_hist_indexEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %16 = sext i32 %15 to i64
  %17 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %16) #6
  store ptr %17, ptr %6, align 8, !tbaa !5
  %18 = call { ptr, i8 } @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %19 = call ptr @_ZNKSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  store ptr %19, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %20 = call ptr @_ZNKSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  store ptr %20, ptr %8, align 8
  %21 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPKN7fastjet15ClusterSequence15history_elementEES7_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %33, %13
  call void @__assert_fail(ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.2, i32 noundef 879, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK7fastjet15ClusterSequence15get_subhist_setERSt3setIPKNS0_15history_elementESt4lessIS4_ESaIS4_EERKNS_9PseudoJetEdi) #5
  unreachable

.lr.ph:                                           ; preds = %13, %33
  %.029 = phi i32 [ %44, %33 ], [ 1, %13 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %22 = call ptr @_ZNSt23_Rb_tree_const_iteratorIPKN7fastjet15ClusterSequence15history_elementEEmmEi(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef 0) #6
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorIPKN7fastjet15ClusterSequence15history_elementEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = icmp eq i32 %.029, %4
  br i1 %25, label %48, label %26

26:                                               ; preds = %.lr.ph
  %27 = load i32, ptr %24, align 8, !tbaa !9
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %48, label %29

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %24, i64 24
  %31 = load double, ptr %30, align 8, !tbaa !13
  %32 = fcmp ugt double %31, %3
  br i1 %32, label %33, label %48

33:                                               ; preds = %29
  %.sroa.04.0.copyload = load ptr, ptr %7, align 8, !tbaa !5
  %34 = call ptr @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE5eraseB5cxx11ESt23_Rb_tree_const_iteratorIS4_E(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr %.sroa.04.0.copyload)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %35 = load i32, ptr %24, align 8, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %36) #6
  store ptr %37, ptr %9, align 8, !tbaa !5
  %38 = call { ptr, i8 } @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %39 = getelementptr inbounds i8, ptr %24, i64 4
  %40 = load i32, ptr %39, align 4, !tbaa !14
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %41) #6
  store ptr %42, ptr %10, align 8, !tbaa !5
  %43 = call { ptr, i8 } @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %44 = add nuw nsw i32 %.029, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %45 = call ptr @_ZNKSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  store ptr %45, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %46 = call ptr @_ZNKSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  store ptr %46, ptr %8, align 8
  %47 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPKN7fastjet15ClusterSequence15history_elementEES7_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br i1 %47, label %.lr.ph, label %._crit_edge

48:                                               ; preds = %.lr.ph, %26, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIPKN7fastjet15ClusterSequence15history_elementEES7_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7fastjet15ClusterSequence8containsERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIPKN7fastjet15ClusterSequence15history_elementESt4lessIS4_ESaIS4_EE6insertEOS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { noreturn nounwind }
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, !11, i64 0}
!10 = !{!"_ZTSN7fastjet15ClusterSequence15history_elementE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !12, i64 24}
!14 = !{!10, !11, i64 4}


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