; LLVM IR from EdoPro98/SimSiPM :: src/SiPMProperties.ll (ZN4sipm14SiPMProperties14setPdeSpectrumERKSt6vectorIdSaIdEES5_)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<double, std::pair<const double, double>, std::_Select1st<std::pair<const double, double>>, std::less<double>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<double, std::pair<const double, double>, std::_Select1st<std::pair<const double, double>>, std::less<double>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::reverse_iterator" = type { %"struct.std::_Rb_tree_const_iterator" }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { double, double }
%"class.sipm::SiPMProperties" = type <{ double, double, i32, i32, i32, [4 x i8], double, double, i32, [4 x i8], double, double, double, double, double, double, double, double, double, double, double, double, double, float, [4 x i8], double, float, [4 x i8], double, double, %"class.std::map", i32, i8, i8, i8, i8, i8, [7 x i8] }>

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sipm14SiPMProperties14setPdeSpectrumERKSt6vectorIdSaIdEES5_(ptr noundef nonnull align 8 dereferenceable(257) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::map", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca double, align 8
  %14 = alloca %"class.std::reverse_iterator", align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %22 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %23 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #6
  call void @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %52, %3
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %38 = icmp ult i64 %35, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %59

40:                                               ; preds = %33
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43) #6
  %45 = load double, ptr %44, align 8, !tbaa !11
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #6
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %51 unwind label %55

51:                                               ; preds = %40
  store double %45, ptr %50, align 8, !tbaa !11
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = add i32 %53, 1
  store i32 %54, ptr %8, align 4, !tbaa !9
  br label %33, !llvm.loop !13

55:                                               ; preds = %40
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %9, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %182

59:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %60 = call ptr @_ZNKSt3mapIddSt4lessIdESaISt4pairIKddEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  %61 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %12, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  %62 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKddEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %63 = getelementptr inbounds %"struct.std::pair", ptr %62, i32 0, i32 0
  %64 = load double, ptr %63, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  store double %64, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @_ZNKSt3mapIddSt4lessIdESaISt4pairIKddEEE7crbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  %65 = invoke noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIKddEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %66 unwind label %77

66:                                               ; preds = %59
  %67 = getelementptr inbounds %"struct.std::pair", ptr %65, i32 0, i32 0
  %68 = load double, ptr %67, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  store double %68, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %69 = load double, ptr %13, align 8, !tbaa !11
  %70 = load double, ptr %11, align 8, !tbaa !11
  %71 = fsub double %69, %70
  %72 = fdiv double %71, 3.200000e+01
  store double %72, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %171, %66
  %74 = load i32, ptr %16, align 4, !tbaa !9
  %75 = icmp ult i32 %74, 32
  br i1 %75, label %81, label %76

76:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %179

77:                                               ; preds = %59
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %181

81:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %82 = load double, ptr %11, align 8, !tbaa !11
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = uitofp i32 %83 to double
  %85 = load double, ptr %15, align 8, !tbaa !11
  %86 = call double @llvm.fmuladd.f64(double %84, double %85, double %82)
  store double %86, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %87 = invoke ptr @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEE11upper_boundERS3_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %88 unwind label %95

88:                                               ; preds = %81
  %89 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %18, i32 0, i32 0
  store ptr %87, ptr %89, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKddEEC2ERKSt17_Rb_tree_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %90 = call ptr @_ZNKSt3mapIddSt4lessIdESaISt4pairIKddEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  %91 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %90, ptr %91, align 8
  %92 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKddEES5_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br i1 %92, label %93, label %99

93:                                               ; preds = %88
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKddEEmmEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %99

95:                                               ; preds = %81
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %9, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %10, align 4
  br label %178

99:                                               ; preds = %93, %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKddEEC2ERKSt17_Rb_tree_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %100 = call ptr @_ZNKSt3mapIddSt4lessIdESaISt4pairIKddEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  %101 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %22, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  %102 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKddEES5_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br i1 %102, label %103, label %105

103:                                              ; preds = %99
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKddEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br label %105

105:                                              ; preds = %103, %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %18, i64 8, i1 false), !tbaa.struct !17
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKddEEmmEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %107 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKddEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  %108 = getelementptr inbounds %"struct.std::pair", ptr %107, i32 0, i32 0
  %109 = load double, ptr %108, align 8, !tbaa !15
  store double %109, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %110 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKddEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  %111 = getelementptr inbounds %"struct.std::pair", ptr %110, i32 0, i32 0
  %112 = load double, ptr %111, align 8, !tbaa !15
  store double %112, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %113 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKddEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  %114 = getelementptr inbounds %"struct.std::pair", ptr %113, i32 0, i32 1
  %115 = load double, ptr %114, align 8, !tbaa !18
  store double %115, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %116 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKddEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  %117 = getelementptr inbounds %"struct.std::pair", ptr %116, i32 0, i32 1
  %118 = load double, ptr %117, align 8, !tbaa !18
  store double %118, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %119 = load double, ptr %26, align 8, !tbaa !11
  %120 = call double @log(double noundef %119) #6
  %121 = load double, ptr %25, align 8, !tbaa !11
  %122 = load double, ptr %17, align 8, !tbaa !11
  %123 = fdiv double %121, %122
  %124 = call double @log(double noundef %123) #6
  %125 = load double, ptr %27, align 8, !tbaa !11
  %126 = call double @log(double noundef %125) #6
  %127 = load double, ptr %17, align 8, !tbaa !11
  %128 = load double, ptr %24, align 8, !tbaa !11
  %129 = fdiv double %127, %128
  %130 = call double @log(double noundef %129) #6
  %131 = fmul double %126, %130
  %132 = call double @llvm.fmuladd.f64(double %120, double %124, double %131)
  %133 = load double, ptr %25, align 8, !tbaa !11
  %134 = load double, ptr %24, align 8, !tbaa !11
  %135 = fdiv double %133, %134
  %136 = call double @log(double noundef %135) #6
  %137 = fdiv double %132, %136
  store double %137, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %138 = load double, ptr %28, align 8, !tbaa !11
  %139 = call double @exp(double noundef %138) #6
  store double %139, ptr %29, align 8, !tbaa !11
  %140 = load double, ptr %29, align 8, !tbaa !11
  %141 = fcmp olt double %140, 0.000000e+00
  br i1 %141, label %142, label %159

142:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %143 = load double, ptr %27, align 8, !tbaa !11
  %144 = load double, ptr %26, align 8, !tbaa !11
  %145 = fsub double %143, %144
  %146 = load double, ptr %25, align 8, !tbaa !11
  %147 = load double, ptr %24, align 8, !tbaa !11
  %148 = fsub double %146, %147
  %149 = fdiv double %145, %148
  store double %149, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %150 = load double, ptr %26, align 8, !tbaa !11
  %151 = load double, ptr %30, align 8, !tbaa !11
  %152 = load double, ptr %24, align 8, !tbaa !11
  %153 = fneg double %151
  %154 = call double @llvm.fmuladd.f64(double %153, double %152, double %150)
  store double %154, ptr %31, align 8, !tbaa !11
  %155 = load double, ptr %30, align 8, !tbaa !11
  %156 = load double, ptr %17, align 8, !tbaa !11
  %157 = load double, ptr %31, align 8, !tbaa !11
  %158 = call double @llvm.fmuladd.f64(double %155, double %156, double %157)
  store double %158, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %159

159:                                              ; preds = %142, %105
  %160 = load double, ptr %29, align 8, !tbaa !11
  %161 = fcmp olt double %160, 0.000000e+00
  br i1 %161, label %162, label %163

162:                                              ; preds = %159
  br label %165

163:                                              ; preds = %159
  %164 = load double, ptr %29, align 8, !tbaa !11
  br label %165

165:                                              ; preds = %163, %162
  %166 = phi double [ 0.000000e+00, %162 ], [ %164, %163 ]
  store double %166, ptr %29, align 8, !tbaa !11
  %167 = load double, ptr %29, align 8, !tbaa !11
  %168 = getelementptr inbounds %"class.sipm::SiPMProperties", ptr %32, i32 0, i32 30
  %169 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %168, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %170 unwind label %174

170:                                              ; preds = %165
  store double %167, ptr %169, align 8, !tbaa !11
  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 %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  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 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = add i32 %172, 1
  store i32 %173, ptr %16, align 4, !tbaa !9
  br label %73, !llvm.loop !19

174:                                              ; preds = %165
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %9, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %10, align 4
  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 %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %178

178:                                              ; preds = %174, %95
  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 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %181

179:                                              ; preds = %76
  %180 = getelementptr inbounds %"class.sipm::SiPMProperties", ptr %32, i32 0, i32 31
  store i32 2, ptr %180, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #6
  ret void

181:                                              ; preds = %178, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %182

182:                                              ; preds = %181, %55
  call void @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #6
  br label %183

183:                                              ; preds = %182
  %184 = load ptr, ptr %9, align 8
  %185 = load i32, ptr %10, align 4
  %186 = insertvalue { ptr, i32 } poison, ptr %184, 0
  %187 = insertvalue { ptr, i32 } %186, i32 %185, 1
  resume { ptr, i32 } %187
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt3mapIddSt4lessIdESaISt4pairIKddEEE7crbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare double @exp(double noundef) #5

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTSSt4pairIKddE", !12, i64 0, !12, i64 8}
!17 = !{i64 0, i64 8, !5}
!18 = !{!16, !12, i64 8}
!19 = distinct !{!19, !14}
!20 = !{!21, !33, i64 248}
!21 = !{!"_ZTSN4sipm14SiPMPropertiesE", !12, i64 0, !12, i64 8, !10, i64 16, !10, i64 20, !22, i64 24, !12, i64 32, !12, i64 40, !10, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !23, i64 160, !12, i64 168, !23, i64 176, !12, i64 184, !12, i64 192, !24, i64 200, !33, i64 248, !34, i64 252, !34, i64 253, !34, i64 254, !34, i64 255, !34, i64 256}
!22 = !{!"_ZTSN4sipm14SiPMProperties15HitDistributionE", !7, i64 0}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTSSt3mapIddSt4lessIdESaISt4pairIKddEEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeIdSt4pairIKddESt10_Select1stIS2_ESt4lessIdESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeIdSt4pairIKddESt10_Select1stIS2_ESt4lessIdESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIdEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessIdE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !32, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = !{!"_ZTSN4sipm14SiPMProperties7PdeTypeE", !7, i64 0}
!34 = !{!"bool", !7, i64 0}


; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<double, std::pair<const double, double>, std::_Select1st<std::pair<const double, double>>, std::less<double>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<double, std::pair<const double, double>, std::_Select1st<std::pair<const double, double>>, std::less<double>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::reverse_iterator" = type { %"struct.std::_Rb_tree_const_iterator" }
%"struct.std::_Rb_tree_iterator" = type { ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sipm14SiPMProperties14setPdeSpectrumERKSt6vectorIdSaIdEES5_(ptr noundef nonnull align 8 dereferenceable(257) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::map", align 8
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = alloca %"class.std::reverse_iterator", align 8
  %7 = alloca double, align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  call void @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  %14 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %24, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %15 = call ptr @_ZNKSt3mapIddSt4lessIdESaISt4pairIKddEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  store ptr %15, ptr %5, align 8
  %16 = call noundef ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKddEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %17 = load double, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNKSt3mapIddSt4lessIdESaISt4pairIKddEEE7crbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  %18 = invoke noundef ptr @_ZNKSt16reverse_iteratorISt23_Rb_tree_const_iteratorISt4pairIKddEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %31 unwind label %38

.lr.ph:                                           ; preds = %3, %24
  %19 = phi i64 [ %26, %24 ], [ 0, %3 ]
  %.048 = phi i32 [ %25, %24 ], [ 0, %3 ]
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %19) #5
  %21 = load double, ptr %20, align 8, !tbaa !10
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %19) #5
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %24 unwind label %29

24:                                               ; preds = %.lr.ph
  store double %21, ptr %23, align 8, !tbaa !10
  %25 = add i32 %.048, 1
  %26 = zext i32 %25 to i64
  %27 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %28 = icmp ugt i64 %27, %26
  br i1 %28, label %.lr.ph, label %._crit_edge, !llvm.loop !11

29:                                               ; preds = %.lr.ph
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %101

31:                                               ; preds = %._crit_edge
  %32 = load double, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %33 = fsub double %32, %17
  %34 = fmul double %33, 3.125000e-02
  %35 = getelementptr inbounds i8, ptr %0, i64 200
  br label %40

36:                                               ; preds = %94
  %37 = getelementptr inbounds i8, ptr %0, i64 248
  store i32 2, ptr %37, align 8, !tbaa !13
  call void @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  ret void

38:                                               ; preds = %._crit_edge
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %101

40:                                               ; preds = %31, %94
  %.04149 = phi i32 [ 0, %31 ], [ %97, %94 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %41 = uitofp nneg i32 %.04149 to double
  %42 = call double @llvm.fmuladd.f64(double %41, double %34, double %17)
  store double %42, ptr %7, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %43 = invoke ptr @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEE11upper_boundERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %44 unwind label %49

44:                                               ; preds = %40
  store ptr %43, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKddEEC2ERKSt17_Rb_tree_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %45 = call ptr @_ZNKSt3mapIddSt4lessIdESaISt4pairIKddEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  store ptr %45, ptr %10, align 8
  %46 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKddEES5_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br i1 %46, label %47, label %51

47:                                               ; preds = %44
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKddEEmmEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %51

49:                                               ; preds = %40
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %100

51:                                               ; preds = %47, %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @_ZNSt23_Rb_tree_const_iteratorISt4pairIKddEEC2ERKSt17_Rb_tree_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %52 = call ptr @_ZNKSt3mapIddSt4lessIdESaISt4pairIKddEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  store ptr %52, ptr %12, align 8
  %53 = call noundef zeroext i1 @_ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKddEES5_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br i1 %53, label %54, label %56

54:                                               ; preds = %51
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKddEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br label %56

56:                                               ; preds = %54, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %57 = load i64, ptr %8, align 8, !tbaa !30
  store i64 %57, ptr %13, align 8, !tbaa !30
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKddEEmmEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %59 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKddEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %60 = load double, ptr %59, align 8, !tbaa !5
  %61 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKddEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %62 = load double, ptr %61, align 8, !tbaa !5
  %63 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKddEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load double, ptr %64, align 8, !tbaa !31
  %66 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKddEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  %68 = load double, ptr %67, align 8, !tbaa !31
  %69 = call double @log(double noundef %65) #5
  %70 = load double, ptr %7, align 8, !tbaa !10
  %71 = fdiv double %62, %70
  %72 = call double @log(double noundef %71) #5
  %73 = call double @log(double noundef %68) #5
  %74 = load double, ptr %7, align 8, !tbaa !10
  %75 = fdiv double %74, %60
  %76 = call double @log(double noundef %75) #5
  %77 = fmul double %73, %76
  %78 = call double @llvm.fmuladd.f64(double %69, double %72, double %77)
  %79 = fdiv double %62, %60
  %80 = call double @log(double noundef %79) #5
  %81 = fdiv double %78, %80
  %82 = call double @exp(double noundef %81) #5
  %83 = fcmp olt double %82, 0.000000e+00
  br i1 %83, label %84, label %92

84:                                               ; preds = %56
  %85 = fsub double %68, %65
  %86 = fsub double %62, %60
  %87 = fdiv double %85, %86
  %88 = fneg double %87
  %89 = call double @llvm.fmuladd.f64(double %88, double %60, double %65)
  %90 = load double, ptr %7, align 8, !tbaa !10
  %91 = call double @llvm.fmuladd.f64(double %87, double %90, double %89)
  br label %92

92:                                               ; preds = %84, %56
  %.037 = phi double [ %91, %84 ], [ %82, %56 ]
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %35, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %94 unwind label %98

94:                                               ; preds = %92
  %95 = fcmp olt double %.037, 0.000000e+00
  %96 = select i1 %95, double 0.000000e+00, double %.037
  store double %96, ptr %93, align 8, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %97 = add nuw nsw i32 %.04149, 1
  %exitcond.not = icmp eq i32 %97, 32
  br i1 %exitcond.not, label %36, label %40, !llvm.loop !32

98:                                               ; preds = %92
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br label %100

100:                                              ; preds = %98, %49
  %.pn = phi { ptr, i32 } [ %99, %98 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %101

101:                                              ; preds = %38, %100, %29
  %.pn46 = phi { ptr, i32 } [ %30, %29 ], [ %.pn, %100 ], [ %39, %38 ]
  call void @_ZNSt3mapIddSt4lessIdESaISt4pairIKddEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn46
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt3mapIddSt4lessIdESaISt4pairIKddEEE7crbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !7, i64 0}
!6 = !{!"_ZTSSt4pairIKddE", !7, i64 0, !7, i64 8}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !28, i64 248}
!14 = !{!"_ZTSN4sipm14SiPMPropertiesE", !7, i64 0, !7, i64 8, !15, i64 16, !15, i64 20, !16, i64 24, !7, i64 32, !7, i64 40, !15, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !17, i64 160, !7, i64 168, !17, i64 176, !7, i64 184, !7, i64 192, !18, i64 200, !28, i64 248, !29, i64 252, !29, i64 253, !29, i64 254, !29, i64 255, !29, i64 256}
!15 = !{!"int", !8, i64 0}
!16 = !{!"_ZTSN4sipm14SiPMProperties15HitDistributionE", !8, i64 0}
!17 = !{!"float", !8, i64 0}
!18 = !{!"_ZTSSt3mapIddSt4lessIdESaISt4pairIKddEEE", !19, i64 0}
!19 = !{!"_ZTSSt8_Rb_treeIdSt4pairIKddESt10_Select1stIS2_ESt4lessIdESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt8_Rb_treeIdSt4pairIKddESt10_Select1stIS2_ESt4lessIdESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !21, i64 0, !23, i64 8}
!21 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIdEE", !22, i64 0}
!22 = !{!"_ZTSSt4lessIdE"}
!23 = !{!"_ZTSSt15_Rb_tree_header", !24, i64 0, !27, i64 32}
!24 = !{!"_ZTSSt18_Rb_tree_node_base", !25, i64 0, !26, i64 8, !26, i64 16, !26, i64 24}
!25 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!26 = !{!"any pointer", !8, i64 0}
!27 = !{!"long", !8, i64 0}
!28 = !{!"_ZTSN4sipm14SiPMProperties7PdeTypeE", !8, i64 0}
!29 = !{!"bool", !8, i64 0}
!30 = !{!26, !26, i64 0}
!31 = !{!6, !7, i64 8}
!32 = distinct !{!32, !12}


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