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

; 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.std::_Expr" = type { %"struct.std::__detail::_UnClos" }
%"struct.std::__detail::_UnClos" = type { %"class.std::__detail::_UnBase" }
%"class.std::__detail::_UnBase" = type { %"struct.std::__detail::_BinClos" }
%"struct.std::__detail::_BinClos" = type { %"class.std::__detail::_BinBase2" }
%"class.std::__detail::_BinBase2" = type { %"struct.std::__detail::_UnClos.35", double }
%"struct.std::__detail::_UnClos.35" = type { %"class.std::__detail::_UnBase.36" }
%"class.std::__detail::_UnBase.36" = type { %"struct.std::__detail::_BinClos.37" }
%"struct.std::__detail::_BinClos.37" = type { %"class.std::__detail::_BinBase" }
%"class.std::__detail::_BinBase" = type { ptr, %"struct.std::__detail::_BinClos.38" }
%"struct.std::__detail::_BinClos.38" = type { %"class.std::__detail::_BinBase.39" }
%"class.std::__detail::_BinBase.39" = type { ptr, ptr }
%"class.std::_Expr.40" = type { %"struct.std::__detail::_BinClos" }
%"class.std::_Expr.41" = type { %"struct.std::__detail::_UnClos.35" }
%"class.std::_Expr.42" = type { %"struct.std::__detail::_BinClos.37" }
%"class.std::_Expr.43" = type { %"struct.std::__detail::_BinClos.38" }
%"class.fastjet::PseudoJet" = type { ptr, %"class.fastjet::SharedPtr.6", %"class.fastjet::SharedPtr.25", double, double, double, double, double, double, double, i32, i32 }
%"class.fastjet::SharedPtr.6" = type { ptr }
%"class.fastjet::SharedPtr.25" = type { ptr }
%"class.fastjet::ClusterSequenceActiveArea" = type { %"class.fastjet::ClusterSequenceAreaBase.base", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray.13", double, double, double, double, double, i8, i32, %"class.std::vector.14", %"class.std::vector.14" }
%"class.fastjet::ClusterSequenceAreaBase.base" = type { %"class.fastjet::ClusterSequence.base" }
%"class.fastjet::ClusterSequence.base" = 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 }>
%"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.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 }
%"class.std::valarray" = type { i64, ptr }
%"class.std::valarray.13" = type { i64, ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<fastjet::ClusterSequenceActiveArea::GhostJet, std::allocator<fastjet::ClusterSequenceActiveArea::GhostJet>>::_Vector_impl" }
%"struct.std::_Vector_base<fastjet::ClusterSequenceActiveArea::GhostJet, std::allocator<fastjet::ClusterSequenceActiveArea::GhostJet>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastjet::ClusterSequenceActiveArea::GhostJet, std::allocator<fastjet::ClusterSequenceActiveArea::GhostJet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastjet::ClusterSequenceActiveArea::GhostJet, std::allocator<fastjet::ClusterSequenceActiveArea::GhostJet>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet25ClusterSequenceActiveArea15_postprocess_AAERKNS_15GhostedAreaSpecE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(144) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca %"class.std::_Expr", align 8
  %9 = alloca %"class.std::_Expr.40", align 8
  %10 = alloca %"class.std::_Expr.41", align 8
  %11 = alloca %"class.std::_Expr.42", align 8
  %12 = alloca %"class.std::_Expr.43", align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.fastjet::PseudoJet", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %19)
  %21 = sitofp i32 %20 to double
  store double %21, ptr %5, align 8, !tbaa !9
  %22 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 1
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEdVERKd(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
  %26 = sitofp i32 %25 to double
  store double %26, ptr %6, align 8, !tbaa !9
  %27 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 2
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEdVERKd(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %29)
  %31 = icmp sgt i32 %30, 1
  br i1 %31, label %32, label %49

32:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %33)
  %35 = sub nsw i32 %34, 1
  %36 = sitofp i32 %35 to double
  store double %36, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  %37 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %38 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 1
  %39 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 1
  %40 = call { ptr, ptr } @_ZStmlIdESt5_ExprINSt8__detail8_BinClosISt12__multipliesSt9_ValArrayS4_T_S5_EENSt5__funIS3_S5_E11result_typeEERKSt8valarrayIS5_ESE_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %39)
  %41 = getelementptr inbounds %"class.std::_Expr.43", ptr %12, i32 0, i32 0
  %42 = getelementptr inbounds %"struct.std::__detail::_BinClos.38", ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds { ptr, ptr }, ptr %42, i32 0, i32 0
  %44 = extractvalue { ptr, ptr } %40, 0
  store ptr %44, ptr %43, align 8
  %45 = getelementptr inbounds { ptr, ptr }, ptr %42, i32 0, i32 1
  %46 = extractvalue { ptr, ptr } %40, 1
  store ptr %46, ptr %45, align 8
  call void @_ZStmiINSt8__detail8_BinClosISt12__multipliesSt9_ValArrayS3_ddEEESt5_ExprINS1_ISt7__minusS3_S5_NT_10value_typeES7_EENSt5__funIS6_S8_E11result_typeEERKSt8valarrayIS8_ERKS5_IS7_S8_E(ptr dead_on_unwind writable sret(%"class.std::_Expr.42") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @_ZSt3absINSt8__detail8_BinClosISt7__minusSt9_ValArraySt5_ExprdNS1_ISt12__multipliesS3_S3_ddEEEEES4_INS0_7_UnClosISt4_AbsS4_T_EENSA_10value_typeEERKS4_ISA_SC_E(ptr dead_on_unwind writable sret(%"class.std::_Expr.41") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @_ZStdvINSt8__detail7_UnClosISt4_AbsSt5_ExprNS0_8_BinClosISt7__minusSt9_ValArrayS3_dNS4_ISt12__multipliesS6_S6_ddEEEEEEES3_INS4_ISt9__dividesS3_St9_ConstantT_NSD_10value_typeEEENSt5__funISB_SE_E11result_typeEERKS3_ISD_SE_ERKSE_(ptr dead_on_unwind writable sret(%"class.std::_Expr.40") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @_ZSt4sqrtINSt8__detail8_BinClosISt9__dividesSt5_ExprSt9_ConstantNS0_7_UnClosISt4_AbsS3_NS1_ISt7__minusSt9_ValArrayS3_dNS1_ISt12__multipliesS8_S8_ddEEEEEEdEEES3_INS5_ISt5_SqrtS3_T_EENSF_10value_typeEERKS3_ISF_SH_E(ptr dead_on_unwind writable sret(%"class.std::_Expr") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %9)
  %47 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 2
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSINSt8__detail7_UnClosISt5_SqrtSt5_ExprNS2_8_BinClosISt9__dividesS5_St9_ConstantNS3_ISt4_AbsS5_NS6_ISt7__minusSt9_ValArrayS5_dNS6_ISt12__multipliesSB_SB_ddEEEEEEdEEEEEERS0_RKS5_IT_dE(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(32) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %52

49:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  %50 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 2
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSERKd(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %52

52:                                               ; preds = %49, %32
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %53)
  %55 = sitofp i32 %54 to double
  %56 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 4
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = fdiv double %57, %55
  store double %58, ptr %56, align 8, !tbaa !11
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %59)
  %61 = sitofp i32 %60 to double
  %62 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 5
  %63 = load double, ptr %62, align 8, !tbaa !46
  %64 = fdiv double %63, %61
  store double %64, ptr %62, align 8, !tbaa !46
  %65 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 5
  %66 = load double, ptr %65, align 8, !tbaa !46
  %67 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 4
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 4
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = fneg double %68
  %72 = call double @llvm.fmuladd.f64(double %71, double %70, double %66)
  %73 = call noundef double @_ZSt3absd(double noundef %72)
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %74)
  %76 = sitofp i32 %75 to double
  %77 = fdiv double %73, %76
  %78 = call double @sqrt(double noundef %77) #8
  %79 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 5
  store double %78, ptr %79, align 8, !tbaa !46
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %80)
  %82 = sitofp i32 %81 to double
  %83 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 6
  %84 = load double, ptr %83, align 8, !tbaa !47
  %85 = fdiv double %84, %82
  store double %85, ptr %83, align 8, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !48
  br label %86

86:                                               ; preds = %108, %52
  %87 = load i32, ptr %14, align 4, !tbaa !48
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 3
  %90 = call noundef i64 @_ZNKSt8valarrayIN7fastjet9PseudoJetEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %89)
  %91 = icmp ult i64 %88, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %115

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 88, ptr %15) #8
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %94)
  %96 = sitofp i32 %95 to double
  %97 = fdiv double 1.000000e+00, %96
  %98 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 3
  %99 = load i32, ptr %14, align 4, !tbaa !48
  %100 = zext i32 %99 to i64
  %101 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt8valarrayIN7fastjet9PseudoJetEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %98, i64 noundef %100) #8
  call void @_ZN7fastjetmlEdRKNS_9PseudoJetE(ptr dead_on_unwind writable sret(%"class.fastjet::PseudoJet") align 8 %15, double noundef %97, ptr noundef nonnull align 8 dereferenceable(88) %101)
  %102 = getelementptr inbounds %"class.fastjet::ClusterSequenceActiveArea", ptr %18, i32 0, i32 3
  %103 = load i32, ptr %14, align 4, !tbaa !48
  %104 = zext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt8valarrayIN7fastjet9PseudoJetEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %102, i64 noundef %104) #8
  %106 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %105, ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %107 unwind label %111

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

108:                                              ; preds = %107
  %109 = load i32, ptr %14, align 4, !tbaa !48
  %110 = add i32 %109, 1
  store i32 %110, ptr %14, align 4, !tbaa !48
  br label %86, !llvm.loop !49

111:                                              ; preds = %93
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %16, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %17, align 4
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %15) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %116

115:                                              ; preds = %92
  ret void

116:                                              ; preds = %111
  %117 = load ptr, ptr %16, align 8
  %118 = load i32, ptr %17, align 4
  %119 = insertvalue { ptr, i32 } poison, ptr %117, 0
  %120 = insertvalue { ptr, i32 } %119, i32 %118, 1
  resume { ptr, i32 } %120
}

; 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sqrtINSt8__detail8_BinClosISt9__dividesSt5_ExprSt9_ConstantNS0_7_UnClosISt4_AbsS3_NS1_ISt7__minusSt9_ValArrayS3_dNS1_ISt12__multipliesS8_S8_ddEEEEEEdEEES3_INS5_ISt5_SqrtS3_T_EENSF_10value_typeEERKS3_ISF_SH_E(ptr dead_on_unwind noalias writable sret(%"class.std::_Expr") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStdvINSt8__detail7_UnClosISt4_AbsSt5_ExprNS0_8_BinClosISt7__minusSt9_ValArrayS3_dNS4_ISt12__multipliesS6_S6_ddEEEEEEES3_INS4_ISt9__dividesS3_St9_ConstantT_NSD_10value_typeEEENSt5__funISB_SE_E11result_typeEERKS3_ISD_SE_ERKSE_(ptr dead_on_unwind noalias writable sret(%"class.std::_Expr.40") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt3absINSt8__detail8_BinClosISt7__minusSt9_ValArraySt5_ExprdNS1_ISt12__multipliesS3_S3_ddEEEEES4_INS0_7_UnClosISt4_AbsS4_T_EENSA_10value_typeEERKS4_ISA_SC_E(ptr dead_on_unwind noalias writable sret(%"class.std::_Expr.41") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStmiINSt8__detail8_BinClosISt12__multipliesSt9_ValArrayS3_ddEEESt5_ExprINS1_ISt7__minusS3_S5_NT_10value_typeES7_EENSt5__funIS6_S8_E11result_typeEERKSt8valarrayIS8_ERKS5_IS7_S8_E(ptr dead_on_unwind noalias writable sret(%"class.std::_Expr.42") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZStmlIdESt5_ExprINSt8__detail8_BinClosISt12__multipliesSt9_ValArrayS4_T_S5_EENSt5__funIS3_S5_E11result_typeEERKSt8valarrayIS5_ESE_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSINSt8__detail7_UnClosISt5_SqrtSt5_ExprNS2_8_BinClosISt9__dividesS5_St9_ConstantNS3_ISt4_AbsS5_NS6_ISt7__minusSt9_ValArrayS5_dNS6_ISt12__multipliesSB_SB_ddEEEEEEdEEEEEERS0_RKS5_IT_dE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt8valarrayIN7fastjet9PseudoJetEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { "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 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 #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 = !{!"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, !10, i64 328}
!12 = !{!"_ZTSN7fastjet25ClusterSequenceActiveAreaE", !13, i64 0, !39, i64 280, !39, i64 296, !41, i64 312, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !31, i64 368, !32, i64 372, !42, i64 376, !42, i64 400}
!13 = !{!"_ZTSN7fastjet23ClusterSequenceAreaBaseE", !14, i64 0}
!14 = !{!"_ZTSN7fastjet15ClusterSequenceE", !15, i64 8, !23, i64 88, !27, i64 112, !31, i64 136, !32, i64 140, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !17, i64 176, !16, i64 180, !33, i64 184, !32, i64 192, !31, i64 196, !31, i64 197, !34, i64 200, !35, i64 208, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !32, i64 264, !32, i64 268, !32, i64 272}
!15 = !{!"_ZTSN7fastjet13JetDefinitionE", !16, i64 0, !10, i64 8, !10, i64 16, !17, i64 24, !6, i64 32, !18, i64 40, !19, i64 48, !6, i64 64, !22, i64 72}
!16 = !{!"_ZTSN7fastjet12JetAlgorithmE", !7, i64 0}
!17 = !{!"_ZTSN7fastjet8StrategyE", !7, i64 0}
!18 = !{!"_ZTSN7fastjet9SharedPtrIKNS_13JetDefinition6PluginEEE", !6, i64 0}
!19 = !{!"_ZTSN7fastjet13JetDefinition17DefaultRecombinerE", !20, i64 0, !21, i64 8}
!20 = !{!"_ZTSN7fastjet13JetDefinition10RecombinerE"}
!21 = !{!"_ZTSN7fastjet19RecombinationSchemeE", !7, i64 0}
!22 = !{!"_ZTSN7fastjet9SharedPtrIKNS_13JetDefinition10RecombinerEEE", !6, i64 0}
!23 = !{!"_ZTSSt6vectorIN7fastjet9PseudoJetESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"int", !7, i64 0}
!33 = !{!"_ZTSN7fastjet9SharedPtrINS_22PseudoJetStructureBaseEEE", !6, i64 0}
!34 = !{!"_ZTSN7fastjet9SharedPtrINS_15ClusterSequence6ExtrasEEE", !6, i64 0}
!35 = !{!"_ZTSSt6vectorIN7fastjet15ClusterSequence4TileESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSSt8valarrayIdE", !40, i64 0, !6, i64 8}
!40 = !{!"long", !7, i64 0}
!41 = !{!"_ZTSSt8valarrayIN7fastjet9PseudoJetEE", !40, i64 0, !6, i64 8}
!42 = !{!"_ZTSSt6vectorIN7fastjet25ClusterSequenceActiveArea8GhostJetESaIS2_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIN7fastjet25ClusterSequenceActiveArea8GhostJetESaIS2_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIN7fastjet25ClusterSequenceActiveArea8GhostJetESaIS2_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN7fastjet25ClusterSequenceActiveArea8GhostJetESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!12, !10, i64 336}
!47 = !{!12, !10, i64 344}
!48 = !{!32, !32, i64 0}
!49 = distinct !{!49, !50}
!50 = !{!"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"

%"class.std::_Expr" = type { %"struct.std::__detail::_UnClos" }
%"struct.std::__detail::_UnClos" = type { %"class.std::__detail::_UnBase" }
%"class.std::__detail::_UnBase" = type { %"struct.std::__detail::_BinClos" }
%"struct.std::__detail::_BinClos" = type { %"class.std::__detail::_BinBase2" }
%"class.std::__detail::_BinBase2" = type { %"struct.std::__detail::_UnClos.35", double }
%"struct.std::__detail::_UnClos.35" = type { %"class.std::__detail::_UnBase.36" }
%"class.std::__detail::_UnBase.36" = type { %"struct.std::__detail::_BinClos.37" }
%"struct.std::__detail::_BinClos.37" = type { %"class.std::__detail::_BinBase" }
%"class.std::__detail::_BinBase" = type { ptr, %"struct.std::__detail::_BinClos.38" }
%"struct.std::__detail::_BinClos.38" = type { %"class.std::__detail::_BinBase.39" }
%"class.std::__detail::_BinBase.39" = type { ptr, ptr }
%"class.std::_Expr.40" = type { %"struct.std::__detail::_BinClos" }
%"class.std::_Expr.41" = type { %"struct.std::__detail::_UnClos.35" }
%"class.std::_Expr.42" = type { %"struct.std::__detail::_BinClos.37" }
%"class.std::_Expr.43" = type { %"struct.std::__detail::_BinClos.38" }
%"class.fastjet::PseudoJet" = type { ptr, %"class.fastjet::SharedPtr.6", %"class.fastjet::SharedPtr.25", double, double, double, double, double, double, double, i32, i32 }
%"class.fastjet::SharedPtr.6" = type { ptr }
%"class.fastjet::SharedPtr.25" = type { ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7fastjet25ClusterSequenceActiveArea15_postprocess_AAERKNS_15GhostedAreaSpecE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(144) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca %"class.std::_Expr", align 8
  %7 = alloca %"class.std::_Expr.40", align 8
  %8 = alloca %"class.std::_Expr.41", align 8
  %9 = alloca %"class.std::_Expr.42", align 8
  %10 = alloca %"class.std::_Expr.43", align 8
  %11 = alloca double, align 8
  %12 = alloca %"class.fastjet::PseudoJet", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %13 = tail call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %14 = sitofp i32 %13 to double
  store double %14, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 280
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEdVERKd(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %17 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %18 = sitofp i32 %17 to double
  store double %18, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 296
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEdVERKd(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %21 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %22 = icmp sgt i32 %21, 1
  br i1 %22, label %23, label %32

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %24 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %25 = add nsw i32 %24, -1
  %26 = sitofp i32 %25 to double
  store double %26, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %27 = call { ptr, ptr } @_ZStmlIdESt5_ExprINSt8__detail8_BinClosISt12__multipliesSt9_ValArrayS4_T_S5_EENSt5__funIS3_S5_E11result_typeEERKSt8valarrayIS5_ESE_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %28 = extractvalue { ptr, ptr } %27, 0
  store ptr %28, ptr %10, align 8
  %29 = getelementptr inbounds i8, ptr %10, i64 8
  %30 = extractvalue { ptr, ptr } %27, 1
  store ptr %30, ptr %29, align 8
  call void @_ZStmiINSt8__detail8_BinClosISt12__multipliesSt9_ValArrayS3_ddEEESt5_ExprINS1_ISt7__minusS3_S5_NT_10value_typeES7_EENSt5__funIS6_S8_E11result_typeEERKSt8valarrayIS8_ERKS5_IS7_S8_E(ptr dead_on_unwind nonnull writable sret(%"class.std::_Expr.42") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @_ZSt3absINSt8__detail8_BinClosISt7__minusSt9_ValArraySt5_ExprdNS1_ISt12__multipliesS3_S3_ddEEEEES4_INS0_7_UnClosISt4_AbsS4_T_EENSA_10value_typeEERKS4_ISA_SC_E(ptr dead_on_unwind nonnull writable sret(%"class.std::_Expr.41") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @_ZStdvINSt8__detail7_UnClosISt4_AbsSt5_ExprNS0_8_BinClosISt7__minusSt9_ValArrayS3_dNS4_ISt12__multipliesS6_S6_ddEEEEEEES3_INS4_ISt9__dividesS3_St9_ConstantT_NSD_10value_typeEEENSt5__funISB_SE_E11result_typeEERKS3_ISD_SE_ERKSE_(ptr dead_on_unwind nonnull writable sret(%"class.std::_Expr.40") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZSt4sqrtINSt8__detail8_BinClosISt9__dividesSt5_ExprSt9_ConstantNS0_7_UnClosISt4_AbsS3_NS1_ISt7__minusSt9_ValArrayS3_dNS1_ISt12__multipliesS8_S8_ddEEEEEEdEEES3_INS5_ISt5_SqrtS3_T_EENSF_10value_typeEERKS3_ISF_SH_E(ptr dead_on_unwind nonnull writable sret(%"class.std::_Expr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSINSt8__detail7_UnClosISt5_SqrtSt5_ExprNS2_8_BinClosISt9__dividesS5_St9_ConstantNS3_ISt4_AbsS5_NS6_ISt7__minusSt9_ValArrayS5_dNS6_ISt12__multipliesSB_SB_ddEEEEEEdEEEEEERS0_RKS5_IT_dE(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(32) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %34

32:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  store double 0.000000e+00, ptr %11, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSERKd(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %34

34:                                               ; preds = %32, %23
  %35 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %36 = sitofp i32 %35 to double
  %37 = getelementptr inbounds i8, ptr %0, i64 328
  %38 = load double, ptr %37, align 8, !tbaa !9
  %39 = fdiv double %38, %36
  store double %39, ptr %37, align 8, !tbaa !9
  %40 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %41 = sitofp i32 %40 to double
  %42 = getelementptr inbounds i8, ptr %0, i64 336
  %43 = load double, ptr %42, align 8, !tbaa !45
  %44 = fdiv double %43, %41
  store double %44, ptr %42, align 8, !tbaa !45
  %45 = load double, ptr %37, align 8, !tbaa !9
  %46 = fneg double %45
  %47 = call double @llvm.fmuladd.f64(double %46, double %45, double %44)
  %48 = call noundef double @_ZSt3absd(double noundef %47)
  %49 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %50 = sitofp i32 %49 to double
  %51 = fdiv double %48, %50
  %52 = call double @sqrt(double noundef %51) #8
  store double %52, ptr %42, align 8, !tbaa !45
  %53 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %54 = sitofp i32 %53 to double
  %55 = getelementptr inbounds i8, ptr %0, i64 344
  %56 = load double, ptr %55, align 8, !tbaa !46
  %57 = fdiv double %56, %54
  store double %57, ptr %55, align 8, !tbaa !46
  %58 = getelementptr inbounds i8, ptr %0, i64 312
  %59 = call noundef i64 @_ZNKSt8valarrayIN7fastjet9PseudoJetEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %58)
  %.not = icmp eq i64 %59, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %67, %34
  ret void

.lr.ph:                                           ; preds = %34, %67
  %60 = phi i64 [ %69, %67 ], [ 0, %34 ]
  %.016 = phi i32 [ %68, %67 ], [ 0, %34 ]
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %12) #8
  %61 = call noundef i32 @_ZNK7fastjet15GhostedAreaSpec6repeatEv(ptr noundef nonnull align 8 dereferenceable(144) %1)
  %62 = sitofp i32 %61 to double
  %63 = fdiv double 1.000000e+00, %62
  %64 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt8valarrayIN7fastjet9PseudoJetEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %58, i64 noundef %60) #8
  call void @_ZN7fastjetmlEdRKNS_9PseudoJetE(ptr dead_on_unwind nonnull writable sret(%"class.fastjet::PseudoJet") align 8 %12, double noundef %63, ptr noundef nonnull align 8 dereferenceable(88) %64)
  %65 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNSt8valarrayIN7fastjet9PseudoJetEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %58, i64 noundef %60) #8
  %66 = invoke noundef nonnull align 8 dereferenceable(88) ptr @_ZN7fastjet9PseudoJetaSERKS0_(ptr noundef nonnull align 8 dereferenceable(88) %65, ptr noundef nonnull align 8 dereferenceable(88) %12)
          to label %67 unwind label %72

67:                                               ; preds = %.lr.ph
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %12) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %12) #8
  %68 = add i32 %.016, 1
  %69 = zext i32 %68 to i64
  %70 = call noundef i64 @_ZNKSt8valarrayIN7fastjet9PseudoJetEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %58)
  %71 = icmp ugt i64 %70, %69
  br i1 %71, label %.lr.ph, label %._crit_edge, !llvm.loop !47

72:                                               ; preds = %.lr.ph
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7fastjet9PseudoJetD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %12) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %12) #8
  resume { ptr, i32 } %73
}

; 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sqrtINSt8__detail8_BinClosISt9__dividesSt5_ExprSt9_ConstantNS0_7_UnClosISt4_AbsS3_NS1_ISt7__minusSt9_ValArrayS3_dNS1_ISt12__multipliesS8_S8_ddEEEEEEdEEES3_INS5_ISt5_SqrtS3_T_EENSF_10value_typeEERKS3_ISF_SH_E(ptr dead_on_unwind noalias writable sret(%"class.std::_Expr") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStdvINSt8__detail7_UnClosISt4_AbsSt5_ExprNS0_8_BinClosISt7__minusSt9_ValArrayS3_dNS4_ISt12__multipliesS6_S6_ddEEEEEEES3_INS4_ISt9__dividesS3_St9_ConstantT_NSD_10value_typeEEENSt5__funISB_SE_E11result_typeEERKS3_ISD_SE_ERKSE_(ptr dead_on_unwind noalias writable sret(%"class.std::_Expr.40") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt3absINSt8__detail8_BinClosISt7__minusSt9_ValArraySt5_ExprdNS1_ISt12__multipliesS3_S3_ddEEEEES4_INS0_7_UnClosISt4_AbsS4_T_EENSA_10value_typeEERKS4_ISA_SC_E(ptr dead_on_unwind noalias writable sret(%"class.std::_Expr.41") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStmiINSt8__detail8_BinClosISt12__multipliesSt9_ValArrayS3_ddEEESt5_ExprINS1_ISt7__minusS3_S5_NT_10value_typeES7_EENSt5__funIS6_S8_E11result_typeEERKSt8valarrayIS8_ERKS5_IS7_S8_E(ptr dead_on_unwind noalias writable sret(%"class.std::_Expr.42") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZStmlIdESt5_ExprINSt8__detail8_BinClosISt12__multipliesSt9_ValArrayS4_T_S5_EENSt5__funIS3_S5_E11result_typeEERKSt8valarrayIS5_ESE_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSINSt8__detail7_UnClosISt5_SqrtSt5_ExprNS2_8_BinClosISt9__dividesS5_St9_ConstantNS3_ISt4_AbsS5_NS6_ISt7__minusSt9_ValArrayS5_dNS6_ISt12__multipliesSB_SB_ddEEEEEEdEEEEEERS0_RKS5_IT_dE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { "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 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 328}
!10 = !{!"_ZTSN7fastjet25ClusterSequenceActiveAreaE", !11, i64 0, !38, i64 280, !38, i64 296, !40, i64 312, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !30, i64 368, !31, i64 372, !41, i64 376, !41, i64 400}
!11 = !{!"_ZTSN7fastjet23ClusterSequenceAreaBaseE", !12, i64 0}
!12 = !{!"_ZTSN7fastjet15ClusterSequenceE", !13, i64 8, !22, i64 88, !26, i64 112, !30, i64 136, !31, i64 140, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !15, i64 176, !14, i64 180, !32, i64 184, !31, i64 192, !30, i64 196, !30, i64 197, !33, i64 200, !34, i64 208, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !31, i64 264, !31, i64 268, !31, i64 272}
!13 = !{!"_ZTSN7fastjet13JetDefinitionE", !14, i64 0, !6, i64 8, !6, i64 16, !15, i64 24, !16, i64 32, !17, i64 40, !18, i64 48, !16, i64 64, !21, i64 72}
!14 = !{!"_ZTSN7fastjet12JetAlgorithmE", !7, i64 0}
!15 = !{!"_ZTSN7fastjet8StrategyE", !7, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSN7fastjet9SharedPtrIKNS_13JetDefinition6PluginEEE", !16, i64 0}
!18 = !{!"_ZTSN7fastjet13JetDefinition17DefaultRecombinerE", !19, i64 0, !20, i64 8}
!19 = !{!"_ZTSN7fastjet13JetDefinition10RecombinerE"}
!20 = !{!"_ZTSN7fastjet19RecombinationSchemeE", !7, i64 0}
!21 = !{!"_ZTSN7fastjet9SharedPtrIKNS_13JetDefinition10RecombinerEEE", !16, i64 0}
!22 = !{!"_ZTSSt6vectorIN7fastjet9PseudoJetESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN7fastjet9PseudoJetESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!26 = !{!"_ZTSSt6vectorIN7fastjet15ClusterSequence15history_elementESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence15history_elementESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"int", !7, i64 0}
!32 = !{!"_ZTSN7fastjet9SharedPtrINS_22PseudoJetStructureBaseEEE", !16, i64 0}
!33 = !{!"_ZTSN7fastjet9SharedPtrINS_15ClusterSequence6ExtrasEEE", !16, i64 0}
!34 = !{!"_ZTSSt6vectorIN7fastjet15ClusterSequence4TileESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN7fastjet15ClusterSequence4TileESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!38 = !{!"_ZTSSt8valarrayIdE", !39, i64 0, !16, i64 8}
!39 = !{!"long", !7, i64 0}
!40 = !{!"_ZTSSt8valarrayIN7fastjet9PseudoJetEE", !39, i64 0, !16, i64 8}
!41 = !{!"_ZTSSt6vectorIN7fastjet25ClusterSequenceActiveArea8GhostJetESaIS2_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIN7fastjet25ClusterSequenceActiveArea8GhostJetESaIS2_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIN7fastjet25ClusterSequenceActiveArea8GhostJetESaIS2_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIN7fastjet25ClusterSequenceActiveArea8GhostJetESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!45 = !{!10, !6, i64 336}
!46 = !{!10, !6, i64 344}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}


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