; 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::TrackerResults" = type { i8, float, i32, float }
%"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::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 }
%"struct.sptk::reaper::EpochTracker::EpochCand" = type { i32, float, float, i32, i32, i32, i32, i8 }

@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

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

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

; 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 @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #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) #1 align 2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk6reaper12EpochTracker22BacktrackAndSaveOutputEv(ptr noundef nonnull align 8 dereferenceable(500) %0) #3 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.sptk::reaper::EpochTracker::TrackerResults", align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8
  %17 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %18 = call noundef i64 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %23

20:                                               ; preds = %1
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.4) #4
  store i1 false, ptr %2, align 1
  br label %235

23:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store float 0x46293E5940000000, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %24 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %25 = call noundef zeroext i1 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  br label %31

27:                                               ; preds = %23
  %28 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %29 = call noundef i64 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #4
  %30 = sub i64 %29, 1
  br label %31

31:                                               ; preds = %27, %26
  %32 = phi i64 [ 0, %26 ], [ %30, %27 ]
  store i64 %32, ptr %7, align 8, !tbaa !13
  br label %33

33:                                               ; preds = %85, %31
  %34 = load i64, ptr %7, align 8, !tbaa !13
  %35 = icmp ugt i64 %34, 0
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  store i32 2, ptr %8, align 4
  br label %88

37:                                               ; preds = %33
  %38 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %39 = load i64, ptr %7, align 8, !tbaa !13
  %40 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %39) #4
  %41 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %40, i32 0, i32 6
  %42 = call noundef i64 @_ZNKSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #4
  %43 = icmp ugt i64 %42, 1
  br i1 %43, label %44, label %84

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %45

45:                                               ; preds = %79, %44
  %46 = load i64, ptr %9, align 8, !tbaa !13
  %47 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %48 = load i64, ptr %7, align 8, !tbaa !13
  %49 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %48) #4
  %50 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %49, i32 0, i32 6
  %51 = call noundef i64 @_ZNKSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #4
  %52 = icmp ult i64 %46, %51
  br i1 %52, label %54, label %53

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

54:                                               ; preds = %45
  %55 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %56 = load i64, ptr %7, align 8, !tbaa !13
  %57 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %56) #4
  %58 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %57, i32 0, i32 6
  %59 = load i64, ptr %9, align 8, !tbaa !13
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %59) #4
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::EpochCand", ptr %61, i32 0, i32 2
  %63 = load float, ptr %62, align 4, !tbaa !15
  %64 = load float, ptr %4, align 4, !tbaa !9
  %65 = fcmp olt float %63, %64
  br i1 %65, label %66, label %78

66:                                               ; preds = %54
  %67 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %68 = load i64, ptr %7, align 8, !tbaa !13
  %69 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %68) #4
  %70 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %69, i32 0, i32 6
  %71 = load i64, ptr %9, align 8, !tbaa !13
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %71) #4
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::EpochCand", ptr %73, i32 0, i32 2
  %75 = load float, ptr %74, align 4, !tbaa !15
  store float %75, ptr %4, align 4, !tbaa !9
  %76 = load i64, ptr %9, align 8, !tbaa !13
  %77 = trunc i64 %76 to i32
  store i32 %77, ptr %5, align 4, !tbaa !11
  br label %78

78:                                               ; preds = %66, %54
  br label %79

79:                                               ; preds = %78
  %80 = load i64, ptr %9, align 8, !tbaa !13
  %81 = add i64 %80, 1
  store i64 %81, ptr %9, align 8, !tbaa !13
  br label %45, !llvm.loop !18

82:                                               ; preds = %53
  %83 = load i64, ptr %7, align 8, !tbaa !13
  store i64 %83, ptr %6, align 8, !tbaa !13
  store i32 2, ptr %8, align 4
  br label %88

84:                                               ; preds = %37
  br label %85

85:                                               ; preds = %84
  %86 = load i64, ptr %7, align 8, !tbaa !13
  %87 = add i64 %86, -1
  store i64 %87, ptr %7, align 8, !tbaa !13
  br label %33, !llvm.loop !20

88:                                               ; preds = %82, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %89

89:                                               ; preds = %88
  %90 = load i64, ptr %6, align 8, !tbaa !13
  %91 = icmp eq i64 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %89
  store i1 false, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %234

93:                                               ; preds = %89
  %94 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 2
  call void @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #4
  br label %95

95:                                               ; preds = %232, %93
  br label %96

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %97 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %98 = load i64, ptr %6, align 8, !tbaa !13
  %99 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %98) #4
  %100 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %99, i32 0, i32 6
  %101 = load i32, ptr %5, align 4, !tbaa !11
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %102) #4
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::EpochCand", ptr %104, i32 0, i32 3
  %106 = load i32, ptr %105, align 4, !tbaa !21
  store i32 %106, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %107 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %108 = load i32, ptr %10, align 4, !tbaa !11
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109) #4
  %111 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 8, !tbaa !22
  %113 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %11, i32 0, i32 2
  store i32 %112, ptr %113, align 4, !tbaa !36
  %114 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %115 = load i64, ptr %6, align 8, !tbaa !13
  %116 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %115) #4
  %117 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %116, i32 0, i32 6
  %118 = load i32, ptr %5, align 4, !tbaa !11
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #4
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::EpochCand", ptr %121, i32 0, i32 7
  %123 = load i8, ptr %122, align 4, !tbaa !38, !range !39, !noundef !40
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %143

125:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %126 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %127 = load i64, ptr %6, align 8, !tbaa !13
  %128 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %126, i64 noundef %127) #4
  %129 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %128, i32 0, i32 6
  %130 = load i32, ptr %5, align 4, !tbaa !11
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %131) #4
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::EpochCand", ptr %133, i32 0, i32 6
  %135 = load i32, ptr %134, align 4, !tbaa !41
  %136 = sitofp i32 %135 to float
  store float %136, ptr %12, align 4, !tbaa !9
  %137 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 13
  %138 = load float, ptr %137, align 8, !tbaa !42
  %139 = load float, ptr %12, align 4, !tbaa !9
  %140 = fdiv float %138, %139
  %141 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %11, i32 0, i32 1
  store float %140, ptr %141, align 4, !tbaa !54
  %142 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %11, i32 0, i32 0
  store i8 1, ptr %142, align 4, !tbaa !55
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %146

143:                                              ; preds = %96
  %144 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %11, i32 0, i32 1
  store float 0.000000e+00, ptr %144, align 4, !tbaa !54
  %145 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %11, i32 0, i32 0
  store i8 0, ptr %145, align 4, !tbaa !55
  br label %146

146:                                              ; preds = %143, %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %147 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %148 = load i64, ptr %6, align 8, !tbaa !13
  %149 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %148) #4
  %150 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %149, i32 0, i32 6
  %151 = load i32, ptr %5, align 4, !tbaa !11
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %152) #4
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::EpochCand", ptr %154, i32 0, i32 0
  %156 = load i32, ptr %155, align 4, !tbaa !56
  %157 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 17
  %158 = load i32, ptr %157, align 8, !tbaa !57
  %159 = sub nsw i32 %156, %158
  store i32 %159, ptr %13, align 4, !tbaa !11
  %160 = load i32, ptr %13, align 4, !tbaa !11
  %161 = icmp sge i32 %160, 0
  br i1 %161, label %162, label %178

162:                                              ; preds = %146
  %163 = load i32, ptr %13, align 4, !tbaa !11
  %164 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 18
  %165 = load i32, ptr %164, align 4, !tbaa !58
  %166 = icmp slt i32 %163, %165
  br i1 %166, label %167, label %178

167:                                              ; preds = %162
  %168 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %169 = load i32, ptr %10, align 4, !tbaa !11
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %170) #4
  %172 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %171, i32 0, i32 3
  %173 = load i32, ptr %13, align 4, !tbaa !11
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %174) #4
  %176 = load float, ptr %175, align 4, !tbaa !9
  %177 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %11, i32 0, i32 3
  store float %176, ptr %177, align 4, !tbaa !59
  br label %202

178:                                              ; preds = %162, %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %179 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %180 = load i64, ptr %6, align 8, !tbaa !13
  %181 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %180) #4
  %182 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %181, i32 0, i32 6
  %183 = load i32, ptr %5, align 4, !tbaa !11
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %182, i64 noundef %184) #4
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::EpochCand", ptr %186, i32 0, i32 6
  %188 = load i32, ptr %187, align 4, !tbaa !41
  %189 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 17
  %190 = load i32, ptr %189, align 8, !tbaa !57
  %191 = sub nsw i32 %188, %190
  store i32 %191, ptr %14, align 4, !tbaa !11
  %192 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %193 = load i32, ptr %10, align 4, !tbaa !11
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194) #4
  %196 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %195, i32 0, i32 3
  %197 = load i32, ptr %14, align 4, !tbaa !11
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %196, i64 noundef %198) #4
  %200 = load float, ptr %199, align 4, !tbaa !9
  %201 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::TrackerResults", ptr %11, i32 0, i32 3
  store float %200, ptr %201, align 4, !tbaa !59
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %202

202:                                              ; preds = %178, %167
  %203 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 2
  call void @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %203, ptr noundef nonnull align 4 dereferenceable(16) %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %204 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %205 = load i64, ptr %6, align 8, !tbaa !13
  %206 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %204, i64 noundef %205) #4
  %207 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %206, i32 0, i32 6
  %208 = load i32, ptr %5, align 4, !tbaa !11
  %209 = sext i32 %208 to i64
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %207, i64 noundef %209) #4
  %211 = load ptr, ptr %210, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::EpochCand", ptr %211, i32 0, i32 3
  %213 = load i32, ptr %212, align 4, !tbaa !21
  %214 = sext i32 %213 to i64
  store i64 %214, ptr %15, align 8, !tbaa !13
  %215 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %16, i32 0, i32 1
  %216 = load i64, ptr %6, align 8, !tbaa !13
  %217 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %215, i64 noundef %216) #4
  %218 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::ResidPeak", ptr %217, i32 0, i32 6
  %219 = load i32, ptr %5, align 4, !tbaa !11
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %218, i64 noundef %220) #4
  %222 = load ptr, ptr %221, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.sptk::reaper::EpochTracker::EpochCand", ptr %222, i32 0, i32 5
  %224 = load i32, ptr %223, align 4, !tbaa !60
  store i32 %224, ptr %5, align 4, !tbaa !11
  %225 = load i32, ptr %5, align 4, !tbaa !11
  %226 = icmp slt i32 %225, 0
  br i1 %226, label %227, label %228

227:                                              ; preds = %202
  store i32 9, ptr %8, align 4
  br label %230

228:                                              ; preds = %202
  %229 = load i64, ptr %15, align 8, !tbaa !13
  store i64 %229, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %8, align 4
  br label %230

230:                                              ; preds = %228, %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %231 = load i32, ptr %8, align 4
  switch i32 %231, label %237 [
    i32 0, label %232
    i32 9, label %233
  ]

232:                                              ; preds = %230
  br label %95, !llvm.loop !61

233:                                              ; preds = %230
  store i1 true, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %234

234:                                              ; preds = %233, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %235

235:                                              ; preds = %234, %20
  %236 = load i1, ptr %2, align 1
  ret i1 %236

237:                                              ; preds = %230
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(16)) #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSN4sptk6reaper12EpochTracker9EpochCandE", !12, i64 0, !10, i64 4, !10, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !17, i64 28}
!17 = !{!"bool", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!16, !12, i64 12}
!22 = !{!23, !12, i64 0}
!23 = !{!"_ZTSN4sptk6reaper12EpochTracker9ResidPeakE", !12, i64 0, !12, i64 4, !10, i64 8, !24, i64 16, !28, i64 40, !32, i64 64, !32, i64 88}
!24 = !{!"_ZTSSt6vectorIfSaIfEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt6vectorIsSaIsEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIsSaIsEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!37, !12, i64 8}
!37 = !{!"_ZTSN4sptk6reaper12EpochTracker14TrackerResultsE", !17, i64 0, !10, i64 4, !12, i64 8, !10, i64 12}
!38 = !{!16, !17, i64 28}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!16, !12, i64 24}
!42 = !{!43, !10, i64 296}
!43 = !{!"_ZTSN4sptk6reaper12EpochTrackerE", !44, i64 8, !48, i64 32, !24, i64 56, !24, i64 80, !24, i64 104, !24, i64 128, !24, i64 152, !24, i64 176, !24, i64 200, !24, i64 224, !24, i64 248, !24, i64 272, !10, i64 296, !10, i64 300, !10, i64 304, !12, i64 308, !12, i64 312, !12, i64 316, !52, i64 320, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !17, i64 368, !17, 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}
!44 = !{!"_ZTSSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!"_ZTSSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!52 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !53, i64 0, !14, i64 8, !7, i64 16}
!53 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!54 = !{!37, !10, i64 4}
!55 = !{!37, !17, i64 0}
!56 = !{!16, !12, i64 0}
!57 = !{!43, !12, i64 312}
!58 = !{!43, !12, i64 316}
!59 = !{!37, !10, i64 12}
!60 = !{!16, !12, i64 20}
!61 = distinct !{!61, !19}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [40 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_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 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; 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 @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE5clearEv(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(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk6reaper12EpochTracker22BacktrackAndSaveOutputEv(ptr noundef nonnull align 8 dereferenceable(500) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %"struct.sptk::reaper::EpochTracker::TrackerResults", align 4
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = tail call noundef i64 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %6, label %9

6:                                                ; preds = %1
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.4) #5
  br label %.thread

9:                                                ; preds = %1
  %10 = tail call noundef zeroext i1 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br i1 %10, label %.thread, label %11

11:                                               ; preds = %9
  %12 = tail call noundef i64 @_ZNKSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %13 = add i64 %12, -1
  %.not57 = icmp eq i64 %13, 0
  br i1 %.not57, label %.thread, label %.lr.ph

.lr.ph:                                           ; preds = %11, %42
  %.04758 = phi i64 [ %43, %42 ], [ %13, %11 ]
  %14 = tail call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.04758) #4
  %15 = getelementptr inbounds i8, ptr %14, i64 88
  %16 = tail call noundef i64 @_ZNKSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  %17 = icmp ugt i64 %16, 1
  br i1 %17, label %.preheader, label %42

.preheader:                                       ; preds = %.lr.ph
  %18 = tail call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.04758) #4
  %19 = getelementptr inbounds i8, ptr %18, i64 88
  %20 = tail call noundef i64 @_ZNKSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %.not63 = icmp eq i64 %20, 0
  br i1 %.not63, label %._crit_edge, label %.lr.ph62

.lr.ph62:                                         ; preds = %.preheader, %36
  %.04061 = phi float [ %.141, %36 ], [ 0x46293E5940000000, %.preheader ]
  %.04260 = phi i32 [ %.143, %36 ], [ 0, %.preheader ]
  %.04859 = phi i64 [ %37, %36 ], [ 0, %.preheader ]
  %21 = tail call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.04758) #4
  %22 = getelementptr inbounds i8, ptr %21, i64 88
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %.04859) #4
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = load float, ptr %25, align 4, !tbaa !9
  %27 = fcmp olt float %26, %.04061
  br i1 %27, label %28, label %36

28:                                               ; preds = %.lr.ph62
  %29 = tail call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.04758) #4
  %30 = getelementptr inbounds i8, ptr %29, i64 88
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %.04859) #4
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = load float, ptr %33, align 4, !tbaa !9
  %35 = trunc i64 %.04859 to i32
  br label %36

36:                                               ; preds = %.lr.ph62, %28
  %.143 = phi i32 [ %35, %28 ], [ %.04260, %.lr.ph62 ]
  %.141 = phi float [ %34, %28 ], [ %.04061, %.lr.ph62 ]
  %37 = add nuw i64 %.04859, 1
  %38 = tail call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.04758) #4
  %39 = getelementptr inbounds i8, ptr %38, i64 88
  %40 = tail call noundef i64 @_ZNKSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #4
  %41 = icmp ult i64 %37, %40
  br i1 %41, label %.lr.ph62, label %._crit_edge, !llvm.loop !14

42:                                               ; preds = %.lr.ph
  %43 = add i64 %.04758, -1
  %.not = icmp eq i64 %43, 0
  br i1 %.not, label %.thread, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %36, %.preheader
  %.042.lcssa = phi i32 [ 0, %.preheader ], [ %.143, %36 ]
  %44 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #4
  %45 = getelementptr inbounds i8, ptr %2, i64 8
  %46 = getelementptr inbounds i8, ptr %2, i64 4
  %47 = getelementptr inbounds i8, ptr %0, i64 296
  %48 = getelementptr inbounds i8, ptr %0, i64 312
  %49 = getelementptr inbounds i8, ptr %0, i64 316
  %50 = getelementptr inbounds i8, ptr %2, i64 12
  br label %51

51:                                               ; preds = %108, %._crit_edge
  %.145 = phi i64 [ %.04758, %._crit_edge ], [ %122, %108 ]
  %.3 = phi i32 [ %.042.lcssa, %._crit_edge ], [ %120, %108 ]
  %52 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.145) #4
  %53 = getelementptr inbounds i8, ptr %52, i64 88
  %54 = sext i32 %.3 to i64
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %54) #4
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 12
  %58 = load i32, ptr %57, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #4
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %59) #4
  %61 = load i32, ptr %60, align 8, !tbaa !18
  store i32 %61, ptr %45, align 4, !tbaa !32
  %62 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.145) #4
  %63 = getelementptr inbounds i8, ptr %62, i64 88
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %54) #4
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 28
  %67 = load i8, ptr %66, align 4, !tbaa !34, !range !35, !noundef !36
  %68 = trunc nuw i8 %67 to i1
  br i1 %68, label %69, label %79

69:                                               ; preds = %51
  %70 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.145) #4
  %71 = getelementptr inbounds i8, ptr %70, i64 88
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %54) #4
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 24
  %75 = load i32, ptr %74, align 4, !tbaa !37
  %76 = sitofp i32 %75 to float
  %77 = load float, ptr %47, align 8, !tbaa !38
  %78 = fdiv float %77, %76
  br label %79

79:                                               ; preds = %51, %69
  %storemerge66 = phi float [ %78, %69 ], [ 0.000000e+00, %51 ]
  %storemerge = phi i8 [ 1, %69 ], [ 0, %51 ]
  store float %storemerge66, ptr %46, align 4, !tbaa !51
  store i8 %storemerge, ptr %2, align 4, !tbaa !52
  %80 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.145) #4
  %81 = getelementptr inbounds i8, ptr %80, i64 88
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %54) #4
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load i32, ptr %83, align 4, !tbaa !53
  %85 = load i32, ptr %48, align 8, !tbaa !54
  %86 = sub nsw i32 %84, %85
  %87 = icmp sgt i32 %86, -1
  %88 = load i32, ptr %49, align 4
  %89 = icmp slt i32 %86, %88
  %or.cond = select i1 %87, i1 %89, i1 false
  br i1 %or.cond, label %90, label %95

90:                                               ; preds = %79
  %91 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %59) #4
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  %93 = zext nneg i32 %86 to i64
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %93) #4
  br label %108

95:                                               ; preds = %79
  %96 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.145) #4
  %97 = getelementptr inbounds i8, ptr %96, i64 88
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %54) #4
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 24
  %101 = load i32, ptr %100, align 4, !tbaa !37
  %102 = load i32, ptr %48, align 8, !tbaa !54
  %103 = sub nsw i32 %101, %102
  %104 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %59) #4
  %105 = getelementptr inbounds i8, ptr %104, i64 16
  %106 = sext i32 %103 to i64
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %106) #4
  br label %108

108:                                              ; preds = %95, %90
  %storemerge67.in = phi ptr [ %107, %95 ], [ %94, %90 ]
  %storemerge67 = load float, ptr %storemerge67.in, align 4, !tbaa !55
  store float %storemerge67, ptr %50, align 4, !tbaa !56
  call void @_ZNSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(16) %2)
  %109 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.145) #4
  %110 = getelementptr inbounds i8, ptr %109, i64 88
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %54) #4
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 12
  %114 = load i32, ptr %113, align 4, !tbaa !17
  %115 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.145) #4
  %116 = getelementptr inbounds i8, ptr %115, i64 88
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4sptk6reaper12EpochTracker9EpochCandESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %54) #4
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = getelementptr inbounds i8, ptr %118, i64 20
  %120 = load i32, ptr %119, align 4, !tbaa !57
  %121 = icmp slt i32 %120, 0
  %122 = sext i32 %114 to i64
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
  br i1 %121, label %.thread, label %51

.thread:                                          ; preds = %42, %108, %9, %11, %6
  %.1 = phi i1 [ false, %6 ], [ false, %11 ], [ false, %9 ], [ true, %108 ], [ false, %42 ]
  ret i1 %.1
}

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

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


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