; LLVM IR from sp-nitech/SPTK :: third_party/REAPER/epoch_tracker (epoch_tracker)

; 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.sptk::reaper::EpochTracker" = type <{ ptr, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5", float, float, float, i32, i32, i32, %"class.std::__cxx11::basic_string", float, float, float, float, i8, i8, [2 x i8], float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sptk::reaper::EpochTracker::ResidPeak, std::allocator<sptk::reaper::EpochTracker::ResidPeak>>::_Vector_impl" }
%"struct.std::_Vector_base<sptk::reaper::EpochTracker::ResidPeak, std::allocator<sptk::reaper::EpochTracker::ResidPeak>>::_Vector_impl" = type { %"struct.std::_Vector_base<sptk::reaper::EpochTracker::ResidPeak, std::allocator<sptk::reaper::EpochTracker::ResidPeak>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sptk::reaper::EpochTracker::ResidPeak, std::allocator<sptk::reaper::EpochTracker::ResidPeak>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<sptk::reaper::EpochTracker::TrackerResults, std::allocator<sptk::reaper::EpochTracker::TrackerResults>>::_Vector_impl" }
%"struct.std::_Vector_base<sptk::reaper::EpochTracker::TrackerResults, std::allocator<sptk::reaper::EpochTracker::TrackerResults>>::_Vector_impl" = type { %"struct.std::_Vector_base<sptk::reaper::EpochTracker::TrackerResults, std::allocator<sptk::reaper::EpochTracker::TrackerResults>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sptk::reaper::EpochTracker::TrackerResults, std::allocator<sptk::reaper::EpochTracker::TrackerResults>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.sptk::reaper::EpochTracker::ResidPeak" = type { i32, i32, float, %"class.std::vector.5", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.18" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl" }
%"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl" = type { %"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<sptk::reaper::EpochTracker::EpochCand *, std::allocator<sptk::reaper::EpochTracker::EpochCand *>>::_Vector_impl" }
%"struct.std::_Vector_base<sptk::reaper::EpochTracker::EpochCand *, std::allocator<sptk::reaper::EpochTracker::EpochCand *>>::_Vector_impl" = type { %"struct.std::_Vector_base<sptk::reaper::EpochTracker::EpochCand *, std::allocator<sptk::reaper::EpochTracker::EpochCand *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sptk::reaper::EpochTracker::EpochCand *, std::allocator<sptk::reaper::EpochTracker::EpochCand *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 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
declare dso_local void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4sptk6reaper12EpochTracker13FindNccfPeaksERKSt6vectorIfSaIfEEfPS2_IsSaIsEE(ptr noundef nonnull align 8 dereferenceable(500), ptr noundef nonnull align 8 dereferenceable(24), float noundef, ptr noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper12EpochTracker20GetPulseCorrelationsEff(ptr noundef nonnull align 8 dereferenceable(500) %0, float noundef %1, float noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector.5", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store float %2, ptr %6, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8
  %26 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 13
  %27 = load float, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 23
  %29 = load float, ptr %28, align 4, !tbaa !30
  %30 = fdiv float %27, %29
  %31 = call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %30)
  %32 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 17
  store i32 %31, ptr %32, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %33 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 13
  %34 = load float, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 22
  %36 = load float, ptr %35, align 8, !tbaa !32
  %37 = fdiv float %34, %36
  %38 = call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %37)
  store i32 %38, ptr %7, align 4, !tbaa !33
  %39 = load i32, ptr %7, align 4, !tbaa !33
  %40 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 17
  %41 = load i32, ptr %40, align 8, !tbaa !31
  %42 = sub nsw i32 %39, %41
  %43 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 18
  store i32 %42, ptr %43, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %44 = load float, ptr %5, align 4, !tbaa !9
  %45 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 13
  %46 = load float, ptr %45, align 8, !tbaa !11
  %47 = fmul float %44, %46
  %48 = call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %47)
  store i32 %48, ptr %8, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %49 = load i32, ptr %8, align 4, !tbaa !33
  %50 = sdiv i32 %49, 2
  store i32 %50, ptr %9, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %51 = load i32, ptr %8, align 4, !tbaa !33
  %52 = load i32, ptr %7, align 4, !tbaa !33
  %53 = add nsw i32 %51, %52
  store i32 %53, ptr %10, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %54 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 4
  %55 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #5
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %55)
          to label %56 unwind label %63

56:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store float 0x3F50624DE0000000, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store float 0x3FE6666660000000, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store float 0x3FD3333340000000, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !35
  br label %57

57:                                               ; preds = %80, %56
  %58 = load i64, ptr %17, align 8, !tbaa !35
  %59 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 4
  %60 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #5
  %61 = icmp ult i64 %58, %60
  br i1 %61, label %67, label %62

62:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %83

63:                                               ; preds = %3
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %12, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %13, align 4
  br label %212

67:                                               ; preds = %57
  %68 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 4
  %69 = load i64, ptr %17, align 8, !tbaa !35
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %69) #5
  %71 = load float, ptr %70, align 4, !tbaa !9
  %72 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 3
  %73 = load i64, ptr %17, align 8, !tbaa !35
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %73) #5
  %75 = load float, ptr %74, align 4, !tbaa !9
  %76 = fmul float 0x3FD3333340000000, %75
  %77 = call float @llvm.fmuladd.f32(float 0x3FE6666660000000, float %71, float %76)
  %78 = load i64, ptr %17, align 8, !tbaa !35
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %78) #5
  store float %77, ptr %79, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %67
  %81 = load i64, ptr %17, align 8, !tbaa !35
  %82 = add i64 %81, 1
  store i64 %82, ptr %17, align 8, !tbaa !35
  br label %57, !llvm.loop !36

83:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %84 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 13
  %85 = load float, ptr %84, align 8, !tbaa !11
  %86 = fmul float %85, 0x3F50624DE0000000
  %87 = invoke noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %86)
          to label %88 unwind label %100

88:                                               ; preds = %83
  store i32 %87, ptr %18, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %89 = load i32, ptr %18, align 4, !tbaa !33
  %90 = sitofp i32 %89 to double
  %91 = fmul double 2.000000e+00, %90
  %92 = fneg double %91
  %93 = fptosi double %92 to i32
  store i32 %93, ptr %19, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 0, ptr %20, align 8, !tbaa !35
  br label %94

94:                                               ; preds = %207, %88
  %95 = load i64, ptr %20, align 8, !tbaa !35
  %96 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %97 = call noundef i64 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #5
  %98 = icmp ult i64 %95, %97
  br i1 %98, label %104, label %99

99:                                               ; preds = %94
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %210

100:                                              ; preds = %83
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %12, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %13, align 4
  br label %211

104:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %105 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %106 = load i64, ptr %20, align 8, !tbaa !35
  %107 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %106) #5
  %108 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 8, !tbaa !38
  %110 = load i32, ptr %9, align 4, !tbaa !33
  %111 = sub nsw i32 %109, %110
  store i32 %111, ptr %22, align 4, !tbaa !33
  %112 = load i32, ptr %22, align 4, !tbaa !33
  %113 = icmp slt i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %104
  store i32 0, ptr %22, align 4, !tbaa !33
  br label %115

115:                                              ; preds = %114, %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %116 = load i32, ptr %22, align 4, !tbaa !33
  %117 = load i32, ptr %10, align 4, !tbaa !33
  %118 = add nsw i32 %116, %117
  %119 = sext i32 %118 to i64
  store i64 %119, ptr %23, align 8, !tbaa !35
  %120 = load i64, ptr %23, align 8, !tbaa !35
  %121 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %122 = icmp uge i64 %120, %121
  br i1 %122, label %129, label %123

123:                                              ; preds = %115
  %124 = load i32, ptr %22, align 4, !tbaa !33
  %125 = load i32, ptr %19, align 4, !tbaa !33
  %126 = sub nsw i32 %124, %125
  %127 = load i32, ptr %18, align 4, !tbaa !33
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %129, label %156

129:                                              ; preds = %123, %115
  %130 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %131 = load i64, ptr %20, align 8, !tbaa !35
  %132 = sub i64 %131, 1
  %133 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %132) #5
  %134 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %133, i32 0, i32 3
  %135 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %136 = load i64, ptr %20, align 8, !tbaa !35
  %137 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %136) #5
  %138 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %137, i32 0, i32 3
  %139 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIfSaIfEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %138, ptr noundef nonnull align 8 dereferenceable(24) %134)
          to label %140 unwind label %152

140:                                              ; preds = %129
  %141 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %142 = load i64, ptr %20, align 8, !tbaa !35
  %143 = sub i64 %142, 1
  %144 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %143) #5
  %145 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %144, i32 0, i32 4
  %146 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %147 = load i64, ptr %20, align 8, !tbaa !35
  %148 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %147) #5
  %149 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %148, i32 0, i32 4
  %150 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIsSaIsEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %149, ptr noundef nonnull align 8 dereferenceable(24) %145)
          to label %151 unwind label %152

151:                                              ; preds = %140
  br label %206

152:                                              ; preds = %167, %156, %140, %129
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %12, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %211

156:                                              ; preds = %123
  %157 = load i32, ptr %22, align 4, !tbaa !33
  %158 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 17
  %159 = load i32, ptr %158, align 8, !tbaa !31
  %160 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 18
  %161 = load i32, ptr %160, align 4, !tbaa !34
  %162 = load i32, ptr %8, align 4, !tbaa !33
  %163 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %164 = load i64, ptr %20, align 8, !tbaa !35
  %165 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %163, i64 noundef %164) #5
  %166 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %165, i32 0, i32 3
  invoke void @_ZN4sptk6reaper12EpochTracker16CrossCorrelationERKSt6vectorIfSaIfEEiiiiPS4_(ptr noundef nonnull align 8 dereferenceable(500) %25, ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef %157, i32 noundef %159, i32 noundef %161, i32 noundef %162, ptr noundef %166)
          to label %167 unwind label %152

167:                                              ; preds = %156
  %168 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %169 = load i64, ptr %20, align 8, !tbaa !35
  %170 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %169) #5
  %171 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %170, i32 0, i32 3
  %172 = load float, ptr %6, align 4, !tbaa !9
  %173 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %174 = load i64, ptr %20, align 8, !tbaa !35
  %175 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %174) #5
  %176 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %175, i32 0, i32 4
  %177 = invoke noundef i32 @_ZN4sptk6reaper12EpochTracker13FindNccfPeaksERKSt6vectorIfSaIfEEfPS2_IsSaIsEE(ptr noundef nonnull align 8 dereferenceable(500) %25, ptr noundef nonnull align 8 dereferenceable(24) %171, float noundef %172, ptr noundef %176)
          to label %178 unwind label %152

178:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store i64 0, ptr %24, align 8, !tbaa !35
  br label %179

179:                                              ; preds = %201, %178
  %180 = load i64, ptr %24, align 8, !tbaa !35
  %181 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %182 = load i64, ptr %20, align 8, !tbaa !35
  %183 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %182) #5
  %184 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %183, i32 0, i32 4
  %185 = call noundef i64 @_ZNKSt6vectorIsSaIsEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %184) #5
  %186 = icmp ult i64 %180, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %179
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %204

188:                                              ; preds = %179
  %189 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 17
  %190 = load i32, ptr %189, align 8, !tbaa !31
  %191 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %25, i32 0, i32 1
  %192 = load i64, ptr %20, align 8, !tbaa !35
  %193 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef %192) #5
  %194 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %193, i32 0, i32 4
  %195 = load i64, ptr %24, align 8, !tbaa !35
  %196 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorIsSaIsEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %195) #5
  %197 = load i16, ptr %196, align 2, !tbaa !48
  %198 = sext i16 %197 to i32
  %199 = add nsw i32 %198, %190
  %200 = trunc i32 %199 to i16
  store i16 %200, ptr %196, align 2, !tbaa !48
  br label %201

201:                                              ; preds = %188
  %202 = load i64, ptr %24, align 8, !tbaa !35
  %203 = add i64 %202, 1
  store i64 %203, ptr %24, align 8, !tbaa !35
  br label %179, !llvm.loop !50

204:                                              ; preds = %187
  %205 = load i32, ptr %22, align 4, !tbaa !33
  store i32 %205, ptr %19, align 4, !tbaa !33
  br label %206

206:                                              ; preds = %204, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %207

207:                                              ; preds = %206
  %208 = load i64, ptr %20, align 8, !tbaa !35
  %209 = add i64 %208, 1
  store i64 %209, ptr %20, align 8, !tbaa !35
  br label %94, !llvm.loop !51

210:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void

211:                                              ; preds = %152, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %212

212:                                              ; preds = %211, %63
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %12, align 8
  %215 = load i32, ptr %13, align 4
  %216 = insertvalue { ptr, i32 } poison, ptr %214, 0
  %217 = insertvalue { ptr, i32 } %216, i32 %215, 1
  resume { ptr, i32 } %217
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 296}
!12 = !{!"_ZTSN4sptk6reaper12EpochTrackerE", !13, i64 8, !17, i64 32, !21, i64 56, !21, i64 80, !21, i64 104, !21, i64 128, !21, i64 152, !21, i64 176, !21, i64 200, !21, i64 224, !21, i64 248, !21, i64 272, !10, i64 296, !10, i64 300, !10, i64 304, !25, i64 308, !25, i64 312, !25, i64 316, !26, i64 320, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !29, i64 368, !29, i64 369, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496}
!13 = !{!"_ZTSSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIfSaIfEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"int", !7, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !28, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"bool", !7, i64 0}
!30 = !{!12, !10, i64 364}
!31 = !{!12, !25, i64 312}
!32 = !{!12, !10, i64 360}
!33 = !{!25, !25, i64 0}
!34 = !{!12, !25, i64 316}
!35 = !{!28, !28, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!39, !25, i64 0}
!39 = !{!"_ZTSN4sptk6reaper12EpochTracker9ResidPeakE", !25, i64 0, !25, i64 4, !10, i64 8, !21, i64 16, !40, i64 40, !44, i64 64, !44, i64 88}
!40 = !{!"_ZTSSt6vectorIsSaIsEE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIsSaIsEE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!"_ZTSSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!49, !49, i64 0}
!49 = !{!"short", !7, i64 0}
!50 = distinct !{!50, !37}
!51 = distinct !{!51, !37}


; 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 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
declare dso_local void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4sptk6reaper12EpochTracker13FindNccfPeaksERKSt6vectorIfSaIfEEfPS2_IsSaIsEE(ptr noundef nonnull align 8 dereferenceable(500), ptr noundef nonnull align 8 dereferenceable(24), float noundef, ptr noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper12EpochTracker20GetPulseCorrelationsEff(ptr noundef nonnull align 8 dereferenceable(500) %0, float noundef %1, float noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.5", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 296
  %6 = load float, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 364
  %8 = load float, ptr %7, align 4, !tbaa !28
  %9 = fdiv float %6, %8
  %10 = tail call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %9)
  %11 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 %10, ptr %11, align 8, !tbaa !29
  %12 = load float, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 360
  %14 = load float, ptr %13, align 8, !tbaa !30
  %15 = fdiv float %12, %14
  %16 = tail call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %15)
  %17 = load i32, ptr %11, align 8, !tbaa !29
  %18 = sub nsw i32 %16, %17
  %19 = getelementptr inbounds i8, ptr %0, i64 316
  store i32 %18, ptr %19, align 4, !tbaa !31
  %20 = load float, ptr %5, align 8, !tbaa !5
  %21 = fmul float %20, %1
  %22 = tail call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %21)
  %.neg = sdiv i32 %22, -2
  %23 = add nsw i32 %22, %16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  %25 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %25)
          to label %.preheader47 unwind label %34

.preheader47:                                     ; preds = %3
  %26 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %.not56 = icmp eq i64 %26, 0
  br i1 %.not56, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader47
  %27 = getelementptr inbounds i8, ptr %0, i64 56
  br label %36

._crit_edge:                                      ; preds = %36, %.preheader47
  %28 = load float, ptr %5, align 8, !tbaa !5
  %29 = fmul float %28, 0x3F50624DE0000000
  %30 = call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %29)
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = call noundef i64 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %.not57 = icmp eq i64 %32, 0
  br i1 %.not57, label %._crit_edge55, label %.lr.ph54.preheader

.lr.ph54.preheader:                               ; preds = %._crit_edge
  %33 = mul i32 %30, -2
  br label %.lr.ph54

34:                                               ; preds = %3
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %99

36:                                               ; preds = %.lr.ph, %36
  %.04448 = phi i64 [ 0, %.lr.ph ], [ %44, %36 ]
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %.04448) #6
  %38 = load float, ptr %37, align 4, !tbaa !32
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %.04448) #6
  %40 = load float, ptr %39, align 4, !tbaa !32
  %41 = fmul float %40, 0x3FD3333340000000
  %42 = call float @llvm.fmuladd.f32(float %38, float 0x3FE6666660000000, float %41)
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.04448) #6
  store float %42, ptr %43, align 4, !tbaa !32
  %44 = add nuw i64 %.04448, 1
  %45 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %36, label %._crit_edge, !llvm.loop !33

._crit_edge55:                                    ; preds = %.loopexit, %._crit_edge
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret void

.lr.ph54:                                         ; preds = %.lr.ph54.preheader, %.loopexit
  %.04152 = phi i64 [ %96, %.loopexit ], [ 0, %.lr.ph54.preheader ]
  %.04251 = phi i32 [ %.1, %.loopexit ], [ %33, %.lr.ph54.preheader ]
  %47 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.04152) #6
  %48 = load i32, ptr %47, align 8, !tbaa !35
  %49 = add i32 %48, %.neg
  %spec.store.select = call i32 @llvm.smax.i32(i32 %49, i32 0)
  %50 = add nsw i32 %23, %spec.store.select
  %51 = sext i32 %50 to i64
  %52 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %.not = icmp ule i64 %52, %51
  %53 = sub nsw i32 %spec.store.select, %.04251
  %54 = icmp slt i32 %53, %30
  %or.cond = select i1 %.not, i1 true, i1 %54
  br i1 %or.cond, label %55, label %70

55:                                               ; preds = %.lr.ph54
  %56 = add i64 %.04152, -1
  %57 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %56) #6
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %59 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.04152) #6
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %61 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIfSaIfEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(24) %58)
          to label %62 unwind label %68

62:                                               ; preds = %55
  %63 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %56) #6
  %64 = getelementptr inbounds i8, ptr %63, i64 40
  %65 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.04152) #6
  %66 = getelementptr inbounds i8, ptr %65, i64 40
  %67 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIsSaIsEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 8 dereferenceable(24) %64)
          to label %.loopexit unwind label %68

68:                                               ; preds = %75, %70, %62, %55
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %99

70:                                               ; preds = %.lr.ph54
  %71 = load i32, ptr %11, align 8, !tbaa !29
  %72 = load i32, ptr %19, align 4, !tbaa !31
  %73 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.04152) #6
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  invoke void @_ZN4sptk6reaper12EpochTracker16CrossCorrelationERKSt6vectorIfSaIfEEiiiiPS4_(ptr noundef nonnull align 8 dereferenceable(500) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %spec.store.select, i32 noundef %71, i32 noundef %72, i32 noundef %22, ptr noundef nonnull %74)
          to label %75 unwind label %68

75:                                               ; preds = %70
  %76 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.04152) #6
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  %78 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.04152) #6
  %79 = getelementptr inbounds i8, ptr %78, i64 40
  %80 = invoke noundef i32 @_ZN4sptk6reaper12EpochTracker13FindNccfPeaksERKSt6vectorIfSaIfEEfPS2_IsSaIsEE(ptr noundef nonnull align 8 dereferenceable(500) %0, ptr noundef nonnull align 8 dereferenceable(24) %77, float noundef %2, ptr noundef nonnull %79)
          to label %.preheader unwind label %68

.preheader:                                       ; preds = %75
  %81 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.04152) #6
  %82 = getelementptr inbounds i8, ptr %81, i64 40
  %83 = call noundef i64 @_ZNKSt6vectorIsSaIsEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #6
  %.not58 = icmp eq i64 %83, 0
  br i1 %.not58, label %.loopexit, label %.lr.ph50

.lr.ph50:                                         ; preds = %.preheader, %.lr.ph50
  %.049 = phi i64 [ %91, %.lr.ph50 ], [ 0, %.preheader ]
  %84 = load i32, ptr %11, align 8, !tbaa !29
  %85 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.04152) #6
  %86 = getelementptr inbounds i8, ptr %85, i64 40
  %87 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorIsSaIsEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %.049) #6
  %88 = load i16, ptr %87, align 2, !tbaa !45
  %89 = trunc i32 %84 to i16
  %90 = add i16 %88, %89
  store i16 %90, ptr %87, align 2, !tbaa !45
  %91 = add nuw i64 %.049, 1
  %92 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %.04152) #6
  %93 = getelementptr inbounds i8, ptr %92, i64 40
  %94 = call noundef i64 @_ZNKSt6vectorIsSaIsEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #6
  %95 = icmp ult i64 %91, %94
  br i1 %95, label %.lr.ph50, label %.loopexit, !llvm.loop !47

.loopexit:                                        ; preds = %.lr.ph50, %.preheader, %62
  %.1 = phi i32 [ %.04251, %62 ], [ %spec.store.select, %.preheader ], [ %spec.store.select, %.lr.ph50 ]
  %96 = add nuw i64 %.04152, 1
  %97 = call noundef i64 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %98 = icmp ult i64 %96, %97
  br i1 %98, label %.lr.ph54, label %._crit_edge55, !llvm.loop !48

99:                                               ; preds = %68, %34
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %35, %34 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !22, i64 296}
!6 = !{!"_ZTSN4sptk6reaper12EpochTrackerE", !7, i64 8, !14, i64 32, !18, i64 56, !18, i64 80, !18, i64 104, !18, i64 128, !18, i64 152, !18, i64 176, !18, i64 200, !18, i64 224, !18, i64 248, !18, i64 272, !22, i64 296, !22, i64 300, !22, i64 304, !23, i64 308, !23, i64 312, !23, i64 316, !24, i64 320, !22, i64 352, !22, i64 356, !22, i64 360, !22, i64 364, !27, i64 368, !27, i64 369, !22, i64 372, !22, i64 376, !22, i64 380, !22, i64 384, !22, i64 388, !22, i64 392, !22, i64 396, !22, i64 400, !22, i64 404, !22, i64 408, !22, i64 412, !22, i64 416, !22, i64 420, !22, i64 424, !22, i64 428, !22, i64 432, !22, i64 436, !22, i64 440, !22, i64 444, !22, i64 448, !22, i64 452, !22, i64 456, !22, i64 460, !22, i64 464, !22, i64 468, !22, i64 472, !22, i64 476, !22, i64 480, !22, i64 484, !22, i64 488, !22, i64 492, !22, i64 496}
!7 = !{!"_ZTSSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"_ZTSSt6vectorIfSaIfEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!22 = !{!"float", !12, i64 0}
!23 = !{!"int", !12, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !12, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!26 = !{!"long", !12, i64 0}
!27 = !{!"bool", !12, i64 0}
!28 = !{!6, !22, i64 364}
!29 = !{!6, !23, i64 312}
!30 = !{!6, !22, i64 360}
!31 = !{!6, !23, i64 316}
!32 = !{!22, !22, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!36, !23, i64 0}
!36 = !{!"_ZTSN4sptk6reaper12EpochTracker9ResidPeakE", !23, i64 0, !23, i64 4, !22, i64 8, !18, i64 16, !37, i64 40, !41, i64 64, !41, i64 88}
!37 = !{!"_ZTSSt6vectorIsSaIsEE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIsSaIsEE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!41 = !{!"_ZTSSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!45 = !{!46, !46, i64 0}
!46 = !{!"short", !12, i64 0}
!47 = distinct !{!47, !34}
!48 = distinct !{!48, !34}


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