; 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.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::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::__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::TrackerResults" = type { i8, float, i32, float }

; 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper12EpochTracker15GetFilledEpochsEfPSt6vectorIfSaIfEEPS2_IsSaIsEE(ptr noundef nonnull align 8 dereferenceable(500) %0, float noundef %1, ptr noundef %2, ptr noundef %3) #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca i16, align 2
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca i16, align 2
  store ptr %0, ptr %5, align 8, !tbaa !5
  store float %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNSt6vectorIsSaIsEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %22 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 5
  %23 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
  %24 = uitofp i64 %23 to float
  %25 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 13
  %26 = load float, ptr %25, align 8, !tbaa !11
  %27 = fdiv float %24, %26
  store float %27, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %28 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 2
  %29 = call noundef i64 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #4
  %30 = sub i64 %29, 1
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %10, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %32 = load i32, ptr %10, align 4, !tbaa !30
  store i32 %32, ptr %11, align 4, !tbaa !30
  br label %33

33:                                               ; preds = %160, %4
  %34 = load i32, ptr %11, align 4, !tbaa !30
  %35 = icmp sge i32 %34, 0
  br i1 %35, label %36, label %161

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %37 = load i32, ptr %11, align 4, !tbaa !30
  store i32 %37, ptr %12, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %38 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 2
  %39 = load i32, ptr %11, align 4, !tbaa !30
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40) #4
  %42 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 4, !tbaa !31
  %44 = sitofp i32 %43 to float
  %45 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 13
  %46 = load float, ptr %45, align 8, !tbaa !11
  %47 = fdiv float %44, %46
  store float %47, ptr %13, align 4, !tbaa !9
  %48 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 2
  %49 = load i32, ptr %11, align 4, !tbaa !30
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %50) #4
  %52 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %51, i32 0, i32 0
  %53 = load i8, ptr %52, align 4, !tbaa !33, !range !34, !noundef !35
  %54 = trunc i8 %53 to i1
  br i1 %54, label %68, label %55

55:                                               ; preds = %36
  %56 = load i32, ptr %11, align 4, !tbaa !30
  %57 = load i32, ptr %10, align 4, !tbaa !30
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %59, label %73

59:                                               ; preds = %55
  %60 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 2
  %61 = load i32, ptr %11, align 4, !tbaa !30
  %62 = add nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %63) #4
  %65 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %64, i32 0, i32 0
  %66 = load i8, ptr %65, align 4, !tbaa !33, !range !34, !noundef !35
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %73

68:                                               ; preds = %59, %36
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #4
  store i16 1, ptr %14, align 2, !tbaa !36
  call void @_ZNSt6vectorIsSaIsEE9push_backEOs(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 2 dereferenceable(2) %14)
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #4
  %71 = load i32, ptr %11, align 4, !tbaa !30
  %72 = add nsw i32 %71, -1
  store i32 %72, ptr %11, align 4, !tbaa !30
  br label %73

73:                                               ; preds = %68, %59, %55
  %74 = load i32, ptr %11, align 4, !tbaa !30
  %75 = load i32, ptr %10, align 4, !tbaa !30
  %76 = icmp eq i32 %74, %75
  br i1 %76, label %77, label %78

77:                                               ; preds = %73
  store float 0.000000e+00, ptr %13, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %77, %73
  %79 = load i32, ptr %11, align 4, !tbaa !30
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %81, label %153

81:                                               ; preds = %78
  %82 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 2
  %83 = load i32, ptr %11, align 4, !tbaa !30
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84) #4
  %86 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %85, i32 0, i32 0
  %87 = load i8, ptr %86, align 4, !tbaa !33, !range !34, !noundef !35
  %88 = trunc i8 %87 to i1
  br i1 %88, label %153, label %89

89:                                               ; preds = %81
  %90 = load float, ptr %13, align 4, !tbaa !9
  %91 = load float, ptr %9, align 4, !tbaa !9
  %92 = fcmp olt float %90, %91
  br i1 %92, label %93, label %153

93:                                               ; preds = %89
  br label %94

94:                                               ; preds = %107, %93
  %95 = load i32, ptr %11, align 4, !tbaa !30
  %96 = icmp sgt i32 %95, 0
  br i1 %96, label %97, label %110

97:                                               ; preds = %94
  %98 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 2
  %99 = load i32, ptr %11, align 4, !tbaa !30
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %100) #4
  %102 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %101, i32 0, i32 0
  %103 = load i8, ptr %102, align 4, !tbaa !33, !range !34, !noundef !35
  %104 = trunc i8 %103 to i1
  br i1 %104, label %105, label %106

105:                                              ; preds = %97
  br label %110

106:                                              ; preds = %97
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %11, align 4, !tbaa !30
  %109 = add nsw i32 %108, -1
  store i32 %109, ptr %11, align 4, !tbaa !30
  br label %94, !llvm.loop !38

110:                                              ; preds = %105, %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %111 = load float, ptr %9, align 4, !tbaa !9
  store float %111, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 1, ptr %16, align 4, !tbaa !30
  %112 = load i32, ptr %11, align 4, !tbaa !30
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %114, label %132

114:                                              ; preds = %110
  %115 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 2
  %116 = load i32, ptr %11, align 4, !tbaa !30
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %117) #4
  %119 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %118, i32 0, i32 2
  %120 = load i32, ptr %119, align 4, !tbaa !31
  %121 = sitofp i32 %120 to float
  %122 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 13
  %123 = load float, ptr %122, align 8, !tbaa !11
  %124 = fdiv float %121, %123
  %125 = fpext float %124 to double
  %126 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %19, i32 0, i32 23
  %127 = load float, ptr %126, align 4, !tbaa !40
  %128 = fpext float %127 to double
  %129 = fdiv double 1.000000e+00, %128
  %130 = fsub double %125, %129
  %131 = fptrunc double %130 to float
  store float %131, ptr %15, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %114, %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %133 = load float, ptr %13, align 4, !tbaa !9
  %134 = load i32, ptr %16, align 4, !tbaa !30
  %135 = sitofp i32 %134 to float
  %136 = load float, ptr %6, align 4, !tbaa !9
  %137 = call float @llvm.fmuladd.f32(float %135, float %136, float %133)
  store float %137, ptr %17, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %142, %132
  %139 = load float, ptr %17, align 4, !tbaa !9
  %140 = load float, ptr %15, align 4, !tbaa !9
  %141 = fcmp olt float %139, %140
  br i1 %141, label %142, label %152

142:                                              ; preds = %138
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %143, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #4
  store i16 0, ptr %18, align 2, !tbaa !36
  call void @_ZNSt6vectorIsSaIsEE9push_backEOs(ptr noundef nonnull align 8 dereferenceable(24) %144, ptr noundef nonnull align 2 dereferenceable(2) %18)
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #4
  %145 = load i32, ptr %16, align 4, !tbaa !30
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %16, align 4, !tbaa !30
  %147 = load float, ptr %13, align 4, !tbaa !9
  %148 = load i32, ptr %16, align 4, !tbaa !30
  %149 = sitofp i32 %148 to float
  %150 = load float, ptr %6, align 4, !tbaa !9
  %151 = call float @llvm.fmuladd.f32(float %149, float %150, float %147)
  store float %151, ptr %17, align 4, !tbaa !9
  br label %138, !llvm.loop !41

152:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %153

153:                                              ; preds = %152, %89, %81, %78
  %154 = load i32, ptr %11, align 4, !tbaa !30
  %155 = load i32, ptr %12, align 4, !tbaa !30
  %156 = icmp eq i32 %154, %155
  br i1 %156, label %157, label %160

157:                                              ; preds = %153
  %158 = load i32, ptr %11, align 4, !tbaa !30
  %159 = add nsw i32 %158, -1
  store i32 %159, ptr %11, align 4, !tbaa !30
  br label %160

160:                                              ; preds = %157, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %33, !llvm.loop !42

161:                                              ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

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

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

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

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

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

!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 = !{!25, !25, i64 0}
!31 = !{!32, !25, i64 8}
!32 = !{!"_ZTSN4sptk6reaper12EpochTracker14TrackerResultsE", !29, i64 0, !10, i64 4, !25, i64 8, !10, i64 12}
!33 = !{!32, !29, i64 0}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!37, !37, i64 0}
!37 = !{!"short", !7, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!12, !10, i64 364}
!41 = distinct !{!41, !39}
!42 = distinct !{!42, !39}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper12EpochTracker15GetFilledEpochsEfPSt6vectorIfSaIfEEPS2_IsSaIsEE(ptr noundef nonnull align 8 dereferenceable(500) %0, float noundef %1, ptr noundef nonnull %2, ptr noundef %3) local_unnamed_addr #3 align 2 {
  %5 = alloca float, align 4
  %6 = alloca i16, align 2
  %7 = alloca float, align 4
  %8 = alloca i16, align 2
  tail call void @_ZNSt6vectorIfSaIfEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  tail call void @_ZNSt6vectorIsSaIsEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 104
  %10 = tail call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %11 = uitofp i64 %10 to float
  %12 = getelementptr inbounds i8, ptr %0, i64 296
  %13 = load float, ptr %12, align 8, !tbaa !5
  %14 = fdiv float %11, %13
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  %16 = tail call noundef i64 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  %17 = trunc i64 %16 to i32
  %18 = add i32 %17, -1
  %19 = icmp sgt i32 %18, -1
  br i1 %19, label %.lr.ph46, label %._crit_edge47

.lr.ph46:                                         ; preds = %4
  %20 = getelementptr inbounds i8, ptr %0, i64 364
  br label %21

21:                                               ; preds = %.lr.ph46, %80
  %.03644 = phi i32 [ %18, %.lr.ph46 ], [ %spec.select, %80 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %22 = zext nneg i32 %.03644 to i64
  %23 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %22) #4
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load i32, ptr %24, align 4, !tbaa !28
  %26 = sitofp i32 %25 to float
  %27 = load float, ptr %12, align 8, !tbaa !5
  %28 = fdiv float %26, %27
  store float %28, ptr %5, align 4, !tbaa !30
  %29 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %22) #4
  %30 = load i8, ptr %29, align 4, !tbaa !31, !range !32, !noundef !33
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %40, label %32

32:                                               ; preds = %21
  %33 = icmp slt i32 %.03644, %18
  br i1 %33, label %34, label %42

34:                                               ; preds = %32
  %35 = add nuw nsw i32 %.03644, 1
  %36 = zext nneg i32 %35 to i64
  %37 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %36) #4
  %38 = load i8, ptr %37, align 4, !tbaa !31, !range !32, !noundef !33
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %40, label %42

40:                                               ; preds = %34, %21
  call void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #4
  store i16 1, ptr %6, align 2, !tbaa !34
  call void @_ZNSt6vectorIsSaIsEE9push_backEOs(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 2 dereferenceable(2) %6)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #4
  %41 = add nsw i32 %.03644, -1
  br label %42

42:                                               ; preds = %40, %34, %32
  %.1 = phi i32 [ %41, %40 ], [ %.03644, %34 ], [ %.03644, %32 ]
  %43 = icmp eq i32 %.1, %18
  br i1 %43, label %44, label %45

44:                                               ; preds = %42
  store float 0.000000e+00, ptr %5, align 4, !tbaa !30
  br label %45

45:                                               ; preds = %44, %42
  %46 = icmp sgt i32 %.1, 0
  br i1 %46, label %47, label %80

47:                                               ; preds = %45
  %48 = zext nneg i32 %.1 to i64
  %49 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %48) #4
  %50 = load i8, ptr %49, align 4, !tbaa !31, !range !32, !noundef !33
  %51 = trunc nuw i8 %50 to i1
  %52 = load float, ptr %5, align 4
  %53 = fcmp uge float %52, %14
  %or.cond.not = select i1 %51, i1 true, i1 %53
  br i1 %or.cond.not, label %80, label %.lr.ph

.lr.ph:                                           ; preds = %47, %57
  %indvars.iv = phi i64 [ %indvars.iv.next, %57 ], [ %48, %47 ]
  %54 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv) #4
  %55 = load i8, ptr %54, align 4, !tbaa !31, !range !32, !noundef !33
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %59, label %57

57:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %58 = icmp sgt i64 %indvars.iv, 1
  br i1 %58, label %.lr.ph, label %.critedge, !llvm.loop !36

59:                                               ; preds = %.lr.ph
  %60 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv) #4
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %62 = load i32, ptr %61, align 4, !tbaa !28
  %63 = sitofp i32 %62 to float
  %64 = load float, ptr %12, align 8, !tbaa !5
  %65 = fdiv float %63, %64
  %66 = fpext float %65 to double
  %67 = load float, ptr %20, align 4, !tbaa !38
  %68 = fpext float %67 to double
  %69 = fdiv double 1.000000e+00, %68
  %70 = fsub double %66, %69
  %71 = fptrunc double %70 to float
  br label %.critedge

.critedge:                                        ; preds = %57, %59
  %.240.in = phi i64 [ %indvars.iv, %59 ], [ %indvars.iv.next, %57 ]
  %.035 = phi float [ %71, %59 ], [ %14, %57 ]
  %.240 = trunc i64 %.240.in to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %72 = load float, ptr %5, align 4, !tbaa !30
  %73 = fadd float %72, %1
  store float %73, ptr %7, align 4, !tbaa !30
  %74 = fcmp olt float %73, %.035
  br i1 %74, label %.lr.ph43, label %._crit_edge

.lr.ph43:                                         ; preds = %.critedge, %.lr.ph43
  %.042 = phi i32 [ %75, %.lr.ph43 ], [ 1, %.critedge ]
  call void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #4
  store i16 0, ptr %8, align 2, !tbaa !34
  call void @_ZNSt6vectorIsSaIsEE9push_backEOs(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 2 dereferenceable(2) %8)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #4
  %75 = add nuw nsw i32 %.042, 1
  %76 = load float, ptr %5, align 4, !tbaa !30
  %77 = uitofp nneg i32 %75 to float
  %78 = call float @llvm.fmuladd.f32(float %77, float %1, float %76)
  store float %78, ptr %7, align 4, !tbaa !30
  %79 = fcmp olt float %78, %.035
  br i1 %79, label %.lr.ph43, label %._crit_edge, !llvm.loop !39

._crit_edge:                                      ; preds = %.lr.ph43, %.critedge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %80

80:                                               ; preds = %._crit_edge, %47, %45
  %.3 = phi i32 [ %.1, %47 ], [ %.240, %._crit_edge ], [ %.1, %45 ]
  %81 = icmp eq i32 %.3, %.03644
  %82 = sext i1 %81 to i32
  %spec.select = add nsw i32 %.3, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  %83 = icmp sgt i32 %spec.select, -1
  br i1 %83, label %21, label %._crit_edge47, !llvm.loop !40

._crit_edge47:                                    ; preds = %80, %4
  ret void
}

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

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

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

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

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

!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 = !{!29, !23, i64 8}
!29 = !{!"_ZTSN4sptk6reaper12EpochTracker14TrackerResultsE", !27, i64 0, !22, i64 4, !23, i64 8, !22, i64 12}
!30 = !{!22, !22, i64 0}
!31 = !{!29, !27, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!35, !35, i64 0}
!35 = !{!"short", !12, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!6, !22, i64 364}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !37}


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