; 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] }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper12EpochTracker26GetVoiceTransitionFeaturesEv(ptr noundef nonnull align 8 dereferenceable(500) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %12 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 40
  %13 = load float, ptr %12, align 8, !tbaa !9
  %14 = fpext float %13 to double
  %15 = fmul double 5.000000e-01, %14
  %16 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 27
  %17 = load float, ptr %16, align 4, !tbaa !29
  %18 = fpext float %17 to double
  %19 = fdiv double %15, %18
  %20 = fptrunc double %19 to float
  %21 = call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %20)
  store i32 %21, ptr %3, align 4, !tbaa !30
  %22 = load i32, ptr %3, align 4, !tbaa !30
  %23 = icmp sle i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %1
  store i32 1, ptr %3, align 4, !tbaa !30
  br label %25

25:                                               ; preds = %24, %1
  %26 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 8
  %27 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 16
  %28 = load i32, ptr %27, align 4, !tbaa !31
  %29 = sext i32 %28 to i64
  call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %29)
  %30 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 9
  %31 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 16
  %32 = load i32, ptr %31, align 4, !tbaa !31
  %33 = sext i32 %32 to i64
  call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %34 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 16
  %35 = load i32, ptr %34, align 4, !tbaa !31
  %36 = load i32, ptr %3, align 4, !tbaa !30
  %37 = sub nsw i32 %35, %36
  store i32 %37, ptr %4, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %38 = load i32, ptr %3, align 4, !tbaa !30
  store i32 %38, ptr %5, align 4, !tbaa !30
  br label %39

39:                                               ; preds = %109, %25
  %40 = load i32, ptr %5, align 4, !tbaa !30
  %41 = load i32, ptr %4, align 4, !tbaa !30
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %112

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %45 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 7
  %46 = load i32, ptr %5, align 4, !tbaa !30
  %47 = load i32, ptr %3, align 4, !tbaa !30
  %48 = add nsw i32 %46, %47
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %49) #4
  %51 = load float, ptr %50, align 4, !tbaa !32
  %52 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 7
  %53 = load i32, ptr %5, align 4, !tbaa !30
  %54 = load i32, ptr %3, align 4, !tbaa !30
  %55 = sub nsw i32 %53, %54
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %56) #4
  %58 = load float, ptr %57, align 4, !tbaa !32
  %59 = fsub float %51, %58
  %60 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 41
  %61 = load float, ptr %60, align 4, !tbaa !33
  %62 = fdiv float %59, %61
  store float %62, ptr %6, align 4, !tbaa !32
  %63 = load float, ptr %6, align 4, !tbaa !32
  %64 = fpext float %63 to double
  %65 = fcmp ogt double %64, 1.000000e+00
  br i1 %65, label %66, label %67

66:                                               ; preds = %44
  store float 1.000000e+00, ptr %6, align 4, !tbaa !32
  br label %73

67:                                               ; preds = %44
  %68 = load float, ptr %6, align 4, !tbaa !32
  %69 = fpext float %68 to double
  %70 = fcmp olt double %69, -1.000000e+00
  br i1 %70, label %71, label %72

71:                                               ; preds = %67
  store float -1.000000e+00, ptr %6, align 4, !tbaa !32
  br label %72

72:                                               ; preds = %71, %67
  br label %73

73:                                               ; preds = %72, %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %74 = load float, ptr %6, align 4, !tbaa !32
  store float %74, ptr %7, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %75 = load float, ptr %7, align 4, !tbaa !32
  %76 = fneg float %75
  store float %76, ptr %8, align 4, !tbaa !32
  %77 = load float, ptr %7, align 4, !tbaa !32
  %78 = fpext float %77 to double
  %79 = fcmp ogt double %78, 1.000000e+00
  br i1 %79, label %80, label %81

80:                                               ; preds = %73
  store float 1.000000e+00, ptr %7, align 4, !tbaa !32
  br label %87

81:                                               ; preds = %73
  %82 = load float, ptr %7, align 4, !tbaa !32
  %83 = fpext float %82 to double
  %84 = fcmp olt double %83, 0.000000e+00
  br i1 %84, label %85, label %86

85:                                               ; preds = %81
  store float 0.000000e+00, ptr %7, align 4, !tbaa !32
  br label %86

86:                                               ; preds = %85, %81
  br label %87

87:                                               ; preds = %86, %80
  %88 = load float, ptr %8, align 4, !tbaa !32
  %89 = fpext float %88 to double
  %90 = fcmp ogt double %89, 1.000000e+00
  br i1 %90, label %91, label %92

91:                                               ; preds = %87
  store float 1.000000e+00, ptr %8, align 4, !tbaa !32
  br label %98

92:                                               ; preds = %87
  %93 = load float, ptr %8, align 4, !tbaa !32
  %94 = fpext float %93 to double
  %95 = fcmp olt double %94, 0.000000e+00
  br i1 %95, label %96, label %97

96:                                               ; preds = %92
  store float 0.000000e+00, ptr %8, align 4, !tbaa !32
  br label %97

97:                                               ; preds = %96, %92
  br label %98

98:                                               ; preds = %97, %91
  %99 = load float, ptr %7, align 4, !tbaa !32
  %100 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 8
  %101 = load i32, ptr %5, align 4, !tbaa !30
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %102) #4
  store float %99, ptr %103, align 4, !tbaa !32
  %104 = load float, ptr %8, align 4, !tbaa !32
  %105 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 9
  %106 = load i32, ptr %5, align 4, !tbaa !30
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #4
  store float %104, ptr %108, align 4, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %109

109:                                              ; preds = %98
  %110 = load i32, ptr %5, align 4, !tbaa !30
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %5, align 4, !tbaa !30
  br label %39, !llvm.loop !34

112:                                              ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !30
  br label %113

113:                                              ; preds = %140, %112
  %114 = load i32, ptr %9, align 4, !tbaa !30
  %115 = load i32, ptr %3, align 4, !tbaa !30
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %143

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %119 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 16
  %120 = load i32, ptr %119, align 4, !tbaa !31
  %121 = sub nsw i32 %120, 1
  %122 = load i32, ptr %9, align 4, !tbaa !30
  %123 = sub nsw i32 %121, %122
  store i32 %123, ptr %10, align 4, !tbaa !30
  %124 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 9
  %125 = load i32, ptr %9, align 4, !tbaa !30
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #4
  store float 0.000000e+00, ptr %127, align 4, !tbaa !32
  %128 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 8
  %129 = load i32, ptr %9, align 4, !tbaa !30
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %130) #4
  store float 0.000000e+00, ptr %131, align 4, !tbaa !32
  %132 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 9
  %133 = load i32, ptr %10, align 4, !tbaa !30
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #4
  store float 0.000000e+00, ptr %135, align 4, !tbaa !32
  %136 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %11, i32 0, i32 8
  %137 = load i32, ptr %10, align 4, !tbaa !30
  %138 = sext i32 %137 to i64
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %138) #4
  store float 0.000000e+00, ptr %139, align 4, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %140

140:                                              ; preds = %118
  %141 = load i32, ptr %9, align 4, !tbaa !30
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %9, align 4, !tbaa !30
  br label %113, !llvm.loop !36

143:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

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

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

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


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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk6reaper12EpochTracker26GetVoiceTransitionFeaturesEv(ptr noundef nonnull align 8 dereferenceable(500) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 424
  %3 = load float, ptr %2, align 8, !tbaa !5
  %4 = fpext float %3 to double
  %5 = fmul double %4, 5.000000e-01
  %6 = getelementptr inbounds i8, ptr %0, i64 372
  %7 = load float, ptr %6, align 4, !tbaa !28
  %8 = fpext float %7 to double
  %9 = fdiv double %5, %8
  %10 = fptrunc double %9 to float
  %11 = tail call noundef i32 @_ZN4sptk6reaperL7RoundUpEf(float noundef %10)
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %11, i32 1)
  %12 = getelementptr inbounds i8, ptr %0, i64 176
  %13 = getelementptr inbounds i8, ptr %0, i64 308
  %14 = load i32, ptr %13, align 4, !tbaa !29
  %15 = sext i32 %14 to i64
  tail call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 200
  %17 = load i32, ptr %13, align 4, !tbaa !29
  %18 = sext i32 %17 to i64
  tail call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %18)
  %19 = load i32, ptr %13, align 4, !tbaa !29
  %20 = sub nsw i32 %19, %spec.store.select
  %21 = icmp slt i32 %spec.store.select, %20
  br i1 %21, label %.lr.ph, label %..preheader_crit_edge

..preheader_crit_edge:                            ; preds = %1
  %.pre = zext nneg i32 %spec.store.select to i64
  br label %.preheader

.lr.ph:                                           ; preds = %1
  %22 = getelementptr inbounds i8, ptr %0, i64 152
  %23 = getelementptr inbounds i8, ptr %0, i64 428
  %24 = zext nneg i32 %spec.store.select to i64
  %25 = zext nneg i32 %spec.store.select to i64
  %wide.trip.count = zext nneg i32 %20 to i64
  br label %26

.preheader:                                       ; preds = %46, %..preheader_crit_edge
  %wide.trip.count46.pre-phi = phi i64 [ %.pre, %..preheader_crit_edge ], [ %24, %46 ]
  br label %50

26:                                               ; preds = %.lr.ph, %46
  %indvars.iv = phi i64 [ %24, %.lr.ph ], [ %indvars.iv.next, %46 ]
  %27 = add nuw nsw i64 %indvars.iv, %25
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %27) #4
  %29 = load float, ptr %28, align 4, !tbaa !30
  %30 = sub nuw nsw i64 %indvars.iv, %25
  %31 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %30) #4
  %32 = load float, ptr %31, align 4, !tbaa !30
  %33 = fsub float %29, %32
  %34 = load float, ptr %23, align 4, !tbaa !31
  %35 = fdiv float %33, %34
  %36 = fcmp ogt float %35, 1.000000e+00
  br i1 %36, label %.thread, label %37

37:                                               ; preds = %26
  %38 = fcmp olt float %35, -1.000000e+00
  br i1 %38, label %.thread, label %39

39:                                               ; preds = %37
  br label %.thread

.thread:                                          ; preds = %37, %26, %39
  %.sink = phi float [ %35, %39 ], [ 1.000000e+00, %26 ], [ -1.000000e+00, %37 ]
  %40 = fcmp olt float %.sink, 0.000000e+00
  %.031 = select i1 %40, float 0.000000e+00, float %.sink
  %41 = fcmp olt float %.sink, -1.000000e+00
  br i1 %41, label %46, label %42

42:                                               ; preds = %.thread
  %43 = fneg float %.sink
  %44 = fcmp ogt float %.sink, 0.000000e+00
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  br label %46

46:                                               ; preds = %.thread, %42, %45
  %.030 = phi float [ 0.000000e+00, %45 ], [ %43, %42 ], [ 1.000000e+00, %.thread ]
  %47 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv) #4
  store float %.031, ptr %47, align 4, !tbaa !30
  %48 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv) #4
  store float %.030, ptr %48, align 4, !tbaa !30
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %26, !llvm.loop !32

49:                                               ; preds = %50
  ret void

50:                                               ; preds = %.preheader, %50
  %indvars.iv43 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next44, %50 ]
  %51 = load i32, ptr %13, align 4, !tbaa !29
  %52 = trunc nuw nsw i64 %indvars.iv43 to i32
  %53 = xor i32 %52, -1
  %54 = add i32 %51, %53
  %55 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %indvars.iv43) #4
  store float 0.000000e+00, ptr %55, align 4, !tbaa !30
  %56 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv43) #4
  store float 0.000000e+00, ptr %56, align 4, !tbaa !30
  %57 = sext i32 %54 to i64
  %58 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %57) #4
  store float 0.000000e+00, ptr %58, align 4, !tbaa !30
  %59 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %57) #4
  store float 0.000000e+00, ptr %59, align 4, !tbaa !30
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %exitcond47.not = icmp eq i64 %indvars.iv.next44, %wide.trip.count46.pre-phi
  br i1 %exitcond47.not, label %49, label %50, !llvm.loop !34
}

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

attributes #0 = { 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 424}
!6 = !{!"_ZTSN4sptk6reaper12EpochTrackerE", !7, i64 8, !14, i64 32, !18, i64 56, !18, i64 80, !18, i64 104, !18, i64 128, !18, i64 152, !18, i64 176, !18, i64 200, !18, i64 224, !18, i64 248, !18, i64 272, !22, i64 296, !22, i64 300, !22, i64 304, !23, i64 308, !23, i64 312, !23, i64 316, !24, i64 320, !22, i64 352, !22, i64 356, !22, i64 360, !22, i64 364, !27, i64 368, !27, i64 369, !22, i64 372, !22, i64 376, !22, i64 380, !22, i64 384, !22, i64 388, !22, i64 392, !22, i64 396, !22, i64 400, !22, i64 404, !22, i64 408, !22, i64 412, !22, i64 416, !22, i64 420, !22, i64 424, !22, i64 428, !22, i64 432, !22, i64 436, !22, i64 440, !22, i64 444, !22, i64 448, !22, i64 452, !22, i64 456, !22, i64 460, !22, i64 464, !22, i64 468, !22, i64 472, !22, i64 476, !22, i64 480, !22, i64 484, !22, i64 488, !22, i64 492, !22, i64 496}
!7 = !{!"_ZTSSt6vectorIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker9ResidPeakESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6vectorIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN4sptk6reaper12EpochTracker14TrackerResultsESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"_ZTSSt6vectorIfSaIfEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!22 = !{!"float", !12, i64 0}
!23 = !{!"int", !12, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !12, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!26 = !{!"long", !12, i64 0}
!27 = !{!"bool", !12, i64 0}
!28 = !{!6, !22, i64 372}
!29 = !{!6, !23, i64 308}
!30 = !{!22, !22, i64 0}
!31 = !{!6, !22, i64 428}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}


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