; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/ExternalTools (DetectorModel)

; 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.DetectorModel::SimpleJet" = type <{ double, double, double, double, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"class.DetectorModel::RadialProfile" = type { ptr, %"class.std::vector.0", ptr, i64, i64, double, double, double, double, double, double }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<DetectorModel::SimpleJet, std::allocator<DetectorModel::SimpleJet>>::_Vector_impl" }
%"struct.std::_Vector_base<DetectorModel::SimpleJet, std::allocator<DetectorModel::SimpleJet>>::_Vector_impl" = type { %"struct.std::_Vector_base<DetectorModel::SimpleJet, std::allocator<DetectorModel::SimpleJet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DetectorModel::SimpleJet, std::allocator<DetectorModel::SimpleJet>>::_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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13DetectorModel9SimpleJetC2Eddd(ptr noundef nonnull align 8 dereferenceable(36), double noundef, double noundef, double noundef) unnamed_addr #1 align 2

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

; Function Attrs: nounwind
declare double @log(double noundef) #3

; Function Attrs: nounwind
declare double @atan(double noundef) #3

; Function Attrs: nounwind
declare double @tan(double noundef) #3

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

; Function Attrs: nounwind
declare double @acos(double noundef) #3

; Function Attrs: nounwind
declare double @tanh(double noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN13DetectorModel13RadialProfile10distributeEdddRKNS_10SpacePointES3_(ptr noundef nonnull align 8 dereferenceable(104) %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %5) unnamed_addr #2 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i8, align 1
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.DetectorModel::SimpleJet", align 8
  %27 = alloca double, align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = getelementptr inbounds ptr, ptr %31, i64 6
  %33 = load ptr, ptr %32, align 8
  call void %33(ptr noundef nonnull align 8 dereferenceable(104) %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = getelementptr inbounds ptr, ptr %35, i64 6
  %37 = load ptr, ptr %36, align 8
  %38 = call noundef double %37(ptr noundef nonnull align 8 dereferenceable(40) %34)
  store double %38, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %39 = load double, ptr %9, align 8, !tbaa !9
  %40 = call double @tanh(double noundef %39) #6
  %41 = call double @acos(double noundef %40) #6
  store double %41, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %42 = load double, ptr %10, align 8, !tbaa !9
  %43 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 10
  %44 = load double, ptr %43, align 8, !tbaa !13
  %45 = fsub double %42, %44
  store double %45, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %46 = load double, ptr %10, align 8, !tbaa !9
  %47 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 8
  %48 = load double, ptr %47, align 8, !tbaa !20
  %49 = fadd double %46, %48
  store double %49, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %50 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 7
  %51 = load double, ptr %50, align 8, !tbaa !21
  store double %51, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store double 0.000000e+00, ptr %18, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %132, %6
  %53 = load double, ptr %17, align 8, !tbaa !9
  %54 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 5
  %55 = load double, ptr %54, align 8, !tbaa !22
  %56 = fcmp olt double %53, %55
  br i1 %56, label %57, label %137

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %58 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !23
  %60 = load double, ptr %17, align 8, !tbaa !9
  %61 = call noundef double @_ZSt3absd(double noundef %60)
  %62 = load double, ptr %8, align 8, !tbaa !9
  %63 = load ptr, ptr %59, align 8, !tbaa !11
  %64 = getelementptr inbounds ptr, ptr %63, i64 2
  %65 = load ptr, ptr %64, align 8
  %66 = call noundef double %65(ptr noundef nonnull align 8 dereferenceable(16) %59, double noundef %61, double noundef %62)
  %67 = load double, ptr %8, align 8, !tbaa !9
  %68 = fmul double %66, %67
  store double %68, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %69 = load double, ptr %17, align 8, !tbaa !9
  %70 = call double @llvm.fabs.f64(double %69)
  %71 = load double, ptr %13, align 8, !tbaa !9
  %72 = fdiv double %70, %71
  %73 = call double @atan(double noundef %72) #6
  store double %73, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %74 = load double, ptr %17, align 8, !tbaa !9
  %75 = fcmp olt double %74, 0.000000e+00
  br i1 %75, label %76, label %80

76:                                               ; preds = %57
  %77 = load double, ptr %14, align 8, !tbaa !9
  %78 = load double, ptr %20, align 8, !tbaa !9
  %79 = fsub double %77, %78
  br label %84

80:                                               ; preds = %57
  %81 = load double, ptr %14, align 8, !tbaa !9
  %82 = load double, ptr %20, align 8, !tbaa !9
  %83 = fadd double %81, %82
  br label %84

84:                                               ; preds = %80, %76
  %85 = phi double [ %79, %76 ], [ %83, %80 ]
  store double %85, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  store i8 0, ptr %22, align 1, !tbaa !24
  %86 = load double, ptr %21, align 8, !tbaa !9
  %87 = fcmp olt double %86, 0.000000e+00
  br i1 %87, label %88, label %91

88:                                               ; preds = %84
  %89 = load double, ptr %21, align 8, !tbaa !9
  %90 = fmul double %89, -1.000000e+00
  store double %90, ptr %21, align 8, !tbaa !9
  store i8 1, ptr %22, align 1, !tbaa !24
  br label %98

91:                                               ; preds = %84
  %92 = load double, ptr %21, align 8, !tbaa !9
  %93 = fcmp ogt double %92, 0x400921FB54442D18
  br i1 %93, label %94, label %97

94:                                               ; preds = %91
  %95 = load double, ptr %21, align 8, !tbaa !9
  %96 = fsub double 0x401921FB54442D18, %95
  store double %96, ptr %21, align 8, !tbaa !9
  store i8 1, ptr %22, align 1, !tbaa !24
  br label %97

97:                                               ; preds = %94, %91
  br label %98

98:                                               ; preds = %97, %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %99 = load double, ptr %21, align 8, !tbaa !9
  %100 = fmul double 5.000000e-01, %99
  %101 = call double @tan(double noundef %100) #6
  %102 = call double @log(double noundef %101) #6
  %103 = fmul double -1.000000e+00, %102
  store double %103, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %104 = load double, ptr %15, align 8, !tbaa !9
  store double %104, ptr %24, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %126, %98
  %106 = load double, ptr %24, align 8, !tbaa !9
  %107 = load double, ptr %16, align 8, !tbaa !9
  %108 = fcmp olt double %106, %107
  br i1 %108, label %109, label %131

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %110 = load i8, ptr %22, align 1, !tbaa !24, !range !26, !noundef !27
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %115

112:                                              ; preds = %109
  %113 = load double, ptr %24, align 8, !tbaa !9
  %114 = fadd double %113, 0x400921FB54442D18
  br label %117

115:                                              ; preds = %109
  %116 = load double, ptr %24, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %115, %112
  %118 = phi double [ %114, %112 ], [ %116, %115 ]
  store double %118, ptr %25, align 8, !tbaa !9
  %119 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #6
  %120 = load double, ptr %19, align 8, !tbaa !9
  %121 = load double, ptr %23, align 8, !tbaa !9
  %122 = load double, ptr %25, align 8, !tbaa !9
  call void @_ZN13DetectorModel9SimpleJetC2Eddd(ptr noundef nonnull align 8 dereferenceable(36) %26, double noundef %120, double noundef %121, double noundef %122)
  call void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 8 dereferenceable(36) %26)
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #6
  %123 = load double, ptr %19, align 8, !tbaa !9
  %124 = load double, ptr %18, align 8, !tbaa !9
  %125 = fadd double %124, %123
  store double %125, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %126

126:                                              ; preds = %117
  %127 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 9
  %128 = load double, ptr %127, align 8, !tbaa !28
  %129 = load double, ptr %24, align 8, !tbaa !9
  %130 = fadd double %129, %128
  store double %130, ptr %24, align 8, !tbaa !9
  br label %105, !llvm.loop !29

131:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %132

132:                                              ; preds = %131
  %133 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 6
  %134 = load double, ptr %133, align 8, !tbaa !31
  %135 = load double, ptr %17, align 8, !tbaa !9
  %136 = fadd double %135, %134
  store double %136, ptr %17, align 8, !tbaa !9
  br label %52, !llvm.loop !32

137:                                              ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %138 = load double, ptr %8, align 8, !tbaa !9
  %139 = load double, ptr %18, align 8, !tbaa !9
  %140 = fdiv double %138, %139
  store double %140, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %141 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 1
  %142 = call ptr @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %141) #6
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %28, i32 0, i32 0
  store ptr %142, ptr %143, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %144 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 1
  %145 = call ptr @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #6
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %29, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  br label %147

147:                                              ; preds = %152, %137
  %148 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN13DetectorModel9SimpleJetESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br i1 %148, label %149, label %154

149:                                              ; preds = %147
  %150 = load double, ptr %27, align 8, !tbaa !9
  %151 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN13DetectorModel9SimpleJetESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  call void @_ZN13DetectorModel9SimpleJetmLEd(ptr noundef nonnull align 8 dereferenceable(36) %151, double noundef %150)
  br label %152

152:                                              ; preds = %149
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN13DetectorModel9SimpleJetESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  br label %147, !llvm.loop !33

154:                                              ; preds = %147
  %155 = getelementptr inbounds %"class.DetectorModel::RadialProfile", ptr %30, i32 0, i32 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  ret ptr %155
}

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 96}
!14 = !{!"_ZTSN13DetectorModel13RadialProfileE", !15, i64 8, !6, i64 32, !19, i64 40, !19, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96}
!15 = !{!"_ZTSSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN13DetectorModel9SimpleJetESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN13DetectorModel9SimpleJetESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN13DetectorModel9SimpleJetESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"long", !7, i64 0}
!20 = !{!14, !10, i64 80}
!21 = !{!14, !10, i64 72}
!22 = !{!14, !10, i64 56}
!23 = !{!14, !6, i64 32}
!24 = !{!25, !25, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!14, !10, i64 88}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!14, !10, i64 64}
!32 = distinct !{!32, !30}
!33 = distinct !{!33, !30}


; 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.DetectorModel::SimpleJet" = type <{ double, double, double, double, i32, [4 x i8] }>
%"class.__gnu_cxx::__normal_iterator.5" = 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13DetectorModel9SimpleJetC2Eddd(ptr noundef nonnull align 8 dereferenceable(36), double noundef, double noundef, double noundef) unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN13DetectorModel13RadialProfile10distributeEdddRKNS_10SpacePointES3_(ptr noundef nonnull align 8 dereferenceable(104) %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(40) %4, ptr nocapture noundef nonnull readnone align 8 dereferenceable(40) %5) unnamed_addr #2 align 2 {
  %7 = alloca %"class.DetectorModel::SimpleJet", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 48
  %12 = load ptr, ptr %11, align 8
  tail call void %12(ptr noundef nonnull align 8 dereferenceable(104) %0)
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 48
  %15 = load ptr, ptr %14, align 8
  %16 = tail call noundef double %15(ptr noundef nonnull align 8 dereferenceable(40) %4)
  %17 = tail call double @tanh(double noundef %2) #6
  %18 = tail call double @acos(double noundef %17) #6
  %19 = getelementptr inbounds i8, ptr %0, i64 96
  %20 = load double, ptr %19, align 8, !tbaa !8
  %21 = fsub double %3, %20
  %22 = getelementptr inbounds i8, ptr %0, i64 80
  %23 = load double, ptr %22, align 8, !tbaa !18
  %24 = fadd double %23, %3
  %25 = getelementptr inbounds i8, ptr %0, i64 72
  %26 = load double, ptr %25, align 8, !tbaa !19
  %27 = getelementptr inbounds i8, ptr %0, i64 56
  %28 = load double, ptr %27, align 8, !tbaa !20
  %29 = fcmp olt double %26, %28
  br i1 %29, label %.lr.ph47, label %._crit_edge48

.lr.ph47:                                         ; preds = %6
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  %31 = fcmp olt double %21, %24
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  %33 = getelementptr inbounds i8, ptr %0, i64 88
  %34 = getelementptr inbounds i8, ptr %0, i64 64
  %.fr = freeze i1 %31
  br i1 %.fr, label %.lr.ph47.split.us, label %.lr.ph47.split

.lr.ph47.split.us:                                ; preds = %.lr.ph47, %._crit_edge.us
  %.045.us = phi double [ %64, %._crit_edge.us ], [ %26, %.lr.ph47 ]
  %.03644.us = phi double [ %.us-phi.us, %._crit_edge.us ], [ 0.000000e+00, %.lr.ph47 ]
  %35 = load ptr, ptr %30, align 8, !tbaa !21
  %36 = call noundef double @_ZSt3absd(double noundef %.045.us)
  %37 = load ptr, ptr %35, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef double %39(ptr noundef nonnull align 8 dereferenceable(16) %35, double noundef %36, double noundef %1)
  %41 = fmul double %40, %1
  %42 = call double @llvm.fabs.f64(double %.045.us)
  %43 = fdiv double %42, %16
  %44 = call double @atan(double noundef %43) #6
  %45 = fcmp olt double %.045.us, 0.000000e+00
  %46 = fneg double %44
  %.p.us = select i1 %45, double %46, double %44
  %47 = fadd double %18, %.p.us
  %48 = fcmp olt double %47, 0.000000e+00
  br i1 %48, label %53, label %49

49:                                               ; preds = %.lr.ph47.split.us
  %50 = fcmp ogt double %47, 0x400921FB54442D18
  br i1 %50, label %51, label %.lr.ph.us

51:                                               ; preds = %49
  %52 = fsub double 0x401921FB54442D18, %47
  br label %.lr.ph.us

53:                                               ; preds = %.lr.ph47.split.us
  %54 = fneg double %47
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %53, %51, %49
  %.039.us = phi i1 [ true, %53 ], [ true, %51 ], [ false, %49 ]
  %.038.us = phi double [ %54, %53 ], [ %52, %51 ], [ %47, %49 ]
  %55 = fmul double %.038.us, 5.000000e-01
  %56 = call double @tan(double noundef %55) #6
  %57 = call double @log(double noundef %56) #6
  %58 = fneg double %57
  br i1 %.039.us, label %.lr.ph.split.us.us, label %.lr.ph.split.us54

.lr.ph.split.us54:                                ; preds = %.lr.ph.us, %.lr.ph.split.us54
  %.143.us50 = phi double [ %59, %.lr.ph.split.us54 ], [ %.03644.us, %.lr.ph.us ]
  %.03742.us51 = phi double [ %61, %.lr.ph.split.us54 ], [ %21, %.lr.ph.us ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
  call void @_ZN13DetectorModel9SimpleJetC2Eddd(ptr noundef nonnull align 8 dereferenceable(36) %7, double noundef %41, double noundef %58, double noundef %.03742.us51)
  call void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(36) %7)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  %59 = fadd double %41, %.143.us50
  %60 = load double, ptr %33, align 8, !tbaa !22
  %61 = fadd double %.03742.us51, %60
  %62 = fcmp olt double %61, %24
  br i1 %62, label %.lr.ph.split.us54, label %._crit_edge.us, !llvm.loop !23

._crit_edge.us:                                   ; preds = %.lr.ph.split.us54, %.lr.ph.split.us.us
  %.us-phi.us = phi double [ %68, %.lr.ph.split.us.us ], [ %59, %.lr.ph.split.us54 ]
  %63 = load double, ptr %34, align 8, !tbaa !25
  %64 = fadd double %.045.us, %63
  %65 = load double, ptr %27, align 8, !tbaa !20
  %66 = fcmp olt double %64, %65
  br i1 %66, label %.lr.ph47.split.us, label %._crit_edge48, !llvm.loop !26

.lr.ph.split.us.us:                               ; preds = %.lr.ph.us, %.lr.ph.split.us.us
  %.143.us.us = phi double [ %68, %.lr.ph.split.us.us ], [ %.03644.us, %.lr.ph.us ]
  %.03742.us.us = phi double [ %70, %.lr.ph.split.us.us ], [ %21, %.lr.ph.us ]
  %67 = fadd double %.03742.us.us, 0x400921FB54442D18
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
  call void @_ZN13DetectorModel9SimpleJetC2Eddd(ptr noundef nonnull align 8 dereferenceable(36) %7, double noundef %41, double noundef %58, double noundef %67)
  call void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(36) %7)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  %68 = fadd double %41, %.143.us.us
  %69 = load double, ptr %33, align 8, !tbaa !22
  %70 = fadd double %.03742.us.us, %69
  %71 = fcmp olt double %70, %24
  br i1 %71, label %.lr.ph.split.us.us, label %._crit_edge.us, !llvm.loop !23

.lr.ph47.split:                                   ; preds = %.lr.ph47, %91
  %.045 = phi double [ %96, %91 ], [ %26, %.lr.ph47 ]
  %72 = load ptr, ptr %30, align 8, !tbaa !21
  %73 = tail call noundef double @_ZSt3absd(double noundef %.045)
  %74 = load ptr, ptr %72, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %76 = load ptr, ptr %75, align 8
  %77 = tail call noundef double %76(ptr noundef nonnull align 8 dereferenceable(16) %72, double noundef %73, double noundef %1)
  %78 = tail call double @llvm.fabs.f64(double %.045)
  %79 = fdiv double %78, %16
  %80 = tail call double @atan(double noundef %79) #6
  %81 = fcmp olt double %.045, 0.000000e+00
  %82 = fneg double %80
  %.p = select i1 %81, double %82, double %80
  %83 = fadd double %18, %.p
  %84 = fcmp olt double %83, 0.000000e+00
  br i1 %84, label %85, label %87

85:                                               ; preds = %.lr.ph47.split
  %86 = fneg double %83
  br label %91

87:                                               ; preds = %.lr.ph47.split
  %88 = fcmp ogt double %83, 0x400921FB54442D18
  br i1 %88, label %89, label %91

89:                                               ; preds = %87
  %90 = fsub double 0x401921FB54442D18, %83
  br label %91

91:                                               ; preds = %87, %89, %85
  %.038 = phi double [ %86, %85 ], [ %90, %89 ], [ %83, %87 ]
  %92 = fmul double %.038, 5.000000e-01
  %93 = tail call double @tan(double noundef %92) #6
  %94 = tail call double @log(double noundef %93) #6
  %95 = load double, ptr %34, align 8, !tbaa !25
  %96 = fadd double %.045, %95
  %97 = load double, ptr %27, align 8, !tbaa !20
  %98 = fcmp olt double %96, %97
  br i1 %98, label %.lr.ph47.split, label %._crit_edge48, !llvm.loop !26

._crit_edge48:                                    ; preds = %91, %._crit_edge.us, %6
  %.036.lcssa = phi double [ 0.000000e+00, %6 ], [ %.us-phi.us, %._crit_edge.us ], [ 0.000000e+00, %91 ]
  %99 = fdiv double %1, %.036.lcssa
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %100 = getelementptr inbounds i8, ptr %0, i64 8
  %101 = call ptr @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #6
  store ptr %101, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %102 = call ptr @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #6
  store ptr %102, ptr %9, align 8
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN13DetectorModel9SimpleJetESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %103, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %._crit_edge48, %.lr.ph
  %104 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN13DetectorModel9SimpleJetESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @_ZN13DetectorModel9SimpleJetmLEd(ptr noundef nonnull align 8 dereferenceable(36) %104, double noundef %99)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN13DetectorModel9SimpleJetESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %106 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN13DetectorModel9SimpleJetESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %106, label %.lr.ph, label %._crit_edge, !llvm.loop !27

._crit_edge:                                      ; preds = %.lr.ph, %._crit_edge48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  ret ptr %100
}

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !17, i64 96}
!9 = !{!"_ZTSN13DetectorModel13RadialProfileE", !10, i64 8, !14, i64 32, !16, i64 40, !16, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96}
!10 = !{!"_ZTSSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIN13DetectorModel9SimpleJetESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIN13DetectorModel9SimpleJetESaIS1_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN13DetectorModel9SimpleJetESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !15, i64 0}
!15 = !{!"omnipotent char", !7, i64 0}
!16 = !{!"long", !15, i64 0}
!17 = !{!"double", !15, i64 0}
!18 = !{!9, !17, i64 80}
!19 = !{!9, !17, i64 72}
!20 = !{!9, !17, i64 56}
!21 = !{!9, !14, i64 32}
!22 = !{!9, !17, i64 88}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!9, !17, i64 64}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}


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