; 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::LimitedWarning" = type { i32, i32, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.20" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZN7fastjet23ClusterSequenceAreaBase19_warnings_zero_areaE = external dso_local global %"class.fastjet::LimitedWarning", align 8
@_ZN7fastjet23ClusterSequenceAreaBase20_warnings_empty_areaE = external dso_local global %"class.fastjet::LimitedWarning", align 8
@.str = external hidden unnamed_addr constant [261 x i8], align 1
@__const._ZNK7fastjet23ClusterSequenceAreaBase24get_median_rho_and_sigmaERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorEbRdSA_SA_b.posn = external hidden unnamed_addr constant [2 x double], align 16
@.str.4 = external hidden unnamed_addr constant [283 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7fastjet23ClusterSequenceAreaBase20empty_area_from_jetsERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7fastjet8Selector4passERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(88)) #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88)) #3 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7fastjet23ClusterSequenceAreaBase24get_median_rho_and_sigmaERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorEbRdSA_SA_b(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, i1 noundef zeroext %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, i1 noundef zeroext %7) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i8, align 1
  %17 = alloca %"class.std::vector.15", align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca %"class.fastjet::PseudoJet", align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator.20", align 1
  %28 = alloca i32, align 4
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca [2 x double], align 16
  %32 = alloca [2 x double], align 16
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca i32, align 4
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::allocator.20", align 1
  %38 = alloca i32, align 4
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  %41 = alloca i32, align 4
  %42 = alloca double, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  %43 = zext i1 %3 to i8
  store i8 %43, ptr %12, align 1, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %44 = zext i1 %7 to i8
  store i8 %44, ptr %16, align 1, !tbaa !9
  %45 = load ptr, ptr %9, align 8
  call void @_ZNK7fastjet23ClusterSequenceAreaBase30_check_jet_alg_good_for_medianEv(ptr noundef nonnull align 8 dereferenceable(276) %45)
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK7fastjet23ClusterSequenceAreaBase31_check_selector_good_for_medianERKNS_8SelectorE(ptr noundef nonnull align 8 dereferenceable(276) %45, ptr noundef nonnull align 8 dereferenceable(16) %46)
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #9
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !13
  br label %47

47:                                               ; preds = %140, %8
  %48 = load i32, ptr %20, align 4, !tbaa !13
  %49 = zext i32 %48 to i64
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call noundef i64 @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #9
  %52 = icmp ult i64 %49, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %144

54:                                               ; preds = %47
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = load i32, ptr %20, align 4, !tbaa !13
  %58 = zext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %58) #9
  %60 = invoke noundef zeroext i1 @_ZNK7fastjet8Selector4passERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(88) %59)
          to label %61 unwind label %76

61:                                               ; preds = %54
  br i1 %60, label %62, label %139

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %63 = load i8, ptr %12, align 1, !tbaa !9, !range !15, !noundef !16
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %89

65:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 88, ptr %24) #9
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = load i32, ptr %20, align 4, !tbaa !13
  %68 = zext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %68) #9
  %70 = load ptr, ptr %45, align 8, !tbaa !17
  %71 = getelementptr inbounds ptr, ptr %70, i64 4
  %72 = load ptr, ptr %71, align 8
  invoke void %72(ptr dead_on_unwind writable sret(%"class.fastjet::PseudoJet") align 8 %24, ptr noundef nonnull align 8 dereferenceable(276) %45, ptr noundef nonnull align 8 dereferenceable(88) %69)
          to label %73 unwind label %80

73:                                               ; preds = %65
  %74 = invoke noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %24)
          to label %75 unwind label %84

75:                                               ; preds = %73
  store double %74, ptr %23, align 8, !tbaa !11
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %24) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %24) #9
  br label %103

76:                                               ; preds = %54
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %21, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %22, align 4
  br label %143

80:                                               ; preds = %65
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %21, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %22, align 4
  br label %88

84:                                               ; preds = %73
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %21, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %22, align 4
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %24) #9
  br label %88

88:                                               ; preds = %84, %80
  call void @llvm.lifetime.end.p0(i64 88, ptr %24) #9
  br label %138

89:                                               ; preds = %62
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %20, align 4, !tbaa !13
  %92 = zext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %92) #9
  %94 = load ptr, ptr %45, align 8, !tbaa !17
  %95 = getelementptr inbounds ptr, ptr %94, i64 2
  %96 = load ptr, ptr %95, align 8
  %97 = invoke noundef double %96(ptr noundef nonnull align 8 dereferenceable(276) %45, ptr noundef nonnull align 8 dereferenceable(88) %93)
          to label %98 unwind label %99

98:                                               ; preds = %89
  store double %97, ptr %23, align 8, !tbaa !11
  br label %103

99:                                               ; preds = %89
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %21, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %22, align 4
  br label %138

103:                                              ; preds = %98, %75
  %104 = load double, ptr %23, align 8, !tbaa !11
  %105 = fcmp ogt double %104, 0.000000e+00
  br i1 %105, label %106, label %120

106:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = load i32, ptr %20, align 4, !tbaa !13
  %109 = zext i32 %108 to i64
  %110 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109) #9
  %111 = invoke noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %110)
          to label %112 unwind label %116

112:                                              ; preds = %106
  %113 = load double, ptr %23, align 8, !tbaa !11
  %114 = fdiv double %111, %113
  store double %114, ptr %25, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %115 unwind label %116

115:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %132

116:                                              ; preds = %112, %106
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %21, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %138

120:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %121 unwind label %123

121:                                              ; preds = %120
  invoke void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7fastjet23ClusterSequenceAreaBase19_warnings_zero_areaE, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %122 unwind label %127

122:                                              ; preds = %121
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #9
  br label %132

123:                                              ; preds = %120
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %21, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %22, align 4
  br label %131

127:                                              ; preds = %121
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %21, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %22, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  br label %131

131:                                              ; preds = %127, %123
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #9
  br label %138

132:                                              ; preds = %122, %115
  %133 = load double, ptr %23, align 8, !tbaa !11
  %134 = load double, ptr %18, align 8, !tbaa !11
  %135 = fadd double %134, %133
  store double %135, ptr %18, align 8, !tbaa !11
  %136 = load double, ptr %19, align 8, !tbaa !11
  %137 = fadd double %136, 1.000000e+00
  store double %137, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %139

138:                                              ; preds = %131, %116, %99, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %143

139:                                              ; preds = %132, %61
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %20, align 4, !tbaa !13
  %142 = add i32 %141, 1
  store i32 %142, ptr %20, align 4, !tbaa !13
  br label %47, !llvm.loop !19

143:                                              ; preds = %138, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %322

144:                                              ; preds = %53
  %145 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  %146 = icmp eq i64 %145, 0
  br i1 %146, label %147, label %151

147:                                              ; preds = %144
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %148, align 8, !tbaa !11
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %149, align 8, !tbaa !11
  %150 = load ptr, ptr %15, align 8, !tbaa !5
  store double 0.000000e+00, ptr %150, align 8, !tbaa !11
  store i32 1, ptr %28, align 4
  br label %318

151:                                              ; preds = %144
  %152 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  %154 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  %155 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %154, ptr %155, align 8
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8
  %158 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr %157, ptr %159)
          to label %160 unwind label %167

160:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 @__const._ZNK7fastjet23ClusterSequenceAreaBase24get_median_rho_and_sigmaERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorEbRdSA_SA_b.posn, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %161 = load ptr, ptr %45, align 8, !tbaa !17
  %162 = getelementptr inbounds ptr, ptr %161, i64 6
  %163 = load ptr, ptr %162, align 8
  %164 = invoke noundef zeroext i1 %163(ptr noundef nonnull align 8 dereferenceable(276) %45)
          to label %165 unwind label %171

165:                                              ; preds = %160
  br i1 %164, label %166, label %175

166:                                              ; preds = %165
  store double 0.000000e+00, ptr %34, align 8, !tbaa !11
  store double 0.000000e+00, ptr %33, align 8, !tbaa !11
  br label %205

167:                                              ; preds = %151
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %21, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %22, align 4
  br label %322

171:                                              ; preds = %191, %184, %178, %160
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %21, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %22, align 4
  br label %321

175:                                              ; preds = %165
  %176 = load i8, ptr %16, align 1, !tbaa !9, !range !15, !noundef !16
  %177 = trunc i8 %176 to i1
  br i1 %177, label %178, label %191

178:                                              ; preds = %175
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = load ptr, ptr %45, align 8, !tbaa !17
  %181 = getelementptr inbounds ptr, ptr %180, i64 7
  %182 = load ptr, ptr %181, align 8
  %183 = invoke noundef double %182(ptr noundef nonnull align 8 dereferenceable(276) %45, ptr noundef nonnull align 8 dereferenceable(16) %179)
          to label %184 unwind label %171

184:                                              ; preds = %178
  store double %183, ptr %34, align 8, !tbaa !11
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = load ptr, ptr %45, align 8, !tbaa !17
  %187 = getelementptr inbounds ptr, ptr %186, i64 8
  %188 = load ptr, ptr %187, align 8
  %189 = invoke noundef double %188(ptr noundef nonnull align 8 dereferenceable(276) %45, ptr noundef nonnull align 8 dereferenceable(16) %185)
          to label %190 unwind label %171

190:                                              ; preds = %184
  store double %189, ptr %33, align 8, !tbaa !11
  br label %204

191:                                              ; preds = %175
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  %194 = invoke noundef double @_ZNK7fastjet23ClusterSequenceAreaBase20empty_area_from_jetsERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorE(ptr noundef nonnull align 8 dereferenceable(276) %45, ptr noundef nonnull align 8 dereferenceable(24) %192, ptr noundef nonnull align 8 dereferenceable(16) %193)
          to label %195 unwind label %171

195:                                              ; preds = %191
  store double %194, ptr %34, align 8, !tbaa !11
  %196 = load double, ptr %18, align 8, !tbaa !11
  %197 = load double, ptr %19, align 8, !tbaa !11
  %198 = fdiv double %196, %197
  %199 = load ptr, ptr %15, align 8, !tbaa !5
  store double %198, ptr %199, align 8, !tbaa !11
  %200 = load double, ptr %34, align 8, !tbaa !11
  %201 = load ptr, ptr %15, align 8, !tbaa !5
  %202 = load double, ptr %201, align 8, !tbaa !11
  %203 = fdiv double %200, %202
  store double %203, ptr %33, align 8, !tbaa !11
  br label %204

204:                                              ; preds = %195, %190
  br label %205

205:                                              ; preds = %204, %166
  %206 = load double, ptr %33, align 8, !tbaa !11
  %207 = load double, ptr %19, align 8, !tbaa !11
  %208 = fadd double %207, %206
  store double %208, ptr %19, align 8, !tbaa !11
  %209 = load double, ptr %34, align 8, !tbaa !11
  %210 = load double, ptr %18, align 8, !tbaa !11
  %211 = fadd double %210, %209
  store double %211, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  %212 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  %213 = trunc i64 %212 to i32
  store i32 %213, ptr %35, align 4, !tbaa !13
  %214 = load double, ptr %33, align 8, !tbaa !11
  %215 = load i32, ptr %35, align 4, !tbaa !13
  %216 = sub nsw i32 0, %215
  %217 = sitofp i32 %216 to double
  %218 = fdiv double %217, 4.000000e+00
  %219 = fcmp olt double %214, %218
  br i1 %219, label %220, label %232

220:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %221 unwind label %223

221:                                              ; preds = %220
  invoke void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7fastjet23ClusterSequenceAreaBase20_warnings_empty_areaE, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %222 unwind label %227

222:                                              ; preds = %221
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #9
  br label %232

223:                                              ; preds = %220
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %21, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %22, align 4
  br label %231

227:                                              ; preds = %221
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %21, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %22, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  br label %231

231:                                              ; preds = %227, %223
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %321

232:                                              ; preds = %222, %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  store i32 0, ptr %38, align 4, !tbaa !13
  br label %233

233:                                              ; preds = %296, %232
  %234 = load i32, ptr %38, align 4, !tbaa !13
  %235 = icmp slt i32 %234, 2
  br i1 %235, label %237, label %236

236:                                              ; preds = %233
  store i32 5, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %299

237:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %238 = load i32, ptr %35, align 4, !tbaa !13
  %239 = sitofp i32 %238 to double
  %240 = fsub double %239, 1.000000e+00
  %241 = load double, ptr %33, align 8, !tbaa !11
  %242 = fadd double %240, %241
  %243 = load i32, ptr %38, align 4, !tbaa !13
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [2 x double], ptr %31, i64 0, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !11
  %247 = load double, ptr %33, align 8, !tbaa !11
  %248 = fneg double %247
  %249 = call double @llvm.fmuladd.f64(double %242, double %246, double %248)
  store double %249, ptr %39, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %250 = load double, ptr %39, align 8, !tbaa !11
  %251 = fcmp oge double %250, 0.000000e+00
  br i1 %251, label %252, label %290

252:                                              ; preds = %237
  %253 = load i32, ptr %35, align 4, !tbaa !13
  %254 = icmp sgt i32 %253, 1
  br i1 %254, label %255, label %290

255:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  %256 = load double, ptr %39, align 8, !tbaa !11
  %257 = fptosi double %256 to i32
  store i32 %257, ptr %41, align 4, !tbaa !13
  %258 = load i32, ptr %41, align 4, !tbaa !13
  %259 = add nsw i32 %258, 1
  %260 = load i32, ptr %35, align 4, !tbaa !13
  %261 = sub nsw i32 %260, 1
  %262 = icmp sgt i32 %259, %261
  br i1 %262, label %263, label %269

263:                                              ; preds = %255
  %264 = load i32, ptr %35, align 4, !tbaa !13
  %265 = sub nsw i32 %264, 2
  store i32 %265, ptr %41, align 4, !tbaa !13
  %266 = load i32, ptr %35, align 4, !tbaa !13
  %267 = sub nsw i32 %266, 1
  %268 = sitofp i32 %267 to double
  store double %268, ptr %39, align 8, !tbaa !11
  br label %269

269:                                              ; preds = %263, %255
  %270 = load i32, ptr %41, align 4, !tbaa !13
  %271 = sext i32 %270 to i64
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %271) #9
  %273 = load double, ptr %272, align 8, !tbaa !11
  %274 = load i32, ptr %41, align 4, !tbaa !13
  %275 = add nsw i32 %274, 1
  %276 = sitofp i32 %275 to double
  %277 = load double, ptr %39, align 8, !tbaa !11
  %278 = fsub double %276, %277
  %279 = load i32, ptr %41, align 4, !tbaa !13
  %280 = add nsw i32 %279, 1
  %281 = sext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %281) #9
  %283 = load double, ptr %282, align 8, !tbaa !11
  %284 = load double, ptr %39, align 8, !tbaa !11
  %285 = load i32, ptr %41, align 4, !tbaa !13
  %286 = sitofp i32 %285 to double
  %287 = fsub double %284, %286
  %288 = fmul double %283, %287
  %289 = call double @llvm.fmuladd.f64(double %273, double %278, double %288)
  store double %289, ptr %40, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %291

290:                                              ; preds = %252, %237
  store double 0.000000e+00, ptr %40, align 8, !tbaa !11
  br label %291

291:                                              ; preds = %290, %269
  %292 = load double, ptr %40, align 8, !tbaa !11
  %293 = load i32, ptr %38, align 4, !tbaa !13
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [2 x double], ptr %32, i64 0, i64 %294
  store double %292, ptr %295, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  br label %296

296:                                              ; preds = %291
  %297 = load i32, ptr %38, align 4, !tbaa !13
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %38, align 4, !tbaa !13
  br label %233, !llvm.loop !21

299:                                              ; preds = %236
  %300 = getelementptr inbounds [2 x double], ptr %32, i64 0, i64 0
  %301 = load double, ptr %300, align 16, !tbaa !11
  %302 = load ptr, ptr %13, align 8, !tbaa !5
  store double %301, ptr %302, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %303 = getelementptr inbounds [2 x double], ptr %32, i64 0, i64 0
  %304 = load double, ptr %303, align 16, !tbaa !11
  %305 = getelementptr inbounds [2 x double], ptr %32, i64 0, i64 1
  %306 = load double, ptr %305, align 8, !tbaa !11
  %307 = fsub double %304, %306
  store double %307, ptr %42, align 8, !tbaa !11
  %308 = load double, ptr %18, align 8, !tbaa !11
  %309 = load double, ptr %19, align 8, !tbaa !11
  %310 = fdiv double %308, %309
  %311 = load ptr, ptr %15, align 8, !tbaa !5
  store double %310, ptr %311, align 8, !tbaa !11
  %312 = load double, ptr %42, align 8, !tbaa !11
  %313 = load ptr, ptr %15, align 8, !tbaa !5
  %314 = load double, ptr %313, align 8, !tbaa !11
  %315 = call double @sqrt(double noundef %314) #9
  %316 = fmul double %312, %315
  %317 = load ptr, ptr %14, align 8, !tbaa !5
  store double %316, ptr %317, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  store i32 0, ptr %28, align 4
  br label %318

318:                                              ; preds = %299, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #9
  %319 = load i32, ptr %28, align 4
  switch i32 %319, label %328 [
    i32 0, label %320
    i32 1, label %320
  ]

320:                                              ; preds = %318, %318
  ret void

321:                                              ; preds = %231, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  br label %322

322:                                              ; preds = %321, %167, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #9
  br label %323

323:                                              ; preds = %322
  %324 = load ptr, ptr %21, align 8
  %325 = load i32, ptr %22, align 4
  %326 = insertvalue { ptr, i32 } poison, ptr %324, 0
  %327 = insertvalue { ptr, i32 } %326, i32 %325, 1
  resume { ptr, i32 } %327

328:                                              ; preds = %318
  unreachable
}

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

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

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

declare void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr, ptr) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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) #7

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #8

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; 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::LimitedWarning" = type { i32, i32, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.20" = type { i8 }

@_ZN7fastjet23ClusterSequenceAreaBase19_warnings_zero_areaE = external dso_local global %"class.fastjet::LimitedWarning", align 8
@_ZN7fastjet23ClusterSequenceAreaBase20_warnings_empty_areaE = external dso_local global %"class.fastjet::LimitedWarning", align 8
@.str = external hidden unnamed_addr constant [261 x i8], align 1
@__const._ZNK7fastjet23ClusterSequenceAreaBase24get_median_rho_and_sigmaERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorEbRdSA_SA_b.posn = external hidden unnamed_addr constant [2 x double], align 16
@.str.4 = external hidden unnamed_addr constant [283 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK7fastjet23ClusterSequenceAreaBase20empty_area_from_jetsERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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) #1

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #3 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7fastjet23ClusterSequenceAreaBase24get_median_rho_and_sigmaERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorEbRdSA_SA_b(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, i1 noundef zeroext %3, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %4, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %5, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %6, i1 noundef zeroext %7) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.std::vector.15", align 8
  %10 = alloca %"class.fastjet::PseudoJet", align 8
  %11 = alloca double, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.20", align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.20", align 1
  tail call void @_ZNK7fastjet23ClusterSequenceAreaBase30_check_jet_alg_good_for_medianEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  tail call void @_ZNK7fastjet23ClusterSequenceAreaBase31_check_selector_good_for_medianERKNS_8SelectorE(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(16) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %16 = call noundef i64 @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %.not134 = icmp eq i64 %16, 0
  br i1 %.not134, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %8
  br i1 %3, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %41
  %17 = phi i64 [ %44, %41 ], [ 0, %.lr.ph ]
  %.078112.us = phi i32 [ %43, %41 ], [ 0, %.lr.ph ]
  %18 = phi <2 x double> [ %42, %41 ], [ zeroinitializer, %.lr.ph ]
  %19 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17) #8
  %20 = invoke noundef zeroext i1 @_ZNK7fastjet8Selector4passERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(88) %19)
          to label %21 unwind label %.split.us

21:                                               ; preds = %.lr.ph.split.us
  br i1 %20, label %22, label %41

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %10) #8
  %23 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17) #8
  %24 = load ptr, ptr %0, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 32
  %26 = load ptr, ptr %25, align 8
  invoke void %26(ptr dead_on_unwind nonnull writable sret(%"class.fastjet::PseudoJet") align 8 %10, ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(88) %23)
          to label %27 unwind label %.split117.us

27:                                               ; preds = %22
  %28 = call noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %10) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %10) #8
  %29 = fcmp ogt double %28, 0.000000e+00
  br i1 %29, label %33, label %30

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %31 unwind label %.split120.us

31:                                               ; preds = %30
  invoke void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7fastjet23ClusterSequenceAreaBase19_warnings_zero_areaE, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %32 unwind label %.split123.us

32:                                               ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  br label %38

33:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %34 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17) #8
  %35 = call noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %34)
  %36 = fdiv double %35, %28
  store double %36, ptr %11, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %37 unwind label %.split126.us

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %38

38:                                               ; preds = %37, %32
  %39 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %28, i64 1
  %40 = fadd <2 x double> %18, %39
  br label %41

41:                                               ; preds = %38, %21
  %42 = phi <2 x double> [ %40, %38 ], [ %18, %21 ]
  %43 = add i32 %.078112.us, 1
  %44 = zext i32 %43 to i64
  %45 = call noundef i64 @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %46 = icmp ugt i64 %45, %44
  br i1 %46, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !11

.split.us:                                        ; preds = %.lr.ph.split.us
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %195

.split117.us:                                     ; preds = %22
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %10) #8
  br label %195

.split120.us:                                     ; preds = %30
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %84

.split123.us:                                     ; preds = %31
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %83

.split126.us:                                     ; preds = %33
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %77

._crit_edge:                                      ; preds = %88, %41, %8
  %52 = phi <2 x double> [ zeroinitializer, %8 ], [ %42, %41 ], [ %89, %88 ]
  %53 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %54 = icmp eq i64 %53, 0
  br i1 %54, label %94, label %95

.lr.ph.split:                                     ; preds = %.lr.ph, %88
  %55 = phi i64 [ %91, %88 ], [ 0, %.lr.ph ]
  %.078112 = phi i32 [ %90, %88 ], [ 0, %.lr.ph ]
  %56 = phi <2 x double> [ %89, %88 ], [ zeroinitializer, %.lr.ph ]
  %57 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %55) #8
  %58 = invoke noundef zeroext i1 @_ZNK7fastjet8Selector4passERKNS_9PseudoJetE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(88) %57)
          to label %59 unwind label %.split

59:                                               ; preds = %.lr.ph.split
  br i1 %58, label %60, label %88

60:                                               ; preds = %59
  %61 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %55) #8
  %62 = load ptr, ptr %0, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  %64 = load ptr, ptr %63, align 8
  %65 = invoke noundef double %64(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(88) %61)
          to label %69 unwind label %67

.split:                                           ; preds = %.lr.ph.split
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %195

67:                                               ; preds = %60
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %195

69:                                               ; preds = %60
  %70 = fcmp ogt double %65, 0.000000e+00
  br i1 %70, label %71, label %78

71:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %72 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %55) #8
  %73 = call noundef double @_ZNK7fastjet9PseudoJet4perpEv(ptr noundef nonnull align 8 dereferenceable(88) %72)
  %74 = fdiv double %73, %65
  store double %74, ptr %11, align 8, !tbaa !8
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %75 unwind label %.split126

75:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %85

.split126:                                        ; preds = %71
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %77

77:                                               ; preds = %.split126.us, %.split126
  %.us-phi127 = phi { ptr, i32 } [ %76, %.split126 ], [ %51, %.split126.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %195

78:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %79 unwind label %.split120

79:                                               ; preds = %78
  invoke void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7fastjet23ClusterSequenceAreaBase19_warnings_zero_areaE, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %80 unwind label %.split123

80:                                               ; preds = %79
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  br label %85

.split120:                                        ; preds = %78
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

.split123:                                        ; preds = %79
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %83

83:                                               ; preds = %.split123.us, %.split123
  %.us-phi124 = phi { ptr, i32 } [ %82, %.split123 ], [ %50, %.split123.us ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %84

84:                                               ; preds = %.split120, %.split120.us, %83
  %.pn94 = phi { ptr, i32 } [ %.us-phi124, %83 ], [ %81, %.split120 ], [ %49, %.split120.us ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  br label %195

85:                                               ; preds = %80, %75
  %86 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %65, i64 1
  %87 = fadd <2 x double> %56, %86
  br label %88

88:                                               ; preds = %59, %85
  %89 = phi <2 x double> [ %87, %85 ], [ %56, %59 ]
  %90 = add i32 %.078112, 1
  %91 = zext i32 %90 to i64
  %92 = call noundef i64 @_ZNKSt6vectorIN7fastjet9PseudoJetESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %93 = icmp ugt i64 %92, %91
  br i1 %93, label %.lr.ph.split, label %._crit_edge, !llvm.loop !11

94:                                               ; preds = %._crit_edge
  store double 0.000000e+00, ptr %4, align 8, !tbaa !8
  store double 0.000000e+00, ptr %5, align 8, !tbaa !8
  store double 0.000000e+00, ptr %6, align 8, !tbaa !8
  br label %194

95:                                               ; preds = %._crit_edge
  %96 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %97 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr %96, ptr %97)
          to label %98 unwind label %104

98:                                               ; preds = %95
  %99 = load ptr, ptr %0, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 48
  %101 = load ptr, ptr %100, align 8
  %102 = invoke noundef zeroext i1 %101(ptr noundef nonnull align 8 dereferenceable(276) %0)
          to label %103 unwind label %106

103:                                              ; preds = %98
  br i1 %102, label %126, label %108

104:                                              ; preds = %95
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %195

106:                                              ; preds = %119, %114, %109, %98
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %195

108:                                              ; preds = %103
  br i1 %7, label %109, label %119

109:                                              ; preds = %108
  %110 = load ptr, ptr %0, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 56
  %112 = load ptr, ptr %111, align 8
  %113 = invoke noundef double %112(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %114 unwind label %106

114:                                              ; preds = %109
  %115 = load ptr, ptr %0, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 64
  %117 = load ptr, ptr %116, align 8
  %118 = invoke noundef double %117(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %126 unwind label %106

119:                                              ; preds = %108
  %120 = invoke noundef double @_ZNK7fastjet23ClusterSequenceAreaBase20empty_area_from_jetsERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorE(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %121 unwind label %106

121:                                              ; preds = %119
  %122 = extractelement <2 x double> %52, i64 0
  %123 = extractelement <2 x double> %52, i64 1
  %124 = fdiv double %123, %122
  store double %124, ptr %6, align 8, !tbaa !8
  %125 = fdiv double %120, %124
  br label %126

126:                                              ; preds = %114, %103, %121
  %.077 = phi double [ %125, %121 ], [ 0.000000e+00, %103 ], [ %118, %114 ]
  %.076 = phi double [ %120, %121 ], [ 0.000000e+00, %103 ], [ %113, %114 ]
  %127 = extractelement <2 x double> %52, i64 0
  %128 = fadd double %127, %.077
  %129 = extractelement <2 x double> %52, i64 1
  %130 = fadd double %129, %.076
  %131 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %132 = trunc i64 %131 to i32
  %133 = sub nsw i32 0, %132
  %134 = sitofp i32 %133 to double
  %135 = fmul double %134, 2.500000e-01
  %136 = fcmp olt double %.077, %135
  br i1 %136, label %137, label %145

137:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %138 unwind label %140

138:                                              ; preds = %137
  invoke void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) @_ZN7fastjet23ClusterSequenceAreaBase20_warnings_empty_areaE, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %139 unwind label %142

139:                                              ; preds = %138
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  br label %145

140:                                              ; preds = %137
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %144

142:                                              ; preds = %138
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %144

144:                                              ; preds = %142, %140
  %.pn = phi { ptr, i32 } [ %143, %142 ], [ %141, %140 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  br label %195

145:                                              ; preds = %139, %126
  %146 = sitofp i32 %132 to double
  %147 = fadd double %146, -1.000000e+00
  %148 = fadd double %.077, %147
  %149 = fneg double %.077
  %150 = icmp sgt i32 %132, 1
  %151 = add nsw i32 %132, -1
  %152 = add nsw i32 %132, -2
  %153 = uitofp nneg i32 %151 to double
  br i1 %150, label %.split131.preheader, label %.split133.us

.split131.preheader:                              ; preds = %145
  %154 = load double, ptr @__const._ZNK7fastjet23ClusterSequenceAreaBase24get_median_rho_and_sigmaERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorEbRdSA_SA_b.posn, align 16, !tbaa !8
  %155 = call double @llvm.fmuladd.f64(double %148, double %154, double %149)
  %156 = fcmp ult double %155, 0.000000e+00
  br i1 %156, label %.split131.1, label %161

.split133.us:                                     ; preds = %.split131.1, %179, %145
  %.sroa.0.0 = phi double [ 0.000000e+00, %145 ], [ %.071, %179 ], [ %.071, %.split131.1 ]
  %.sroa.6.0 = phi double [ 0.000000e+00, %145 ], [ %193, %179 ], [ 0.000000e+00, %.split131.1 ]
  store double %.sroa.0.0, ptr %4, align 8, !tbaa !8
  %157 = fsub double %.sroa.0.0, %.sroa.6.0
  %158 = fdiv double %130, %128
  store double %158, ptr %6, align 8, !tbaa !8
  %159 = call double @sqrt(double noundef %158) #8
  %160 = fmul double %157, %159
  store double %160, ptr %5, align 8, !tbaa !8
  br label %194

161:                                              ; preds = %.split131.preheader
  %162 = fptosi double %155 to i32
  %.not = icmp sgt i32 %151, %162
  %.072 = select i1 %.not, double %155, double %153
  %.070 = select i1 %.not, i32 %162, i32 %152
  %163 = sext i32 %.070 to i64
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %163) #8
  %165 = load double, ptr %164, align 8, !tbaa !8
  %166 = add nsw i32 %.070, 1
  %167 = sitofp i32 %166 to double
  %168 = fsub double %167, %.072
  %169 = sext i32 %166 to i64
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %169) #8
  %171 = load double, ptr %170, align 8, !tbaa !8
  %172 = sitofp i32 %.070 to double
  %173 = fsub double %.072, %172
  %174 = fmul double %173, %171
  %175 = call double @llvm.fmuladd.f64(double %165, double %168, double %174)
  br label %.split131.1

.split131.1:                                      ; preds = %.split131.preheader, %161
  %.071 = phi double [ %175, %161 ], [ 0.000000e+00, %.split131.preheader ]
  %176 = load double, ptr getelementptr inbounds (i8, ptr @__const._ZNK7fastjet23ClusterSequenceAreaBase24get_median_rho_and_sigmaERKSt6vectorINS_9PseudoJetESaIS2_EERKNS_8SelectorEbRdSA_SA_b.posn, i64 8), align 8, !tbaa !8
  %177 = call double @llvm.fmuladd.f64(double %148, double %176, double %149)
  %178 = fcmp ult double %177, 0.000000e+00
  br i1 %178, label %.split133.us, label %179

179:                                              ; preds = %.split131.1
  %180 = fptosi double %177 to i32
  %.not.1 = icmp sgt i32 %151, %180
  %.072.1 = select i1 %.not.1, double %177, double %153
  %.070.1 = select i1 %.not.1, i32 %180, i32 %152
  %181 = sext i32 %.070.1 to i64
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %181) #8
  %183 = load double, ptr %182, align 8, !tbaa !8
  %184 = add nsw i32 %.070.1, 1
  %185 = sitofp i32 %184 to double
  %186 = fsub double %185, %.072.1
  %187 = sext i32 %184 to i64
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %187) #8
  %189 = load double, ptr %188, align 8, !tbaa !8
  %190 = sitofp i32 %.070.1 to double
  %191 = fsub double %.072.1, %190
  %192 = fmul double %191, %189
  %193 = call double @llvm.fmuladd.f64(double %183, double %186, double %192)
  br label %.split133.us

194:                                              ; preds = %.split133.us, %94
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  ret void

195:                                              ; preds = %106, %144, %.split, %.split.us, %84, %77, %67, %.split117.us, %104
  %.pn96.pn.pn = phi { ptr, i32 } [ %105, %104 ], [ %.us-phi127, %77 ], [ %.pn94, %84 ], [ %48, %.split117.us ], [ %68, %67 ], [ %66, %.split ], [ %47, %.split.us ], [ %.pn, %144 ], [ %107, %106 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  resume { ptr, i32 } %.pn96.pn.pn
}

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

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

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

declare void @_ZN7fastjet14LimitedWarning4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #6

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #7

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { "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 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 = { mustprogress nofree nounwind willreturn memory(write) "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 #8 = { 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, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass