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

; 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::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.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%class.anon = type { i8 }
%"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.sipm::SiPMAnalogSignal" = type { %"class.std::vector.8", double }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 void @_ZN4sipm10SiPMRandom13randGaussianFEffj(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8, ptr noundef nonnull align 64 dereferenceable(524416), float noundef, float noundef, i32 noundef) #2

; 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 @_ZN4sipm10SiPMSensor25calculateSignalAmplitudesEv(ptr noundef nonnull align 64 dereferenceable(524888) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca %"class.std::unordered_map", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.8", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %class.anon, align 1
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %24 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %25 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %24, i32 0, i32 0
  %26 = call noundef double @_ZNK4sipm14SiPMProperties12recoveryTimeEv(ptr noundef nonnull align 8 dereferenceable(257) %25)
  %27 = fdiv double 1.000000e+00, %26
  store double %27, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %4) #7
  call void @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  %28 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %24, i32 0, i32 3
  %29 = load i32, ptr %28, align 64, !tbaa !11
  %30 = zext i32 %29 to i64
  invoke void @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56) %4, i64 noundef %30)
          to label %31 unwind label %45

31:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  %32 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %24, i32 0, i32 2
  %33 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %24, i32 0, i32 0
  %34 = invoke noundef float @_ZNK4sipm14SiPMProperties4ccgvEv(ptr noundef nonnull align 8 dereferenceable(257) %33)
          to label %35 unwind label %49

35:                                               ; preds = %31
  %36 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %24, i32 0, i32 3
  %37 = load i32, ptr %36, align 64, !tbaa !11
  invoke void @_ZN4sipm10SiPMRandom13randGaussianFEffj(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %7, ptr noundef nonnull align 64 dereferenceable(524416) %32, float noundef 1.000000e+00, float noundef %34, i32 noundef %37)
          to label %38 unwind label %49

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !43
  br label %39

39:                                               ; preds = %67, %38
  %40 = load i32, ptr %8, align 4, !tbaa !43
  %41 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %24, i32 0, i32 3
  %42 = load i32, ptr %41, align 64, !tbaa !11
  %43 = icmp ult i32 %40, %42
  br i1 %43, label %53, label %44

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

45:                                               ; preds = %1
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %5, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %6, align 4
  br label %200

49:                                               ; preds = %35, %31
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %5, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %6, align 4
  br label %199

53:                                               ; preds = %39
  %54 = load i32, ptr %8, align 4, !tbaa !43
  %55 = zext i32 %54 to i64
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %55) #7
  %57 = load float, ptr %56, align 4, !tbaa !44
  %58 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %24, i32 0, i32 11
  %59 = load i32, ptr %8, align 4, !tbaa !43
  %60 = zext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #7
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sipm7SiPMHit9amplitudeEv(ptr noundef nonnull align 8 dereferenceable(29) %62)
          to label %64 unwind label %70

64:                                               ; preds = %53
  %65 = load float, ptr %63, align 4, !tbaa !44
  %66 = fmul float %65, %57
  store float %66, ptr %63, align 4, !tbaa !44
  br label %67

67:                                               ; preds = %64
  %68 = load i32, ptr %8, align 4, !tbaa !43
  %69 = add i32 %68, 1
  store i32 %69, ptr %8, align 4, !tbaa !43
  br label %39, !llvm.loop !45

70:                                               ; preds = %53
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %5, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %198

74:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %75 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %24, i32 0, i32 0
  %76 = invoke noundef i32 @_ZNK4sipm14SiPMProperties10nSideCellsEv(ptr noundef nonnull align 8 dereferenceable(257) %75)
          to label %77 unwind label %84

77:                                               ; preds = %74
  store i32 %76, ptr %9, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !43
  br label %78

78:                                               ; preds = %104, %77
  %79 = load i32, ptr %10, align 4, !tbaa !43
  %80 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %24, i32 0, i32 3
  %81 = load i32, ptr %80, align 64, !tbaa !11
  %82 = icmp ult i32 %79, %81
  br i1 %82, label %88, label %83

83:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %111

84:                                               ; preds = %74
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %5, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %6, align 4
  br label %197

88:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %89 = getelementptr inbounds %"class.sipm::SiPMSensor", ptr %24, i32 0, i32 11
  %90 = load i32, ptr %10, align 4, !tbaa !43
  %91 = zext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %91) #7
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  store ptr %93, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = call noundef i32 @_ZNK4sipm7SiPMHit3colEv(ptr noundef nonnull align 8 dereferenceable(29) %94) #7
  %96 = load i32, ptr %9, align 4, !tbaa !43
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = call noundef i32 @_ZNK4sipm7SiPMHit3rowEv(ptr noundef nonnull align 8 dereferenceable(29) %97) #7
  %99 = mul i32 %96, %98
  %100 = add i32 %95, %99
  store i32 %100, ptr %12, align 4, !tbaa !43
  %101 = invoke noundef nonnull align 64 dereferenceable(56) ptr @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %102 unwind label %107

102:                                              ; preds = %88
  invoke void @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE9push_backERKS2_(ptr noundef nonnull align 64 dereferenceable(56) %101, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %103 unwind label %107

103:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %10, align 4, !tbaa !43
  %106 = add i32 %105, 1
  store i32 %106, ptr %10, align 4, !tbaa !43
  br label %78, !llvm.loop !47

107:                                              ; preds = %102, %88
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %5, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %197

111:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr %4, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = call ptr @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %112) #7
  %114 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %14, i32 0, i32 0
  %115 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %114, i32 0, i32 0
  store ptr %113, ptr %115, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  %117 = call ptr @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %116) #7
  %118 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %15, i32 0, i32 0
  %119 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %118, i32 0, i32 0
  store ptr %117, ptr %119, align 8
  br label %120

120:                                              ; preds = %193, %111
  %121 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN4sipm15SiPMSmallVectorIPNS3_7SiPMHitELm4EEEELb0EEESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br i1 %121, label %123, label %122

122:                                              ; preds = %120
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %196

123:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %124 = call noundef nonnull align 64 dereferenceable(128) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN4sipm15SiPMSmallVectorIPNS3_7SiPMHitELm4EEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  store ptr %124, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EKjN4sipm15SiPMSmallVectorIPNS1_7SiPMHitELm4EEEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSA_(ptr noundef nonnull align 64 dereferenceable(128) %125) #7
  store ptr %126, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %127 = load ptr, ptr %17, align 8, !tbaa !5
  %128 = call noundef nonnull align 64 dereferenceable(56) ptr @_ZSt3getILm1EKjN4sipm15SiPMSmallVectorIPNS1_7SiPMHitELm4EEEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSA_(ptr noundef nonnull align 64 dereferenceable(128) %127) #7
  store ptr %128, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  %130 = call noundef i64 @_ZNK4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE4sizeEv(ptr noundef nonnull align 64 dereferenceable(56) %129) #7
  %131 = trunc i64 %130 to i32
  store i32 %131, ptr %20, align 4, !tbaa !43
  %132 = load i32, ptr %20, align 4, !tbaa !43
  %133 = icmp ule i32 %132, 1
  br i1 %133, label %134, label %135

134:                                              ; preds = %123
  store i32 9, ptr %16, align 4
  br label %187

135:                                              ; preds = %123
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = call noundef ptr @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE5beginEv(ptr noundef nonnull align 64 dereferenceable(56) %136) #7
  %138 = load ptr, ptr %19, align 8, !tbaa !5
  %139 = call noundef ptr @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE3endEv(ptr noundef nonnull align 64 dereferenceable(56) %138) #7
  invoke void @"_ZSt4sortIPPN4sipm7SiPMHitEZNS0_10SiPMSensor25calculateSignalAmplitudesEvE3$_0EvT_S6_T0_"(ptr noundef %137, ptr noundef %139)
          to label %140 unwind label %146

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 1, ptr %22, align 4, !tbaa !43
  br label %141

141:                                              ; preds = %179, %140
  %142 = load i32, ptr %22, align 4, !tbaa !43
  %143 = load i32, ptr %20, align 4, !tbaa !43
  %144 = icmp ult i32 %142, %143
  br i1 %144, label %150, label %145

145:                                              ; preds = %141
  store i32 10, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %186

146:                                              ; preds = %135
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %5, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %6, align 4
  br label %195

150:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %151 = load ptr, ptr %19, align 8, !tbaa !5
  %152 = load i32, ptr %22, align 4, !tbaa !43
  %153 = zext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EEixEm(ptr noundef nonnull align 64 dereferenceable(56) %151, i64 noundef %153) #7
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = call noundef double @_ZNK4sipm7SiPMHit4timeEv(ptr noundef nonnull align 8 dereferenceable(29) %155) #7
  %157 = load ptr, ptr %19, align 8, !tbaa !5
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EEixEm(ptr noundef nonnull align 64 dereferenceable(56) %157, i64 noundef 0) #7
  %159 = load ptr, ptr %158, align 8, !tbaa !5
  %160 = call noundef double @_ZNK4sipm7SiPMHit4timeEv(ptr noundef nonnull align 8 dereferenceable(29) %159) #7
  %161 = fsub double %156, %160
  store double %161, ptr %23, align 8, !tbaa !9
  %162 = load double, ptr %23, align 8, !tbaa !9
  %163 = fneg double %162
  %164 = load double, ptr %3, align 8, !tbaa !9
  %165 = fmul double %163, %164
  %166 = call double @exp(double noundef %165) #7
  %167 = fsub double 1.000000e+00, %166
  %168 = load ptr, ptr %19, align 8, !tbaa !5
  %169 = load i32, ptr %22, align 4, !tbaa !43
  %170 = zext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EEixEm(ptr noundef nonnull align 64 dereferenceable(56) %168, i64 noundef %170) #7
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sipm7SiPMHit9amplitudeEv(ptr noundef nonnull align 8 dereferenceable(29) %172)
          to label %174 unwind label %182

174:                                              ; preds = %150
  %175 = load float, ptr %173, align 4, !tbaa !44
  %176 = fpext float %175 to double
  %177 = fmul double %176, %167
  %178 = fptrunc double %177 to float
  store float %178, ptr %173, align 4, !tbaa !44
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %179

179:                                              ; preds = %174
  %180 = load i32, ptr %22, align 4, !tbaa !43
  %181 = add i32 %180, 1
  store i32 %181, ptr %22, align 4, !tbaa !43
  br label %141, !llvm.loop !48

182:                                              ; preds = %150
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %5, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %195

186:                                              ; preds = %145
  store i32 0, ptr %16, align 4
  br label %187

187:                                              ; preds = %186, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  %188 = load i32, ptr %16, align 4
  switch i32 %188, label %190 [
    i32 0, label %189
  ]

189:                                              ; preds = %187
  store i32 0, ptr %16, align 4
  br label %190

190:                                              ; preds = %189, %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %191 = load i32, ptr %16, align 4
  switch i32 %191, label %206 [
    i32 0, label %192
    i32 9, label %193
  ]

192:                                              ; preds = %190
  br label %193

193:                                              ; preds = %192, %190
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjN4sipm15SiPMSmallVectorIPNS3_7SiPMHitELm4EEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %120

195:                                              ; preds = %182, %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %197

196:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void

197:                                              ; preds = %195, %107, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %198

198:                                              ; preds = %197, %70
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %199

199:                                              ; preds = %198, %49
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %200

200:                                              ; preds = %199, %45
  call void @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %201

201:                                              ; preds = %200
  %202 = load ptr, ptr %5, align 8
  %203 = load i32, ptr %6, align 4
  %204 = insertvalue { ptr, i32 } poison, ptr %202, 0
  %205 = insertvalue { ptr, i32 } %204, i32 %203, 1
  resume { ptr, i32 } %205

206:                                              ; preds = %190
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 64 dereferenceable(56) ptr @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE9push_backERKS2_(ptr noundef nonnull align 64 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EKjN4sipm15SiPMSmallVectorIPNS1_7SiPMHitELm4EEEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSA_(ptr noundef nonnull align 64 dereferenceable(128)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 64 dereferenceable(56) ptr @_ZSt3getILm1EKjN4sipm15SiPMSmallVectorIPNS1_7SiPMHitELm4EEEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSA_(ptr noundef nonnull align 64 dereferenceable(128)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE4sizeEv(ptr noundef nonnull align 64 dereferenceable(56)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIPPN4sipm7SiPMHitEZNS0_10SiPMSensor25calculateSignalAmplitudesEvE3$_0EvT_S6_T0_"(ptr noundef, ptr noundef) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #6 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 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { nounwind }

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

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


; 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::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.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 void @_ZN4sipm10SiPMRandom13randGaussianFEffj(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8, ptr noundef nonnull align 64 dereferenceable(524416), float noundef, float noundef, i32 noundef) local_unnamed_addr #2

; 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 @_ZN4sipm10SiPMSensor25calculateSignalAmplitudesEv(ptr noundef nonnull align 64 dereferenceable(524888) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::unordered_map", align 8
  %3 = alloca %"class.std::vector.8", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = tail call noundef double @_ZNK4sipm14SiPMProperties12recoveryTimeEv(ptr noundef nonnull align 8 dereferenceable(257) %0)
  %9 = fdiv double 1.000000e+00, %8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %2) #7
  call void @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #7
  %10 = getelementptr inbounds i8, ptr %0, i64 524736
  %11 = load i32, ptr %10, align 64, !tbaa !5
  %12 = zext i32 %11 to i64
  invoke void @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56) %2, i64 noundef %12)
          to label %13 unwind label %22

13:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  %14 = getelementptr inbounds i8, ptr %0, i64 320
  %15 = call noundef float @_ZNK4sipm14SiPMProperties4ccgvEv(ptr noundef nonnull align 8 dereferenceable(257) %0)
  %16 = load i32, ptr %10, align 64, !tbaa !5
  invoke void @_ZN4sipm10SiPMRandom13randGaussianFEffj(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %3, ptr noundef nonnull align 64 dereferenceable(524416) %14, float noundef 1.000000e+00, float noundef %15, i32 noundef %16)
          to label %.preheader40 unwind label %24

.preheader40:                                     ; preds = %13
  %17 = load i32, ptr %10, align 64, !tbaa !5
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader40
  %18 = getelementptr inbounds i8, ptr %0, i64 524808
  br label %26

._crit_edge:                                      ; preds = %26, %.preheader40
  %19 = call noundef i32 @_ZNK4sipm14SiPMProperties10nSideCellsEv(ptr noundef nonnull align 8 dereferenceable(257) %0)
  %20 = load i32, ptr %10, align 64, !tbaa !5
  %.not51 = icmp eq i32 %20, 0
  br i1 %.not51, label %._crit_edge45, label %.lr.ph44

.lr.ph44:                                         ; preds = %._crit_edge
  %21 = getelementptr inbounds i8, ptr %0, i64 524808
  br label %40

22:                                               ; preds = %1
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %89

24:                                               ; preds = %13
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %88

26:                                               ; preds = %.lr.ph, %26
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %26 ]
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #7
  %28 = load float, ptr %27, align 4, !tbaa !41
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv) #7
  %30 = load ptr, ptr %29, align 8, !tbaa !42
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sipm7SiPMHit9amplitudeEv(ptr noundef nonnull align 8 dereferenceable(29) %30)
  %32 = load float, ptr %31, align 4, !tbaa !41
  %33 = fmul float %28, %32
  store float %33, ptr %31, align 4, !tbaa !41
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = load i32, ptr %10, align 64, !tbaa !5
  %35 = zext i32 %34 to i64
  %36 = icmp ult i64 %indvars.iv.next, %35
  br i1 %36, label %26, label %._crit_edge, !llvm.loop !43

._crit_edge45:                                    ; preds = %50, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %37 = call ptr @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #7
  store ptr %37, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %38 = call ptr @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %2) #7
  store ptr %38, ptr %7, align 8
  %39 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN4sipm15SiPMSmallVectorIPNS3_7SiPMHitELm4EEEELb0EEESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %39, label %.lr.ph49, label %._crit_edge50

40:                                               ; preds = %.lr.ph44, %50
  %indvars.iv53 = phi i64 [ 0, %.lr.ph44 ], [ %indvars.iv.next54, %50 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sipm7SiPMHitESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %indvars.iv53) #7
  %42 = load ptr, ptr %41, align 8, !tbaa !42
  store ptr %42, ptr %4, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %43 = call noundef i32 @_ZNK4sipm7SiPMHit3colEv(ptr noundef nonnull align 8 dereferenceable(29) %42) #7
  %44 = load ptr, ptr %4, align 8, !tbaa !42
  %45 = call noundef i32 @_ZNK4sipm7SiPMHit3rowEv(ptr noundef nonnull align 8 dereferenceable(29) %44) #7
  %46 = mul i32 %45, %19
  %47 = add i32 %46, %43
  store i32 %47, ptr %5, align 4, !tbaa !45
  %48 = invoke noundef nonnull align 64 dereferenceable(56) ptr @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %49 unwind label %54

49:                                               ; preds = %40
  invoke void @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE9push_backERKS2_(ptr noundef nonnull align 64 dereferenceable(56) %48, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %50 unwind label %54

50:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %51 = load i32, ptr %10, align 64, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = icmp ult i64 %indvars.iv.next54, %52
  br i1 %53, label %40, label %._crit_edge45, !llvm.loop !46

54:                                               ; preds = %49, %40
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %87

._crit_edge50:                                    ; preds = %.loopexit, %._crit_edge45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #7
  ret void

.lr.ph49:                                         ; preds = %._crit_edge45, %.loopexit
  %56 = call noundef nonnull align 64 dereferenceable(128) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN4sipm15SiPMSmallVectorIPNS3_7SiPMHitELm4EEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EKjN4sipm15SiPMSmallVectorIPNS1_7SiPMHitELm4EEEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSA_(ptr noundef nonnull align 64 dereferenceable(128) %56) #7
  %58 = call noundef nonnull align 64 dereferenceable(56) ptr @_ZSt3getILm1EKjN4sipm15SiPMSmallVectorIPNS1_7SiPMHitELm4EEEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSA_(ptr noundef nonnull align 64 dereferenceable(128) %56) #7
  %59 = call noundef i64 @_ZNK4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE4sizeEv(ptr noundef nonnull align 64 dereferenceable(56) %58) #7
  %60 = and i64 %59, 4294967294
  %61 = icmp eq i64 %60, 0
  br i1 %61, label %.loopexit, label %62

62:                                               ; preds = %.lr.ph49
  %63 = call noundef ptr @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE5beginEv(ptr noundef nonnull align 64 dereferenceable(56) %58) #7
  %64 = call noundef ptr @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE3endEv(ptr noundef nonnull align 64 dereferenceable(56) %58) #7
  invoke void @"_ZSt4sortIPPN4sipm7SiPMHitEZNS0_10SiPMSensor25calculateSignalAmplitudesEvE3$_0EvT_S6_T0_"(ptr noundef %63, ptr noundef %64)
          to label %.lr.ph47.preheader unwind label %65

.lr.ph47.preheader:                               ; preds = %62
  %wide.trip.count = and i64 %59, 4294967295
  br label %.lr.ph47

65:                                               ; preds = %62
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %87

.lr.ph47:                                         ; preds = %.lr.ph47.preheader, %.lr.ph47
  %indvars.iv56 = phi i64 [ 1, %.lr.ph47.preheader ], [ %indvars.iv.next57, %.lr.ph47 ]
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EEixEm(ptr noundef nonnull align 64 dereferenceable(56) %58, i64 noundef %indvars.iv56) #7
  %68 = load ptr, ptr %67, align 8, !tbaa !42
  %69 = call noundef double @_ZNK4sipm7SiPMHit4timeEv(ptr noundef nonnull align 8 dereferenceable(29) %68) #7
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EEixEm(ptr noundef nonnull align 64 dereferenceable(56) %58, i64 noundef 0) #7
  %71 = load ptr, ptr %70, align 8, !tbaa !42
  %72 = call noundef double @_ZNK4sipm7SiPMHit4timeEv(ptr noundef nonnull align 8 dereferenceable(29) %71) #7
  %73 = fsub double %69, %72
  %74 = fneg double %73
  %75 = fmul double %9, %74
  %76 = call double @exp(double noundef %75) #7
  %77 = fsub double 1.000000e+00, %76
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EEixEm(ptr noundef nonnull align 64 dereferenceable(56) %58, i64 noundef %indvars.iv56) #7
  %79 = load ptr, ptr %78, align 8, !tbaa !42
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sipm7SiPMHit9amplitudeEv(ptr noundef nonnull align 8 dereferenceable(29) %79)
  %81 = load float, ptr %80, align 4, !tbaa !41
  %82 = fpext float %81 to double
  %83 = fmul double %77, %82
  %84 = fptrunc double %83 to float
  store float %84, ptr %80, align 4, !tbaa !41
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next57, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph47, !llvm.loop !47

.loopexit:                                        ; preds = %.lr.ph47, %.lr.ph49
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKjN4sipm15SiPMSmallVectorIPNS3_7SiPMHitELm4EEEELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %86 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN4sipm15SiPMSmallVectorIPNS3_7SiPMHitELm4EEEELb0EEESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %86, label %.lr.ph49, label %._crit_edge50

87:                                               ; preds = %65, %54
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %66, %65 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  br label %88

88:                                               ; preds = %87, %24
  %.pn.pn = phi { ptr, i32 } [ %.pn, %87 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  br label %89

89:                                               ; preds = %88, %22
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %88 ], [ %23, %22 ]
  call void @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %2) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn.pn.pn
}

; 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 noundef i32 @_ZNK4sipm14SiPMProperties10nSideCellsEv(ptr noundef nonnull align 8 dereferenceable(257)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 64 dereferenceable(56) ptr @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE9push_backERKS2_(ptr noundef nonnull align 64 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKjN4sipm15SiPMSmallVectorIPNS3_7SiPMHitELm4EEEELb0EEESB_(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 noundef nonnull align 64 dereferenceable(128) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN4sipm15SiPMSmallVectorIPNS3_7SiPMHitELm4EEEELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EKjN4sipm15SiPMSmallVectorIPNS1_7SiPMHitELm4EEEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSA_(ptr noundef nonnull align 64 dereferenceable(128)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 64 dereferenceable(56) ptr @_ZSt3getILm1EKjN4sipm15SiPMSmallVectorIPNS1_7SiPMHitELm4EEEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSA_(ptr noundef nonnull align 64 dereferenceable(128)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4sipm15SiPMSmallVectorIPNS_7SiPMHitELm4EE4sizeEv(ptr noundef nonnull align 64 dereferenceable(56)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIPPN4sipm7SiPMHitEZNS0_10SiPMSensor25calculateSignalAmplitudesEvE3$_0EvT_S6_T0_"(ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapIjN4sipm15SiPMSmallVectorIPNS0_7SiPMHitELm4EEESt4hashIjESt8equal_toIjESaISt4pairIKjS4_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #6 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 = { "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 = { 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 = { 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 #6 = { 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 #7 = { 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, !11, i64 524736}
!6 = !{!"_ZTSN4sipm10SiPMSensorE", !7, i64 0, !26, i64 320, !11, i64 524736, !11, i64 524740, !11, i64 524744, !11, i64 524748, !11, i64 524752, !11, i64 524756, !28, i64 524760, !28, i64 524784, !32, i64 524808, !36, i64 524832, !40, i64 524856}
!7 = !{!"_ZTSN4sipm14SiPMPropertiesE", !8, i64 0, !8, i64 8, !11, i64 16, !11, i64 20, !12, i64 24, !8, i64 32, !8, i64 40, !11, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112, !8, i64 120, !8, i64 128, !8, i64 136, !8, i64 144, !8, i64 152, !13, i64 160, !8, i64 168, !13, i64 176, !8, i64 184, !8, i64 192, !14, i64 200, !24, i64 248, !25, i64 252, !25, i64 253, !25, i64 254, !25, i64 255, !25, i64 256}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSN4sipm14SiPMProperties15HitDistributionE", !9, i64 0}
!13 = !{!"float", !9, i64 0}
!14 = !{!"_ZTSSt3mapIddSt4lessIdESaISt4pairIKddEEE", !15, i64 0}
!15 = !{!"_ZTSSt8_Rb_treeIdSt4pairIKddESt10_Select1stIS2_ESt4lessIdESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt8_Rb_treeIdSt4pairIKddESt10_Select1stIS2_ESt4lessIdESaIS2_EE13_Rb_tree_implIS6_Lb1EEE", !17, i64 0, !19, i64 8}
!17 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIdEE", !18, i64 0}
!18 = !{!"_ZTSSt4lessIdE"}
!19 = !{!"_ZTSSt15_Rb_tree_header", !20, i64 0, !23, i64 32}
!20 = !{!"_ZTSSt18_Rb_tree_node_base", !21, i64 0, !22, i64 8, !22, i64 16, !22, i64 24}
!21 = !{!"_ZTSSt14_Rb_tree_color", !9, i64 0}
!22 = !{!"any pointer", !9, i64 0}
!23 = !{!"long", !9, i64 0}
!24 = !{!"_ZTSN4sipm14SiPMProperties7PdeTypeE", !9, i64 0}
!25 = !{!"bool", !9, i64 0}
!26 = !{!"_ZTSN4sipm10SiPMRandomE", !27, i64 0}
!27 = !{!"_ZTSN4sipm7SiPMRng15Xorshift256plusE", !9, i64 0, !9, i64 64, !11, i64 524352}
!28 = !{!"_ZTSSt6vectorIdSaIdEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!32 = !{!"_ZTSSt6vectorIPN4sipm7SiPMHitESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPN4sipm7SiPMHitESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPN4sipm7SiPMHitESaIS2_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPN4sipm7SiPMHitESaIS2_EE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!36 = !{!"_ZTSSt6vectorIfSaIfEE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!40 = !{!"_ZTSN4sipm16SiPMAnalogSignalE", !36, i64 0, !8, i64 24}
!41 = !{!13, !13, i64 0}
!42 = !{!22, !22, i64 0}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = !{!11, !11, i64 0}
!46 = distinct !{!46, !44}
!47 = distinct !{!47, !44}


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