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

%"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.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.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 }
%"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] }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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
define dso_local void @_ZN4sptk6reaper12EpochTracker17GetResidualPulsesEv(ptr noundef nonnull align 8 dereferenceable(500) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %"struct.sptk::reaper::EpochTracker::ResidPeak", align 8
  %18 = alloca float, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %22 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 34
  %23 = load float, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 13
  %25 = load float, ptr %24, align 8, !tbaa !29
  %26 = fmul float %23, %25
  %27 = call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %26)
  store i32 %27, ptr %3, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %28 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 35
  %29 = load float, ptr %28, align 4, !tbaa !31
  %30 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 13
  %31 = load float, ptr %30, align 8, !tbaa !29
  %32 = fmul float %29, %31
  %33 = call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %32)
  store i32 %33, ptr %4, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store float -1.000000e+00, ptr %5, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %34 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 5
  %35 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
  %36 = load i32, ptr %3, align 4, !tbaa !30
  %37 = sext i32 %36 to i64
  %38 = sub i64 %35, %37
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %6, align 4, !tbaa !30
  %40 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 1
  call void @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef 0)
  %41 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 6
  %42 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 4
  %43 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #5
  call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !33
  br label %44

44:                                               ; preds = %54, %1
  %45 = load i64, ptr %7, align 8, !tbaa !33
  %46 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 6
  %47 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #5
  %48 = icmp ult i64 %45, %47
  br i1 %48, label %50, label %49

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

50:                                               ; preds = %44
  %51 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 6
  %52 = load i64, ptr %7, align 8, !tbaa !33
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %52) #5
  store float 0.000000e+00, ptr %53, align 4, !tbaa !32
  br label %54

54:                                               ; preds = %50
  %55 = load i64, ptr %7, align 8, !tbaa !33
  %56 = add i64 %55, 1
  store i64 %56, ptr %7, align 8, !tbaa !33
  br label %44, !llvm.loop !34

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %58 = load i32, ptr %3, align 4, !tbaa !30
  store i32 %58, ptr %8, align 4, !tbaa !30
  br label %59

59:                                               ; preds = %211, %57
  %60 = load i32, ptr %8, align 4, !tbaa !30
  %61 = load i32, ptr %6, align 4, !tbaa !30
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %214

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %65 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 5
  %66 = load i32, ptr %8, align 4, !tbaa !30
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #5
  %69 = load float, ptr %68, align 4, !tbaa !32
  store float %69, ptr %10, align 4, !tbaa !32
  %70 = load float, ptr %10, align 4, !tbaa !32
  %71 = load float, ptr %5, align 4, !tbaa !32
  %72 = fcmp ogt float %70, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %64
  store i32 7, ptr %9, align 4
  br label %208

74:                                               ; preds = %64
  %75 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 5
  %76 = load i32, ptr %8, align 4, !tbaa !30
  %77 = sub nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %78) #5
  %80 = load float, ptr %79, align 4, !tbaa !32
  %81 = load float, ptr %10, align 4, !tbaa !32
  %82 = fcmp ogt float %80, %81
  br i1 %82, label %83, label %207

83:                                               ; preds = %74
  %84 = load float, ptr %10, align 4, !tbaa !32
  %85 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 5
  %86 = load i32, ptr %8, align 4, !tbaa !30
  %87 = add nsw i32 %86, 1
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %88) #5
  %90 = load float, ptr %89, align 4, !tbaa !32
  %91 = fcmp ole float %84, %90
  br i1 %91, label %92, label %207

92:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %93 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 5
  %94 = load i32, ptr %8, align 4, !tbaa !30
  %95 = load i32, ptr %3, align 4, !tbaa !30
  %96 = sub nsw i32 %94, %95
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %97) #5
  %99 = load float, ptr %98, align 4, !tbaa !32
  store float %99, ptr %11, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %100 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 5
  %101 = load i32, ptr %8, align 4, !tbaa !30
  %102 = load i32, ptr %3, align 4, !tbaa !30
  %103 = add nsw i32 %101, %102
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %104) #5
  %106 = load float, ptr %105, align 4, !tbaa !32
  store float %106, ptr %12, align 4, !tbaa !32
  %107 = load float, ptr %11, align 4, !tbaa !32
  %108 = load float, ptr %10, align 4, !tbaa !32
  %109 = fcmp olt float %107, %108
  br i1 %109, label %114, label %110

110:                                              ; preds = %92
  %111 = load float, ptr %12, align 4, !tbaa !32
  %112 = load float, ptr %10, align 4, !tbaa !32
  %113 = fcmp olt float %111, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %110, %92
  store i32 7, ptr %9, align 4
  br label %204

115:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %116 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 5
  %117 = load i32, ptr %8, align 4, !tbaa !30
  %118 = load i32, ptr %4, align 4, !tbaa !30
  %119 = sub nsw i32 %117, %118
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %120) #5
  %122 = load float, ptr %121, align 4, !tbaa !32
  store float %122, ptr %13, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %123 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 5
  %124 = load i32, ptr %8, align 4, !tbaa !30
  %125 = load i32, ptr %4, align 4, !tbaa !30
  %126 = add nsw i32 %124, %125
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %127) #5
  %129 = load float, ptr %128, align 4, !tbaa !32
  store float %129, ptr %14, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %130 = load float, ptr %12, align 4, !tbaa !32
  %131 = load float, ptr %11, align 4, !tbaa !32
  %132 = fadd float %130, %131
  %133 = fpext float %132 to double
  %134 = load float, ptr %10, align 4, !tbaa !32
  %135 = fpext float %134 to double
  %136 = fneg double %135
  %137 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %133, double %136)
  %138 = fptrunc double %137 to float
  store float %138, ptr %15, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %139 = load float, ptr %13, align 4, !tbaa !32
  %140 = load float, ptr %14, align 4, !tbaa !32
  %141 = fsub float %139, %140
  %142 = fneg float %141
  store float %142, ptr %16, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 112, ptr %17) #5
  call void @_ZN4sptk6reaper12EpochTracker9ResidPeakC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %17) #5
  %143 = load i32, ptr %8, align 4, !tbaa !30
  %144 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %17, i32 0, i32 0
  store i32 %143, ptr %144, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %145 = load i32, ptr %8, align 4, !tbaa !30
  %146 = sitofp i32 %145 to float
  %147 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 13
  %148 = load float, ptr %147, align 8, !tbaa !29
  %149 = fdiv float %146, %148
  store float %149, ptr %18, align 4, !tbaa !32
  %150 = load float, ptr %18, align 4, !tbaa !32
  %151 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 27
  %152 = load float, ptr %151, align 4, !tbaa !46
  %153 = fdiv float %150, %152
  %154 = invoke noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %153)
          to label %155 unwind label %167

155:                                              ; preds = %115
  %156 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %17, i32 0, i32 1
  store i32 %154, ptr %156, align 4, !tbaa !47
  %157 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %17, i32 0, i32 1
  %158 = load i32, ptr %157, align 4, !tbaa !47
  %159 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 16
  %160 = load i32, ptr %159, align 4, !tbaa !48
  %161 = icmp sge i32 %158, %160
  br i1 %161, label %162, label %171

162:                                              ; preds = %155
  %163 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 16
  %164 = load i32, ptr %163, align 4, !tbaa !48
  %165 = sub nsw i32 %164, 1
  %166 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %17, i32 0, i32 1
  store i32 %165, ptr %166, align 4, !tbaa !47
  br label %171

167:                                              ; preds = %195, %115
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %19, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @_ZN4sptk6reaper12EpochTracker9ResidPeakD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %17) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr %17) #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 @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %215

171:                                              ; preds = %162, %155
  %172 = load float, ptr %10, align 4, !tbaa !32
  %173 = fneg float %172
  %174 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 36
  %175 = load float, ptr %174, align 8, !tbaa !49
  %176 = load float, ptr %16, align 4, !tbaa !32
  %177 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 38
  %178 = load float, ptr %177, align 8, !tbaa !50
  %179 = fmul float %176, %178
  %180 = call float @llvm.fmuladd.f32(float %173, float %175, float %179)
  %181 = load float, ptr %15, align 4, !tbaa !32
  %182 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 37
  %183 = load float, ptr %182, align 4, !tbaa !51
  %184 = call float @llvm.fmuladd.f32(float %181, float %183, float %180)
  %185 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %17, i32 0, i32 2
  store float %184, ptr %185, align 8, !tbaa !52
  %186 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %17, i32 0, i32 2
  %187 = load float, ptr %186, align 8, !tbaa !52
  %188 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 39
  %189 = load float, ptr %188, align 4, !tbaa !53
  %190 = fcmp olt float %187, %189
  br i1 %190, label %191, label %195

191:                                              ; preds = %171
  %192 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 39
  %193 = load float, ptr %192, align 4, !tbaa !53
  %194 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %17, i32 0, i32 2
  store float %193, ptr %194, align 8, !tbaa !52
  br label %195

195:                                              ; preds = %191, %171
  %196 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 1
  invoke void @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %196, ptr noundef nonnull align 8 dereferenceable(112) %17)
          to label %197 unwind label %167

197:                                              ; preds = %195
  %198 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %17, i32 0, i32 2
  %199 = load float, ptr %198, align 8, !tbaa !52
  %200 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %21, i32 0, i32 6
  %201 = load i32, ptr %8, align 4, !tbaa !30
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %200, i64 noundef %202) #5
  store float %199, ptr %203, align 4, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @_ZN4sptk6reaper12EpochTracker9ResidPeakD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %17) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr %17) #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 @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  store i32 0, ptr %9, align 4
  br label %204

204:                                              ; preds = %197, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %205 = load i32, ptr %9, align 4
  switch i32 %205, label %208 [
    i32 0, label %206
  ]

206:                                              ; preds = %204
  br label %207

207:                                              ; preds = %206, %83, %74
  store i32 0, ptr %9, align 4
  br label %208

208:                                              ; preds = %207, %204, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %209 = load i32, ptr %9, align 4
  switch i32 %209, label %220 [
    i32 0, label %210
    i32 7, label %211
  ]

210:                                              ; preds = %208
  br label %211

211:                                              ; preds = %210, %208
  %212 = load i32, ptr %8, align 4, !tbaa !30
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %8, align 4, !tbaa !30
  br label %59, !llvm.loop !54

214:                                              ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void

215:                                              ; preds = %167
  %216 = load ptr, ptr %19, align 8
  %217 = load i32, ptr %20, align 4
  %218 = insertvalue { ptr, i32 } poison, ptr %216, 0
  %219 = insertvalue { ptr, i32 } %218, i32 %217, 1
  resume { ptr, i32 } %219

220:                                              ; preds = %208
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk6reaper12EpochTracker9ResidPeakC2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk6reaper12EpochTracker9ResidPeakD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !23, i64 400}
!10 = !{!"_ZTSN4sptk6reaper12EpochTrackerE", !11, i64 8, !15, i64 32, !19, i64 56, !19, i64 80, !19, i64 104, !19, i64 128, !19, i64 152, !19, i64 176, !19, i64 200, !19, i64 224, !19, i64 248, !19, i64 272, !23, i64 296, !23, i64 300, !23, i64 304, !24, i64 308, !24, i64 312, !24, i64 316, !25, i64 320, !23, i64 352, !23, i64 356, !23, i64 360, !23, i64 364, !28, i64 368, !28, i64 369, !23, i64 372, !23, i64 376, !23, i64 380, !23, i64 384, !23, i64 388, !23, i64 392, !23, i64 396, !23, i64 400, !23, i64 404, !23, i64 408, !23, i64 412, !23, i64 416, !23, i64 420, !23, i64 424, !23, i64 428, !23, i64 432, !23, i64 436, !23, i64 440, !23, i64 444, !23, i64 448, !23, i64 452, !23, i64 456, !23, i64 460, !23, i64 464, !23, i64 468, !23, i64 472, !23, i64 476, !23, i64 480, !23, i64 484, !23, i64 488, !23, i64 492, !23, i64 496}
!11 = !{!"_ZTSSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIfSaIfEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"float", !7, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !27, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!10, !23, i64 296}
!30 = !{!24, !24, i64 0}
!31 = !{!10, !23, i64 404}
!32 = !{!23, !23, i64 0}
!33 = !{!27, !27, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!37, !24, i64 0}
!37 = !{!"_ZTSN4sptk6reaper12EpochTracker9ResidPeakE", !24, i64 0, !24, i64 4, !23, i64 8, !19, i64 16, !38, i64 40, !42, i64 64, !42, i64 88}
!38 = !{!"_ZTSSt6vectorIsSaIsEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIsSaIsEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!10, !23, i64 372}
!47 = !{!37, !24, i64 4}
!48 = !{!10, !24, i64 308}
!49 = !{!10, !23, i64 408}
!50 = !{!10, !23, i64 416}
!51 = !{!10, !23, i64 412}
!52 = !{!37, !23, i64 8}
!53 = !{!10, !23, i64 420}
!54 = distinct !{!54, !35}


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

%"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.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.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 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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
define dso_local void @_ZN4sptk6reaper12EpochTracker17GetResidualPulsesEv(ptr noundef nonnull align 8 dereferenceable(500) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.sptk::reaper::EpochTracker::ResidPeak", align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 400
  %4 = load float, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 296
  %6 = load float, ptr %5, align 8, !tbaa !28
  %7 = fmul float %4, %6
  %8 = tail call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 404
  %10 = load float, ptr %9, align 4, !tbaa !29
  %11 = load float, ptr %5, align 8, !tbaa !28
  %12 = fmul float %10, %11
  %13 = tail call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %12)
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  %15 = tail call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %16 = trunc i64 %15 to i32
  %17 = sub i32 %16, %8
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 0)
  %19 = getelementptr inbounds i8, ptr %0, i64 128
  %20 = getelementptr inbounds i8, ptr %0, i64 80
  %21 = tail call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  tail call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %21)
  %22 = tail call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %.not52 = icmp eq i64 %22, 0
  br i1 %.not52, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %1
  %23 = icmp slt i32 %8, %17
  br i1 %23, label %.lr.ph51, label %._crit_edge

.lr.ph51:                                         ; preds = %.preheader
  %24 = getelementptr inbounds i8, ptr %0, i64 372
  %25 = getelementptr inbounds i8, ptr %2, i64 4
  %26 = getelementptr inbounds i8, ptr %0, i64 308
  %27 = getelementptr inbounds i8, ptr %0, i64 408
  %28 = getelementptr inbounds i8, ptr %0, i64 416
  %29 = getelementptr inbounds i8, ptr %0, i64 412
  %30 = getelementptr inbounds i8, ptr %2, i64 8
  %31 = getelementptr inbounds i8, ptr %0, i64 420
  %32 = sext i32 %8 to i64
  %33 = sext i32 %13 to i64
  %wide.trip.count = sext i32 %17 to i64
  br label %38

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.049 = phi i64 [ %35, %.lr.ph ], [ 0, %1 ]
  %34 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %.049) #5
  store float 0.000000e+00, ptr %34, align 4, !tbaa !30
  %35 = add nuw i64 %.049, 1
  %36 = tail call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %.lr.ph, label %.preheader, !llvm.loop !31

._crit_edge:                                      ; preds = %102, %.preheader
  ret void

38:                                               ; preds = %.lr.ph51, %102
  %indvars.iv = phi i64 [ %32, %.lr.ph51 ], [ %indvars.iv.next, %102 ]
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv) #5
  %40 = load float, ptr %39, align 4, !tbaa !30
  %41 = fcmp ogt float %40, -1.000000e+00
  br i1 %41, label %102, label %42

42:                                               ; preds = %38
  %43 = add nsw i64 %indvars.iv, -1
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %43) #5
  %45 = load float, ptr %44, align 4, !tbaa !30
  %46 = fcmp ogt float %45, %40
  br i1 %46, label %47, label %102

47:                                               ; preds = %42
  %48 = add nsw i64 %indvars.iv, 1
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %48) #5
  %50 = load float, ptr %49, align 4, !tbaa !30
  %51 = fcmp ugt float %40, %50
  br i1 %51, label %102, label %52

52:                                               ; preds = %47
  %53 = sub nsw i64 %indvars.iv, %32
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %53) #5
  %55 = load float, ptr %54, align 4, !tbaa !30
  %56 = add nsw i64 %indvars.iv, %32
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %56) #5
  %58 = load float, ptr %57, align 4, !tbaa !30
  %59 = fcmp olt float %55, %40
  %60 = fcmp olt float %58, %40
  %or.cond = select i1 %59, i1 true, i1 %60
  br i1 %or.cond, label %102, label %61

61:                                               ; preds = %52
  %62 = sub nsw i64 %indvars.iv, %33
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %62) #5
  %64 = load float, ptr %63, align 4, !tbaa !30
  %65 = add nsw i64 %indvars.iv, %33
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %65) #5
  %67 = load float, ptr %66, align 4, !tbaa !30
  %68 = fadd float %55, %58
  %69 = fpext float %68 to double
  %70 = fpext float %40 to double
  %71 = fneg double %70
  %72 = call double @llvm.fmuladd.f64(double %69, double 5.000000e-01, double %71)
  %73 = fptrunc double %72 to float
  %74 = fsub float %64, %67
  %75 = fneg float %74
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %2) #5
  call void @_ZN4sptk6reaper12EpochTracker9ResidPeakC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %2) #5
  %76 = trunc nsw i64 %indvars.iv to i32
  store i32 %76, ptr %2, align 8, !tbaa !33
  %77 = sitofp i32 %76 to float
  %78 = load float, ptr %5, align 8, !tbaa !28
  %79 = fdiv float %77, %78
  %80 = load float, ptr %24, align 4, !tbaa !43
  %81 = fdiv float %79, %80
  %82 = call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %81)
  store i32 %82, ptr %25, align 4, !tbaa !44
  %83 = load i32, ptr %26, align 4, !tbaa !45
  %.not = icmp slt i32 %82, %83
  br i1 %.not, label %88, label %84

84:                                               ; preds = %61
  %85 = add nsw i32 %83, -1
  store i32 %85, ptr %25, align 4, !tbaa !44
  br label %88

86:                                               ; preds = %99
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk6reaper12EpochTracker9ResidPeakD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %2) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %2) #5
  resume { ptr, i32 } %87

88:                                               ; preds = %84, %61
  %89 = fneg float %40
  %90 = load float, ptr %27, align 8, !tbaa !46
  %91 = load float, ptr %28, align 8, !tbaa !47
  %92 = fmul float %91, %75
  %93 = call float @llvm.fmuladd.f32(float %89, float %90, float %92)
  %94 = load float, ptr %29, align 4, !tbaa !48
  %95 = call float @llvm.fmuladd.f32(float %73, float %94, float %93)
  store float %95, ptr %30, align 8, !tbaa !49
  %96 = load float, ptr %31, align 4, !tbaa !50
  %97 = fcmp olt float %95, %96
  br i1 %97, label %98, label %99

98:                                               ; preds = %88
  store float %96, ptr %30, align 8, !tbaa !49
  br label %99

99:                                               ; preds = %98, %88
  invoke void @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(112) %2)
          to label %.critedge unwind label %86

.critedge:                                        ; preds = %99
  %100 = load float, ptr %30, align 8, !tbaa !49
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv) #5
  store float %100, ptr %101, align 4, !tbaa !30
  call void @_ZN4sptk6reaper12EpochTracker9ResidPeakD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %2) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %2) #5
  br label %102

102:                                              ; preds = %42, %47, %.critedge, %52, %38
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %38, !llvm.loop !51
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk6reaper12EpochTracker9ResidPeakC2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk6reaper12EpochTracker9ResidPeakD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 400}
!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 296}
!29 = !{!6, !22, i64 404}
!30 = !{!22, !22, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!34, !23, i64 0}
!34 = !{!"_ZTSN4sptk6reaper12EpochTracker9ResidPeakE", !23, i64 0, !23, i64 4, !22, i64 8, !18, i64 16, !35, i64 40, !39, i64 64, !39, i64 88}
!35 = !{!"_ZTSSt6vectorIsSaIsEE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIsSaIsEE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!39 = !{!"_ZTSSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!43 = !{!6, !22, i64 372}
!44 = !{!34, !23, i64 4}
!45 = !{!6, !23, i64 308}
!46 = !{!6, !22, i64 408}
!47 = !{!6, !22, i64 416}
!48 = !{!6, !22, i64 412}
!49 = !{!34, !22, i64 8}
!50 = !{!6, !22, i64 420}
!51 = distinct !{!51, !32}


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