; LLVM IR from EdoPro98/SimSiPM :: src/SiPMSensor.ll (ZN4sipm10SiPMSensor17addPhotoelectronsEv)

; 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"

%"struct.sipm::pair" = type { i32, i32 }
%"class.sipm::SiPMSensor" = type { %"class.sipm::SiPMProperties", [56 x i8], %"class.sipm::SiPMRandom", i32, i32, i32, i32, i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", %"class.sipm::SiPMAnalogSignal", [40 x i8] }
%"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] }>
%"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 }
%"class.sipm::SiPMRandom" = type { %"class.sipm::SiPMRng::Xorshift256plus" }
%"class.sipm::SiPMRng::Xorshift256plus" = type <{ [4 x i64], [32 x i8], [65536 x i64], i32, [60 x i8] }>
%"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.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<sipm::SiPMHit *, std::allocator<sipm::SiPMHit *>>::_Vector_impl" }
%"struct.std::_Vector_base<sipm::SiPMHit *, std::allocator<sipm::SiPMHit *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sipm::SiPMHit *, std::allocator<sipm::SiPMHit *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sipm::SiPMHit *, std::allocator<sipm::SiPMHit *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sipm::SiPMAnalogSignal" = type { %"class.std::vector.8", double }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sipm10SiPMSensor17addPhotoelectronsEv(ptr noundef nonnull align 64 dereferenceable(524888) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca %"struct.sipm::pair", align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.sipm::pair", align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.sipm::pair", align 4
  %16 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %18 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 0
  %19 = call noundef double @_ZNK4sipm14SiPMProperties12signalLengthEv(ptr noundef nonnull align 8 dereferenceable(257) %18)
  store double %19, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %20 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 9
  %21 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %22 = trunc i64 %21 to i32
  store i32 %22, ptr %4, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %23 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 0
  %24 = call noundef i32 @_ZN4sipm14SiPMProperties7pdeTypeEv(ptr noundef nonnull align 8 dereferenceable(257) %23)
  store i32 %24, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  store i8 0, ptr %6, align 1, !tbaa !15
  %25 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 11
  %26 = load i32, ptr %4, align 4, !tbaa !11
  %27 = zext i32 %26 to i64
  call void @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %27)
  %28 = load i32, ptr %5, align 4, !tbaa !13
  switch i32 %28, label %182 [
    i32 0, label %29
    i32 1, label %74
    i32 2, label %126
  ]

29:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %30

30:                                               ; preds = %70, %29
  %31 = load i32, ptr %7, align 4, !tbaa !11
  %32 = load i32, ptr %4, align 4, !tbaa !11
  %33 = icmp ult i32 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %73

35:                                               ; preds = %30
  %36 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 9
  %37 = load i32, ptr %7, align 4, !tbaa !11
  %38 = zext i32 %37 to i64
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %38) #5
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = fcmp olt double %40, 0.000000e+00
  br i1 %41, label %50, label %42

42:                                               ; preds = %35
  %43 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 9
  %44 = load i32, ptr %7, align 4, !tbaa !11
  %45 = zext i32 %44 to i64
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %45) #5
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = load double, ptr %3, align 8, !tbaa !9
  %49 = fcmp ogt double %47, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %42, %35
  br label %70

51:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %52 = call i64 @_ZNK4sipm10SiPMSensor7hitCellEv(ptr noundef nonnull align 64 dereferenceable(524888) %17)
  store i64 %52, ptr %8, align 4
  %53 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %54 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #6
  %55 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 9
  %56 = load i32, ptr %7, align 4, !tbaa !11
  %57 = zext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %57) #5
  %59 = load double, ptr %58, align 8, !tbaa !9
  %60 = getelementptr inbounds %"struct.sipm::pair", ptr %8, i32 0, i32 0
  %61 = load i32, ptr %60, align 4, !tbaa !17
  %62 = getelementptr inbounds %"struct.sipm::pair", ptr %8, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !19
  call void @_ZN4sipm7SiPMHitC2EdfjjNS0_7HitTypeEPKS0_(ptr noundef nonnull align 8 dereferenceable(29) %54, double noundef %59, float noundef 1.000000e+00, i32 noundef %61, i32 noundef %63, i8 noundef zeroext 0, ptr noundef null) #5
  store ptr %54, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %64 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 3
  %65 = load i32, ptr %64, align 64, !tbaa !20
  %66 = add i32 %65, 1
  store i32 %66, ptr %64, align 64, !tbaa !20
  %67 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 4
  %68 = load i32, ptr %67, align 4, !tbaa !50
  %69 = add i32 %68, 1
  store i32 %69, ptr %67, align 4, !tbaa !50
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %70

70:                                               ; preds = %51, %50
  %71 = load i32, ptr %7, align 4, !tbaa !11
  %72 = add i32 %71, 1
  store i32 %72, ptr %7, align 4, !tbaa !11
  br label %30, !llvm.loop !51

73:                                               ; preds = %34
  store i32 1, ptr %10, align 4
  br label %183

74:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %75

75:                                               ; preds = %122, %74
  %76 = load i32, ptr %11, align 4, !tbaa !11
  %77 = load i32, ptr %4, align 4, !tbaa !11
  %78 = icmp ult i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 6, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %125

80:                                               ; preds = %75
  %81 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 9
  %82 = load i32, ptr %11, align 4, !tbaa !11
  %83 = zext i32 %82 to i64
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %83) #5
  %85 = load double, ptr %84, align 8, !tbaa !9
  %86 = fcmp olt double %85, 0.000000e+00
  br i1 %86, label %95, label %87

87:                                               ; preds = %80
  %88 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 9
  %89 = load i32, ptr %11, align 4, !tbaa !11
  %90 = zext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90) #5
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = load double, ptr %3, align 8, !tbaa !9
  %94 = fcmp ogt double %92, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %87, %80
  br label %122

96:                                               ; preds = %87
  %97 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 0
  %98 = call noundef double @_ZNK4sipm14SiPMProperties3pdeEv(ptr noundef nonnull align 8 dereferenceable(257) %97)
  %99 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 2
  %100 = call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %99) #5
  %101 = fcmp ogt double %98, %100
  br i1 %101, label %102, label %121

102:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %103 = call i64 @_ZNK4sipm10SiPMSensor7hitCellEv(ptr noundef nonnull align 64 dereferenceable(524888) %17)
  store i64 %103, ptr %12, align 4
  %104 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %105 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #6
  %106 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 9
  %107 = load i32, ptr %11, align 4, !tbaa !11
  %108 = zext i32 %107 to i64
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %108) #5
  %110 = load double, ptr %109, align 8, !tbaa !9
  %111 = getelementptr inbounds %"struct.sipm::pair", ptr %12, i32 0, i32 0
  %112 = load i32, ptr %111, align 4, !tbaa !17
  %113 = getelementptr inbounds %"struct.sipm::pair", ptr %12, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !19
  call void @_ZN4sipm7SiPMHitC2EdfjjNS0_7HitTypeEPKS0_(ptr noundef nonnull align 8 dereferenceable(29) %105, double noundef %110, float noundef 1.000000e+00, i32 noundef %112, i32 noundef %114, i8 noundef zeroext 0, ptr noundef null) #5
  store ptr %105, ptr %13, align 8, !tbaa !5
  call void @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %104, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %115 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 3
  %116 = load i32, ptr %115, align 64, !tbaa !20
  %117 = add i32 %116, 1
  store i32 %117, ptr %115, align 64, !tbaa !20
  %118 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 4
  %119 = load i32, ptr %118, align 4, !tbaa !50
  %120 = add i32 %119, 1
  store i32 %120, ptr %118, align 4, !tbaa !50
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %121

121:                                              ; preds = %102, %96
  br label %122

122:                                              ; preds = %121, %95
  %123 = load i32, ptr %11, align 4, !tbaa !11
  %124 = add i32 %123, 1
  store i32 %124, ptr %11, align 4, !tbaa !11
  br label %75, !llvm.loop !53

125:                                              ; preds = %79
  store i32 1, ptr %10, align 4
  br label %183

126:                                              ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %127

127:                                              ; preds = %178, %126
  %128 = load i32, ptr %14, align 4, !tbaa !11
  %129 = load i32, ptr %4, align 4, !tbaa !11
  %130 = icmp ult i32 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %181

132:                                              ; preds = %127
  %133 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 9
  %134 = load i32, ptr %14, align 4, !tbaa !11
  %135 = zext i32 %134 to i64
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %135) #5
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = fcmp olt double %137, 0.000000e+00
  br i1 %138, label %147, label %139

139:                                              ; preds = %132
  %140 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 9
  %141 = load i32, ptr %14, align 4, !tbaa !11
  %142 = zext i32 %141 to i64
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %142) #5
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = load double, ptr %3, align 8, !tbaa !9
  %146 = fcmp ogt double %144, %145
  br i1 %146, label %147, label %148

147:                                              ; preds = %139, %132
  br label %178

148:                                              ; preds = %139
  %149 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 10
  %150 = load i32, ptr %14, align 4, !tbaa !11
  %151 = zext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #5
  %153 = load double, ptr %152, align 8, !tbaa !9
  %154 = call noundef double @_ZNK4sipm10SiPMSensor11evaluatePdeEd(ptr noundef nonnull align 64 dereferenceable(524888) %17, double noundef %153)
  %155 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 2
  %156 = call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %155) #5
  %157 = fcmp ogt double %154, %156
  br i1 %157, label %158, label %177

158:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %159 = call i64 @_ZNK4sipm10SiPMSensor7hitCellEv(ptr noundef nonnull align 64 dereferenceable(524888) %17)
  store i64 %159, ptr %15, align 4
  %160 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %161 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #6
  %162 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 9
  %163 = load i32, ptr %14, align 4, !tbaa !11
  %164 = zext i32 %163 to i64
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %164) #5
  %166 = load double, ptr %165, align 8, !tbaa !9
  %167 = getelementptr inbounds %"struct.sipm::pair", ptr %15, i32 0, i32 0
  %168 = load i32, ptr %167, align 4, !tbaa !17
  %169 = getelementptr inbounds %"struct.sipm::pair", ptr %15, i32 0, i32 1
  %170 = load i32, ptr %169, align 4, !tbaa !19
  call void @_ZN4sipm7SiPMHitC2EdfjjNS0_7HitTypeEPKS0_(ptr noundef nonnull align 8 dereferenceable(29) %161, double noundef %166, float noundef 1.000000e+00, i32 noundef %168, i32 noundef %170, i8 noundef zeroext 0, ptr noundef null) #5
  store ptr %161, ptr %16, align 8, !tbaa !5
  call void @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %160, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %171 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 3
  %172 = load i32, ptr %171, align 64, !tbaa !20
  %173 = add i32 %172, 1
  store i32 %173, ptr %171, align 64, !tbaa !20
  %174 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %17, i32 0, i32 4
  %175 = load i32, ptr %174, align 4, !tbaa !50
  %176 = add i32 %175, 1
  store i32 %176, ptr %174, align 4, !tbaa !50
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %177

177:                                              ; preds = %158, %148
  br label %178

178:                                              ; preds = %177, %147
  %179 = load i32, ptr %14, align 4, !tbaa !11
  %180 = add i32 %179, 1
  store i32 %180, ptr %14, align 4, !tbaa !11
  br label %127, !llvm.loop !54

181:                                              ; preds = %131
  store i32 1, ptr %10, align 4
  br label %183

182:                                              ; preds = %1
  store i32 0, ptr %10, align 4
  br label %183

183:                                              ; preds = %182, %181, %125, %73
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %184 = load i32, ptr %10, align 4
  switch i32 %184, label %186 [
    i32 0, label %185
    i32 1, label %185
  ]

185:                                              ; preds = %183, %183
  ret void

186:                                              ; preds = %183
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK4sipm10SiPMSensor11evaluatePdeEd(ptr noundef nonnull align 64 dereferenceable(524888), double noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK4sipm10SiPMSensor7hitCellEv(ptr noundef nonnull align 64 dereferenceable(524888)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK4sipm14SiPMProperties12signalLengthEv(ptr noundef nonnull align 8 dereferenceable(257)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sipm7SiPMHitC2EdfjjNS0_7HitTypeEPKS0_(ptr noundef nonnull align 8 dereferenceable(29), double noundef, float noundef, i32 noundef, i32 noundef, i8 noundef zeroext, ptr noundef) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK4sipm14SiPMProperties3pdeEv(ptr noundef nonnull align 8 dereferenceable(257)) #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN4sipm14SiPMProperties7PdeTypeE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTSN4sipm7SiPMHit7HitTypeE", !7, i64 0}
!17 = !{!18, !12, i64 0}
!18 = !{!"_ZTSN4sipm4pairIjjEE", !12, i64 0, !12, i64 4}
!19 = !{!18, !12, i64 4}
!20 = !{!21, !12, i64 524736}
!21 = !{!"_ZTSN4sipm10SiPMSensorE", !22, i64 0, !35, i64 320, !12, i64 524736, !12, i64 524740, !12, i64 524744, !12, i64 524748, !12, i64 524752, !12, i64 524756, !37, i64 524760, !37, i64 524784, !41, i64 524808, !45, i64 524832, !49, i64 524856}
!22 = !{!"_ZTSN4sipm14SiPMPropertiesE", !10, i64 0, !10, i64 8, !12, i64 16, !12, i64 20, !23, i64 24, !10, i64 32, !10, i64 40, !12, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !24, i64 160, !10, i64 168, !24, i64 176, !10, i64 184, !10, i64 192, !25, i64 200, !14, i64 248, !34, i64 252, !34, i64 253, !34, i64 254, !34, i64 255, !34, i64 256}
!23 = !{!"_ZTSN4sipm14SiPMProperties15HitDistributionE", !7, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTSSt3mapIddSt4lessIdESaISt4pairIKddEEE", !26, i64 0}
!26 = !{!"_ZTSSt8_Rb_treeIdSt4pairIKddESt10_Select1stIS2_ESt4lessIdESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt8_Rb_treeIdSt4pairIKddESt10_Select1stIS2_ESt4lessIdESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !28, i64 0, !30, i64 8}
!28 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIdEE", !29, i64 0}
!29 = !{!"_ZTSSt4lessIdE"}
!30 = !{!"_ZTSSt15_Rb_tree_header", !31, i64 0, !33, i64 32}
!31 = !{!"_ZTSSt18_Rb_tree_node_base", !32, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!32 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!33 = !{!"long", !7, i64 0}
!34 = !{!"bool", !7, i64 0}
!35 = !{!"_ZTSN4sipm10SiPMRandomE", !36, i64 0}
!36 = !{!"_ZTSN4sipm7SiPMRng15Xorshift256plusE", !7, i64 0, !7, i64 64, !12, i64 524352}
!37 = !{!"_ZTSSt6vectorIdSaIdEE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"_ZTSSt6vectorIPN4sipm7SiPMHitESaIS2_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIPN4sipm7SiPMHitESaIS2_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIPN4sipm7SiPMHitESaIS2_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIPN4sipm7SiPMHitESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!45 = !{!"_ZTSSt6vectorIfSaIfEE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!"_ZTSN4sipm16SiPMAnalogSignalE", !45, i64 0, !10, i64 24}
!50 = !{!21, !12, i64 524740}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.mustprogress"}
!53 = distinct !{!53, !52}
!54 = distinct !{!54, !52}


; 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"

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sipm10SiPMSensor17addPhotoelectronsEv(ptr noundef nonnull align 64 dereferenceable(524888) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = tail call noundef double @_ZNK4sipm14SiPMProperties12signalLengthEv(ptr noundef nonnull align 8 dereferenceable(257) %0)
  %6 = getelementptr inbounds i8, ptr %0, i64 524760
  %7 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %8 = trunc i64 %7 to i32
  %9 = tail call noundef i32 @_ZN4sipm14SiPMProperties7pdeTypeEv(ptr noundef nonnull align 8 dereferenceable(257) %0)
  %10 = getelementptr inbounds i8, ptr %0, i64 524808
  %11 = and i64 %7, 4294967295
  tail call void @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %11)
  switch i32 %9, label %.loopexit [
    i32 0, label %.preheader
    i32 1, label %.preheader30
    i32 2, label %.preheader32
  ]

.preheader32:                                     ; preds = %1
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader32
  %12 = getelementptr inbounds i8, ptr %0, i64 524784
  %13 = getelementptr inbounds i8, ptr %0, i64 320
  %14 = getelementptr inbounds i8, ptr %0, i64 524736
  %wide.trip.count = and i64 %7, 4294967295
  br label %54

.preheader30:                                     ; preds = %1
  %.not39 = icmp eq i32 %8, 0
  br i1 %.not39, label %.loopexit, label %.lr.ph36

.lr.ph36:                                         ; preds = %.preheader30
  %15 = getelementptr inbounds i8, ptr %0, i64 320
  %16 = getelementptr inbounds i8, ptr %0, i64 524736
  %wide.trip.count47 = and i64 %7, 4294967295
  br label %34

.preheader:                                       ; preds = %1
  %.not40 = icmp eq i32 %8, 0
  br i1 %.not40, label %.loopexit, label %.lr.ph38

.lr.ph38:                                         ; preds = %.preheader
  %17 = getelementptr inbounds i8, ptr %0, i64 524736
  %wide.trip.count52 = and i64 %7, 4294967295
  br label %18

18:                                               ; preds = %.lr.ph38, %33
  %indvars.iv49 = phi i64 [ 0, %.lr.ph38 ], [ %indvars.iv.next50, %33 ]
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv49) #5
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = fcmp olt double %20, 0.000000e+00
  br i1 %21, label %33, label %22

22:                                               ; preds = %18
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv49) #5
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = fcmp ogt double %24, %5
  br i1 %25, label %33, label %26

26:                                               ; preds = %22
  %27 = call i64 @_ZNK4sipm10SiPMSensor7hitCellEv(ptr noundef nonnull align 64 dereferenceable(524888) %0)
  %.sroa.013.0.extract.trunc = trunc i64 %27 to i32
  %.sroa.414.0.extract.shift = lshr i64 %27, 32
  %.sroa.414.0.extract.trunc = trunc nuw i64 %.sroa.414.0.extract.shift to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %28 = call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #6
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv49) #5
  %30 = load double, ptr %29, align 8, !tbaa !5
  call void @_ZN4sipm7SiPMHitC2EdfjjNS0_7HitTypeEPKS0_(ptr noundef nonnull align 8 dereferenceable(29) %28, double noundef %30, float noundef 1.000000e+00, i32 noundef %.sroa.013.0.extract.trunc, i32 noundef %.sroa.414.0.extract.trunc, i8 noundef zeroext 0, ptr noundef null) #5
  store ptr %28, ptr %2, align 8, !tbaa !9
  call void @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %31 = load <2 x i32>, ptr %17, align 64, !tbaa !11
  %32 = add <2 x i32> %31, <i32 1, i32 1>
  store <2 x i32> %32, ptr %17, align 64, !tbaa !11
  br label %33

33:                                               ; preds = %18, %22, %26
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %exitcond53.not = icmp eq i64 %indvars.iv.next50, %wide.trip.count52
  br i1 %exitcond53.not, label %.loopexit, label %18, !llvm.loop !13

34:                                               ; preds = %.lr.ph36, %53
  %indvars.iv44 = phi i64 [ 0, %.lr.ph36 ], [ %indvars.iv.next45, %53 ]
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv44) #5
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = fcmp olt double %36, 0.000000e+00
  br i1 %37, label %53, label %38

38:                                               ; preds = %34
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv44) #5
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = fcmp ogt double %40, %5
  br i1 %41, label %53, label %42

42:                                               ; preds = %38
  %43 = call noundef double @_ZNK4sipm14SiPMProperties3pdeEv(ptr noundef nonnull align 8 dereferenceable(257) %0)
  %44 = call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %15) #5
  %45 = fcmp ogt double %43, %44
  br i1 %45, label %46, label %53

46:                                               ; preds = %42
  %47 = call i64 @_ZNK4sipm10SiPMSensor7hitCellEv(ptr noundef nonnull align 64 dereferenceable(524888) %0)
  %.sroa.06.0.extract.trunc = trunc i64 %47 to i32
  %.sroa.47.0.extract.shift = lshr i64 %47, 32
  %.sroa.47.0.extract.trunc = trunc nuw i64 %.sroa.47.0.extract.shift to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %48 = call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #6
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv44) #5
  %50 = load double, ptr %49, align 8, !tbaa !5
  call void @_ZN4sipm7SiPMHitC2EdfjjNS0_7HitTypeEPKS0_(ptr noundef nonnull align 8 dereferenceable(29) %48, double noundef %50, float noundef 1.000000e+00, i32 noundef %.sroa.06.0.extract.trunc, i32 noundef %.sroa.47.0.extract.trunc, i8 noundef zeroext 0, ptr noundef null) #5
  store ptr %48, ptr %3, align 8, !tbaa !9
  call void @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %51 = load <2 x i32>, ptr %16, align 64, !tbaa !11
  %52 = add <2 x i32> %51, <i32 1, i32 1>
  store <2 x i32> %52, ptr %16, align 64, !tbaa !11
  br label %53

53:                                               ; preds = %42, %46, %34, %38
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %exitcond48.not = icmp eq i64 %indvars.iv.next45, %wide.trip.count47
  br i1 %exitcond48.not, label %.loopexit, label %34, !llvm.loop !15

54:                                               ; preds = %.lr.ph, %75
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %75 ]
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = fcmp olt double %56, 0.000000e+00
  br i1 %57, label %75, label %58

58:                                               ; preds = %54
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %60 = load double, ptr %59, align 8, !tbaa !5
  %61 = fcmp ogt double %60, %5
  br i1 %61, label %75, label %62

62:                                               ; preds = %58
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv) #5
  %64 = load double, ptr %63, align 8, !tbaa !5
  %65 = call noundef double @_ZNK4sipm10SiPMSensor11evaluatePdeEd(ptr noundef nonnull align 64 dereferenceable(524888) %0, double noundef %64)
  %66 = call noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416) %13) #5
  %67 = fcmp ogt double %65, %66
  br i1 %67, label %68, label %75

68:                                               ; preds = %62
  %69 = call i64 @_ZNK4sipm10SiPMSensor7hitCellEv(ptr noundef nonnull align 64 dereferenceable(524888) %0)
  %.sroa.0.0.extract.trunc = trunc i64 %69 to i32
  %.sroa.4.0.extract.shift = lshr i64 %69, 32
  %.sroa.4.0.extract.trunc = trunc nuw i64 %.sroa.4.0.extract.shift to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %70 = call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #6
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  %72 = load double, ptr %71, align 8, !tbaa !5
  call void @_ZN4sipm7SiPMHitC2EdfjjNS0_7HitTypeEPKS0_(ptr noundef nonnull align 8 dereferenceable(29) %70, double noundef %72, float noundef 1.000000e+00, i32 noundef %.sroa.0.0.extract.trunc, i32 noundef %.sroa.4.0.extract.trunc, i8 noundef zeroext 0, ptr noundef null) #5
  store ptr %70, ptr %4, align 8, !tbaa !9
  call void @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %73 = load <2 x i32>, ptr %14, align 64, !tbaa !11
  %74 = add <2 x i32> %73, <i32 1, i32 1>
  store <2 x i32> %74, ptr %14, align 64, !tbaa !11
  br label %75

75:                                               ; preds = %62, %68, %54, %58
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %54, !llvm.loop !16

.loopexit:                                        ; preds = %75, %53, %33, %.preheader32, %.preheader30, %.preheader, %1
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK4sipm10SiPMSensor11evaluatePdeEd(ptr noundef nonnull align 64 dereferenceable(524888), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sipm10SiPMRandom4RandIdEET_v(ptr noundef nonnull align 64 dereferenceable(524416)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK4sipm10SiPMSensor7hitCellEv(ptr noundef nonnull align 64 dereferenceable(524888)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK4sipm14SiPMProperties12signalLengthEv(ptr noundef nonnull align 8 dereferenceable(257)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sipm7SiPMHitC2EdfjjNS0_7HitTypeEPKS0_(ptr noundef nonnull align 8 dereferenceable(29), double noundef, float noundef, i32 noundef, i32 noundef, i8 noundef zeroext, ptr noundef) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK4sipm14SiPMProperties3pdeEv(ptr noundef nonnull align 8 dereferenceable(257)) local_unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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