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

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::allocator.2" = type { i8 }
%"class.DetectorModel::RadialExpShapeEM" = type { %"class.DetectorModel::RadialShape", double }
%"class.DetectorModel::RadialShape" = type { ptr, double }
%"class.DetectorModel::RadialExpShapeHAD" = type { %"class.DetectorModel::RadialShape", double, double, double, double, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.DetectorModel::RadialSmearing" = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0" }
%"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 }

@_ZN13DetectorModel5Units2mmE = external dso_local global double, align 8
@_ZN13DetectorModel8Defaults13m_nEtaBinsHADE = external dso_local global i64, align 8
@_ZN13DetectorModel8Defaults11m_etaMinHADE = external dso_local global double, align 8
@_ZN13DetectorModel8Defaults11m_etaMaxHADE = external dso_local global double, align 8
@_ZN13DetectorModel8Defaults13m_nPhiBinsHADE = external dso_local global i64, align 8
@_ZN13DetectorModel8Defaults12m_nEtaBinsEME = external dso_local global i64, align 8
@_ZN13DetectorModel8Defaults10m_etaMinEME = external dso_local global double, align 8
@_ZN13DetectorModel8Defaults10m_etaMaxEME = external dso_local global double, align 8
@_ZN13DetectorModel8Defaults12m_nPhiBinsEME = external dso_local global i64, align 8
@_ZN13DetectorModel8Defaults12m_caloRadiusE = external dso_local global double, align 8
@_ZN13DetectorModel8Defaults15m_caloHalfWidthE = external dso_local global double, align 8
@_ZN13DetectorModel8Defaults12m_caloEtaMinE = external dso_local global double, align 8
@_ZN13DetectorModel8Defaults12m_caloEtaMaxE = external dso_local global double, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.49 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZTVN13DetectorModel14RadialSmearingE = external dso_local unnamed_addr constant { [16 x ptr] }, align 8
@_ZTIN13DetectorModel19DetectorDescriptionE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN13DetectorModel15CylindricalCaloE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.67 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [45 x i8], align 1

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13DetectorModel14RadialSmearingC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::allocator.2", align 1
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca %"class.std::allocator.2", align 1
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca %"class.DetectorModel::RadialExpShapeEM", align 8
  %11 = alloca i1, align 1
  %12 = alloca %"class.DetectorModel::RadialExpShapeHAD", align 8
  %13 = alloca i1, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  store ptr getelementptr inbounds inrange(-16, 112) ({ [16 x ptr] }, ptr @_ZTVN13DetectorModel14RadialSmearingE, i32 0, i32 0, i32 2), ptr %14, align 8, !tbaa !9
  %15 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 1
  %16 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 96) #7
  %17 = load i64, ptr @_ZN13DetectorModel8Defaults12m_nEtaBinsEME, align 8, !tbaa !11
  %18 = load double, ptr @_ZN13DetectorModel8Defaults10m_etaMinEME, align 8, !tbaa !13
  %19 = load double, ptr @_ZN13DetectorModel8Defaults10m_etaMaxEME, align 8, !tbaa !13
  %20 = load i64, ptr @_ZN13DetectorModel8Defaults12m_nPhiBinsEME, align 8, !tbaa !11
  invoke void @_ZN13DetectorModel4GridC1Emddm(ptr noundef nonnull align 8 dereferenceable(96) %16, i64 noundef %17, double noundef %18, double noundef %19, i64 noundef %20)
          to label %21 unwind label %50

21:                                               ; preds = %1
  store ptr %16, ptr %15, align 8, !tbaa !15
  %22 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 2
  %23 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 96) #7
  %24 = load i64, ptr @_ZN13DetectorModel8Defaults13m_nEtaBinsHADE, align 8, !tbaa !11
  %25 = load double, ptr @_ZN13DetectorModel8Defaults11m_etaMinHADE, align 8, !tbaa !13
  %26 = load double, ptr @_ZN13DetectorModel8Defaults11m_etaMaxHADE, align 8, !tbaa !13
  %27 = load i64, ptr @_ZN13DetectorModel8Defaults13m_nPhiBinsHADE, align 8, !tbaa !11
  invoke void @_ZN13DetectorModel4GridC1Emddm(ptr noundef nonnull align 8 dereferenceable(96) %23, i64 noundef %24, double noundef %25, double noundef %26, i64 noundef %27)
          to label %28 unwind label %54

28:                                               ; preds = %21
  store ptr %23, ptr %22, align 8, !tbaa !22
  %29 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 3
  store ptr null, ptr %29, align 8, !tbaa !23
  %30 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 4
  store ptr null, ptr %30, align 8, !tbaa !24
  %31 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 5
  %32 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #7
  %33 = load double, ptr @_ZN13DetectorModel8Defaults12m_caloRadiusE, align 8, !tbaa !13
  %34 = load double, ptr @_ZN13DetectorModel8Defaults15m_caloHalfWidthE, align 8, !tbaa !13
  %35 = load double, ptr @_ZN13DetectorModel8Defaults12m_caloEtaMinE, align 8, !tbaa !13
  %36 = load double, ptr @_ZN13DetectorModel8Defaults12m_caloEtaMaxE, align 8, !tbaa !13
  invoke void @_ZN13DetectorModel15CylindricalCaloC1Edddd(ptr noundef nonnull align 8 dereferenceable(56) %32, double noundef %33, double noundef %34, double noundef %35, double noundef %36)
          to label %37 unwind label %58

37:                                               ; preds = %28
  store ptr %32, ptr %31, align 8, !tbaa !25
  %38 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 6
  store i8 0, ptr %38, align 8, !tbaa !26
  %39 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #8
  call void @_ZNSaIN13DetectorModel9SimpleJetEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %40 unwind label %62

40:                                               ; preds = %37
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #8
  %41 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #8
  call void @_ZNSaIN13DetectorModel9SimpleJetEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %42 unwind label %66

42:                                               ; preds = %40
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  %43 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  call void @_ZNSaIN13DetectorModel9SimpleJetEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %44 unwind label %70

44:                                               ; preds = %42
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %45 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 5
  %46 = load ptr, ptr %45, align 8, !tbaa !25
  %47 = icmp eq ptr %46, null
  br i1 %47, label %74, label %48

48:                                               ; preds = %44
  %49 = call ptr @__dynamic_cast(ptr %46, ptr @_ZTIN13DetectorModel19DetectorDescriptionE, ptr @_ZTIN13DetectorModel15CylindricalCaloE, i64 0) #8
  br label %75

50:                                               ; preds = %1
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %3, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %16, i64 noundef 96) #9
  br label %158

54:                                               ; preds = %21
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %3, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %23, i64 noundef 96) #9
  br label %158

58:                                               ; preds = %28
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %3, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %32, i64 noundef 56) #9
  br label %158

62:                                               ; preds = %37
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %3, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #8
  br label %158

66:                                               ; preds = %40
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %3, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  br label %157

70:                                               ; preds = %42
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %3, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  br label %156

74:                                               ; preds = %44
  br label %75

75:                                               ; preds = %74, %48
  %76 = phi ptr [ %49, %48 ], [ null, %74 ]
  store ptr %76, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store double 0.000000e+00, ptr %9, align 8, !tbaa !13
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %99

79:                                               ; preds = %75
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = getelementptr inbounds ptr, ptr %81, i64 7
  %83 = load ptr, ptr %82, align 8
  %84 = invoke noundef double %83(ptr noundef nonnull align 8 dereferenceable(56) %80)
          to label %85 unwind label %95

85:                                               ; preds = %79
  store double %84, ptr %9, align 8, !tbaa !13
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.67)
          to label %87 unwind label %95

87:                                               ; preds = %85
  %88 = load double, ptr %9, align 8, !tbaa !13
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %86, double noundef %88)
          to label %90 unwind label %95

90:                                               ; preds = %87
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef @.str.49)
          to label %92 unwind label %95

92:                                               ; preds = %90
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %94 unwind label %95

94:                                               ; preds = %92
  br label %104

95:                                               ; preds = %128, %126, %124, %122, %119, %111, %104, %101, %99, %92, %90, %87, %85, %79
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %3, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %4, align 4
  br label %155

99:                                               ; preds = %75
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.68)
          to label %101 unwind label %95

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %103 unwind label %95

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103, %94
  %105 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 104) #7
          to label %106 unwind label %95

106:                                              ; preds = %104
  store i1 true, ptr %11, align 1
  %107 = load double, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  %108 = load double, ptr @_ZN13DetectorModel5Units2mmE, align 8, !tbaa !13
  %109 = fmul double 8.000000e+01, %108
  invoke void @_ZN13DetectorModel16RadialExpShapeEMC1Ed(ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef %109)
          to label %110 unwind label %131

110:                                              ; preds = %106
  invoke void @_ZN13DetectorModel13RadialProfileC1EdmmRKNS_11RadialShapeE(ptr noundef nonnull align 8 dereferenceable(104) %105, double noundef %107, i64 noundef 30, i64 noundef 32, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %111 unwind label %135

111:                                              ; preds = %110
  store i1 false, ptr %11, align 1
  %112 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 3
  store ptr %105, ptr %112, align 8, !tbaa !23
  call void @_ZN13DetectorModel16RadialExpShapeEMD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  %113 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 104) #7
          to label %114 unwind label %95

114:                                              ; preds = %111
  store i1 true, ptr %13, align 1
  %115 = load double, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 144, ptr %12) #8
  %116 = load double, ptr @_ZN13DetectorModel5Units2mmE, align 8, !tbaa !13
  %117 = fmul double 1.500000e+02, %116
  invoke void @_ZN13DetectorModel17RadialExpShapeHADC1Ed(ptr noundef nonnull align 8 dereferenceable(144) %12, double noundef %117)
          to label %118 unwind label %143

118:                                              ; preds = %114
  invoke void @_ZN13DetectorModel13RadialProfileC1EdmmRKNS_11RadialShapeE(ptr noundef nonnull align 8 dereferenceable(104) %113, double noundef %115, i64 noundef 30, i64 noundef 32, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %119 unwind label %147

119:                                              ; preds = %118
  store i1 false, ptr %13, align 1
  %120 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 4
  store ptr %113, ptr %120, align 8, !tbaa !24
  call void @_ZN13DetectorModel17RadialExpShapeHADD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %12) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %12) #8
  %121 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 7
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef 100000)
          to label %122 unwind label %95

122:                                              ; preds = %119
  %123 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 8
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef 100000)
          to label %124 unwind label %95

124:                                              ; preds = %122
  %125 = getelementptr inbounds %"class.DetectorModel::RadialSmearing", ptr %14, i32 0, i32 9
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef 100000)
          to label %126 unwind label %95

126:                                              ; preds = %124
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.69)
          to label %128 unwind label %95

128:                                              ; preds = %126
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %130 unwind label %95

130:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  ret void

131:                                              ; preds = %106
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %3, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %4, align 4
  br label %139

135:                                              ; preds = %110
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %3, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %4, align 4
  call void @_ZN13DetectorModel16RadialExpShapeEMD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  br label %139

139:                                              ; preds = %135, %131
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  %140 = load i1, ptr %11, align 1
  br i1 %140, label %141, label %142

141:                                              ; preds = %139
  call void @_ZdlPvm(ptr noundef %105, i64 noundef 104) #9
  br label %142

142:                                              ; preds = %141, %139
  br label %155

143:                                              ; preds = %114
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %3, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %4, align 4
  br label %151

147:                                              ; preds = %118
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %3, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %4, align 4
  call void @_ZN13DetectorModel17RadialExpShapeHADD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %12) #8
  br label %151

151:                                              ; preds = %147, %143
  call void @llvm.lifetime.end.p0(i64 144, ptr %12) #8
  %152 = load i1, ptr %13, align 1
  br i1 %152, label %153, label %154

153:                                              ; preds = %151
  call void @_ZdlPvm(ptr noundef %113, i64 noundef 104) #9
  br label %154

154:                                              ; preds = %153, %151
  br label %155

155:                                              ; preds = %154, %142, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  br label %156

156:                                              ; preds = %155, %70
  call void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #8
  br label %157

157:                                              ; preds = %156, %66
  call void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #8
  br label %158

158:                                              ; preds = %157, %62, %58, %54, %50
  %159 = load ptr, ptr %3, align 8
  %160 = load i32, ptr %4, align 4
  %161 = insertvalue { ptr, i32 } poison, ptr %159, 0
  %162 = insertvalue { ptr, i32 } %161, i32 %160, 1
  resume { ptr, i32 } %162
}

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

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

declare void @_ZN13DetectorModel4GridC1Emddm(ptr, i64, double, double, i64)

declare void @_ZN13DetectorModel15CylindricalCaloC1Edddd(ptr, double, double, double, double)

declare void @_ZN13DetectorModel17RadialExpShapeHADC1Ed(ptr, double)

declare void @_ZN13DetectorModel17RadialExpShapeHADD1Ev(ptr)

declare void @_ZN13DetectorModel16RadialExpShapeEMC1Ed(ptr, double)

declare void @_ZN13DetectorModel16RadialExpShapeEMD1Ev(ptr)

declare void @_ZN13DetectorModel13RadialProfileC1EdmmRKNS_11RadialShapeE(ptr, double, i64, i64, ptr)

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

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

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


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::allocator.2" = type { i8 }
%"class.DetectorModel::RadialExpShapeEM" = type { %"class.DetectorModel::RadialShape", double }
%"class.DetectorModel::RadialShape" = type { ptr, double }
%"class.DetectorModel::RadialExpShapeHAD" = type { %"class.DetectorModel::RadialShape", double, double, double, double, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

@_ZN13DetectorModel5Units2mmE = external dso_local local_unnamed_addr global double, align 8
@_ZN13DetectorModel8Defaults13m_nEtaBinsHADE = external dso_local local_unnamed_addr global i64, align 8
@_ZN13DetectorModel8Defaults11m_etaMinHADE = external dso_local local_unnamed_addr global double, align 8
@_ZN13DetectorModel8Defaults11m_etaMaxHADE = external dso_local local_unnamed_addr global double, align 8
@_ZN13DetectorModel8Defaults13m_nPhiBinsHADE = external dso_local local_unnamed_addr global i64, align 8
@_ZN13DetectorModel8Defaults12m_nEtaBinsEME = external dso_local local_unnamed_addr global i64, align 8
@_ZN13DetectorModel8Defaults10m_etaMinEME = external dso_local local_unnamed_addr global double, align 8
@_ZN13DetectorModel8Defaults10m_etaMaxEME = external dso_local local_unnamed_addr global double, align 8
@_ZN13DetectorModel8Defaults12m_nPhiBinsEME = external dso_local local_unnamed_addr global i64, align 8
@_ZN13DetectorModel8Defaults12m_caloRadiusE = external dso_local local_unnamed_addr global double, align 8
@_ZN13DetectorModel8Defaults15m_caloHalfWidthE = external dso_local local_unnamed_addr global double, align 8
@_ZN13DetectorModel8Defaults12m_caloEtaMinE = external dso_local local_unnamed_addr global double, align 8
@_ZN13DetectorModel8Defaults12m_caloEtaMaxE = external dso_local local_unnamed_addr global double, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.49 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZTVN13DetectorModel14RadialSmearingE = external dso_local unnamed_addr constant { [16 x ptr] }, align 8
@_ZTIN13DetectorModel19DetectorDescriptionE = external dso_local constant { ptr, ptr }, align 8
@_ZTIN13DetectorModel15CylindricalCaloE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.67 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [45 x i8], align 1

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13DetectorModel14RadialSmearingC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::allocator.2", align 1
  %3 = alloca %"class.std::allocator.2", align 1
  %4 = alloca %"class.std::allocator.2", align 1
  %5 = alloca %"class.DetectorModel::RadialExpShapeEM", align 8
  %6 = alloca %"class.DetectorModel::RadialExpShapeHAD", align 8
  store ptr getelementptr inbounds inrange(-16, 112) (i8, ptr @_ZTVN13DetectorModel14RadialSmearingE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = tail call noalias noundef nonnull dereferenceable(96) ptr @_Znwm(i64 noundef 96) #8
  %8 = load i64, ptr @_ZN13DetectorModel8Defaults12m_nEtaBinsEME, align 8, !tbaa !8
  %9 = load double, ptr @_ZN13DetectorModel8Defaults10m_etaMinEME, align 8, !tbaa !11
  %10 = load double, ptr @_ZN13DetectorModel8Defaults10m_etaMaxEME, align 8, !tbaa !11
  %11 = load i64, ptr @_ZN13DetectorModel8Defaults12m_nPhiBinsEME, align 8, !tbaa !8
  invoke void @_ZN13DetectorModel4GridC1Emddm(ptr noundef nonnull align 8 dereferenceable(96) %7, i64 noundef %8, double noundef %9, double noundef %10, i64 noundef %11)
          to label %12 unwind label %39

12:                                               ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %7, ptr %13, align 8, !tbaa !13
  %14 = tail call noalias noundef nonnull dereferenceable(96) ptr @_Znwm(i64 noundef 96) #8
  %15 = load i64, ptr @_ZN13DetectorModel8Defaults13m_nEtaBinsHADE, align 8, !tbaa !8
  %16 = load double, ptr @_ZN13DetectorModel8Defaults11m_etaMinHADE, align 8, !tbaa !11
  %17 = load double, ptr @_ZN13DetectorModel8Defaults11m_etaMaxHADE, align 8, !tbaa !11
  %18 = load i64, ptr @_ZN13DetectorModel8Defaults13m_nPhiBinsHADE, align 8, !tbaa !8
  invoke void @_ZN13DetectorModel4GridC1Emddm(ptr noundef nonnull align 8 dereferenceable(96) %14, i64 noundef %15, double noundef %16, double noundef %17, i64 noundef %18)
          to label %19 unwind label %41

19:                                               ; preds = %12
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %14, ptr %20, align 8, !tbaa !21
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %21, i8 0, i64 16, i1 false)
  %24 = tail call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #8
  %25 = load double, ptr @_ZN13DetectorModel8Defaults12m_caloRadiusE, align 8, !tbaa !11
  %26 = load double, ptr @_ZN13DetectorModel8Defaults15m_caloHalfWidthE, align 8, !tbaa !11
  %27 = load double, ptr @_ZN13DetectorModel8Defaults12m_caloEtaMinE, align 8, !tbaa !11
  %28 = load double, ptr @_ZN13DetectorModel8Defaults12m_caloEtaMaxE, align 8, !tbaa !11
  invoke void @_ZN13DetectorModel15CylindricalCaloC1Edddd(ptr noundef nonnull align 8 dereferenceable(56) %24, double noundef %25, double noundef %26, double noundef %27, double noundef %28)
          to label %29 unwind label %43

29:                                               ; preds = %19
  store ptr %24, ptr %23, align 8, !tbaa !22
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  store i8 0, ptr %30, align 8, !tbaa !23
  %31 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #9
  call void @_ZNSaIN13DetectorModel9SimpleJetEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #9
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %32 unwind label %45

32:                                               ; preds = %29
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #9
  %33 = getelementptr inbounds i8, ptr %0, i64 80
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #9
  call void @_ZNSaIN13DetectorModel9SimpleJetEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #9
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %34 unwind label %47

34:                                               ; preds = %32
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #9
  %35 = getelementptr inbounds i8, ptr %0, i64 104
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #9
  call void @_ZNSaIN13DetectorModel9SimpleJetEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef 0, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %36 unwind label %49

36:                                               ; preds = %34
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  %37 = load ptr, ptr %23, align 8, !tbaa !22
  %38 = icmp eq ptr %37, null
  br i1 %38, label %.thread, label %51

39:                                               ; preds = %1
  %40 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %7, i64 noundef 96) #10
  br label %104

41:                                               ; preds = %12
  %42 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 96) #10
  br label %104

43:                                               ; preds = %19
  %44 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %24, i64 noundef 56) #10
  br label %104

45:                                               ; preds = %29
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #9
  br label %104

47:                                               ; preds = %32
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #9
  br label %103

49:                                               ; preds = %34
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN13DetectorModel9SimpleJetEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #9
  br label %102

51:                                               ; preds = %36
  %52 = call ptr @__dynamic_cast(ptr nonnull %37, ptr nonnull @_ZTIN13DetectorModel19DetectorDescriptionE, ptr nonnull @_ZTIN13DetectorModel15CylindricalCaloE, i64 0) #9
  %.not = icmp eq ptr %52, null
  br i1 %.not, label %.thread, label %53

53:                                               ; preds = %51
  %54 = load ptr, ptr %52, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 56
  %56 = load ptr, ptr %55, align 8
  %57 = invoke noundef double %56(ptr noundef nonnull align 8 dereferenceable(56) %52)
          to label %58 unwind label %66

58:                                               ; preds = %53
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.67)
          to label %60 unwind label %66

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %59, double noundef %57)
          to label %62 unwind label %66

62:                                               ; preds = %60
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @.str.49)
          to label %64 unwind label %66

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %71 unwind label %66

66:                                               ; preds = %88, %86, %85, %84, %83, %77, %71, %69, %.thread, %64, %62, %60, %58, %53
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %101

.thread:                                          ; preds = %36, %51
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.68)
          to label %69 unwind label %66

69:                                               ; preds = %.thread
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %71 unwind label %66

71:                                               ; preds = %69, %64
  %.0 = phi double [ %57, %64 ], [ 0.000000e+00, %69 ]
  %72 = invoke noalias noundef nonnull dereferenceable(104) ptr @_Znwm(i64 noundef 104) #8
          to label %73 unwind label %66

73:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  %74 = load double, ptr @_ZN13DetectorModel5Units2mmE, align 8, !tbaa !11
  %75 = fmul double %74, 8.000000e+01
  invoke void @_ZN13DetectorModel16RadialExpShapeEMC1Ed(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef %75)
          to label %76 unwind label %91

76:                                               ; preds = %73
  invoke void @_ZN13DetectorModel13RadialProfileC1EdmmRKNS_11RadialShapeE(ptr noundef nonnull align 8 dereferenceable(104) %72, double noundef %.0, i64 noundef 30, i64 noundef 32, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %77 unwind label %93

77:                                               ; preds = %76
  store ptr %72, ptr %21, align 8, !tbaa !24
  call void @_ZN13DetectorModel16RadialExpShapeEMD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  %78 = invoke noalias noundef nonnull dereferenceable(104) ptr @_Znwm(i64 noundef 104) #8
          to label %79 unwind label %66

79:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %6) #9
  %80 = load double, ptr @_ZN13DetectorModel5Units2mmE, align 8, !tbaa !11
  %81 = fmul double %80, 1.500000e+02
  invoke void @_ZN13DetectorModel17RadialExpShapeHADC1Ed(ptr noundef nonnull align 8 dereferenceable(144) %6, double noundef %81)
          to label %82 unwind label %96

82:                                               ; preds = %79
  invoke void @_ZN13DetectorModel13RadialProfileC1EdmmRKNS_11RadialShapeE(ptr noundef nonnull align 8 dereferenceable(104) %78, double noundef %.0, i64 noundef 30, i64 noundef 32, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %83 unwind label %98

83:                                               ; preds = %82
  store ptr %78, ptr %22, align 8, !tbaa !25
  call void @_ZN13DetectorModel17RadialExpShapeHADD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %6) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %6) #9
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 100000)
          to label %84 unwind label %66

84:                                               ; preds = %83
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef 100000)
          to label %85 unwind label %66

85:                                               ; preds = %84
  invoke void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef 100000)
          to label %86 unwind label %66

86:                                               ; preds = %85
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.69)
          to label %88 unwind label %66

88:                                               ; preds = %86
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %90 unwind label %66

90:                                               ; preds = %88
  ret void

91:                                               ; preds = %73
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %76
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13DetectorModel16RadialExpShapeEMD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  br label %95

95:                                               ; preds = %93, %91
  %.pn = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  call void @_ZdlPvm(ptr noundef nonnull %72, i64 noundef 104) #10
  br label %101

96:                                               ; preds = %79
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %100

98:                                               ; preds = %82
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13DetectorModel17RadialExpShapeHADD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %6) #9
  br label %100

100:                                              ; preds = %98, %96
  %.pn19 = phi { ptr, i32 } [ %99, %98 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %6) #9
  call void @_ZdlPvm(ptr noundef nonnull %78, i64 noundef 104) #10
  br label %101

101:                                              ; preds = %100, %95, %66
  %.pn21 = phi { ptr, i32 } [ %67, %66 ], [ %.pn19, %100 ], [ %.pn, %95 ]
  call void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #9
  br label %102

102:                                              ; preds = %101, %49
  %.pn21.pn = phi { ptr, i32 } [ %.pn21, %101 ], [ %50, %49 ]
  call void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  br label %103

103:                                              ; preds = %102, %47
  %.pn21.pn.pn = phi { ptr, i32 } [ %.pn21.pn, %102 ], [ %48, %47 ]
  call void @_ZNSt6vectorIN13DetectorModel9SimpleJetESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  br label %104

104:                                              ; preds = %103, %45, %43, %41, %39
  %.pn21.pn.pn.pn = phi { ptr, i32 } [ %.pn21.pn.pn, %103 ], [ %46, %45 ], [ %44, %43 ], [ %42, %41 ], [ %40, %39 ]
  resume { ptr, i32 } %.pn21.pn.pn.pn
}

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

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

declare void @_ZN13DetectorModel4GridC1Emddm(ptr, i64, double, double, i64) local_unnamed_addr

declare void @_ZN13DetectorModel15CylindricalCaloC1Edddd(ptr, double, double, double, double) local_unnamed_addr

declare void @_ZN13DetectorModel17RadialExpShapeHADC1Ed(ptr, double) local_unnamed_addr

declare void @_ZN13DetectorModel17RadialExpShapeHADD1Ev(ptr) local_unnamed_addr

declare void @_ZN13DetectorModel16RadialExpShapeEMC1Ed(ptr, double) local_unnamed_addr

declare void @_ZN13DetectorModel16RadialExpShapeEMD1Ev(ptr) local_unnamed_addr

declare void @_ZN13DetectorModel13RadialProfileC1EdmmRKNS_11RadialShapeE(ptr, double, i64, i64, ptr) local_unnamed_addr

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 #5 = { nobuiltin allocsize(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 = { mustprogress nofree nounwind willreturn memory(read) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { builtin 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 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !10, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"_ZTSN13DetectorModel14RadialSmearingE", !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !16, i64 48, !17, i64 56, !17, i64 80, !17, i64 104}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"bool", !10, i64 0}
!17 = !{!"_ZTSSt6vectorIN13DetectorModel9SimpleJetESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN13DetectorModel9SimpleJetESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN13DetectorModel9SimpleJetESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN13DetectorModel9SimpleJetESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!21 = !{!14, !15, i64 16}
!22 = !{!14, !15, i64 40}
!23 = !{!14, !16, i64 48}
!24 = !{!14, !15, i64 24}
!25 = !{!14, !15, i64 32}


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