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

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 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: 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 noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk6reaper12EpochTracker15ComputeFeaturesEv(ptr noundef nonnull align 8 dereferenceable(500) %0) #2 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8
  %7 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 13
  %8 = load float, ptr %7, align 8, !tbaa !9
  %9 = fpext float %8 to double
  %10 = fcmp ole double %9, 0.000000e+00
  br i1 %10, label %11, label %14

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

14:                                               ; preds = %1
  %15 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 3
  %16 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 13
  %17 = load float, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 44
  %19 = load float, ptr %18, align 8, !tbaa !29
  %20 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 45
  %21 = load float, ptr %20, align 4, !tbaa !30
  %22 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 27
  %23 = load float, ptr %22, align 4, !tbaa !31
  %24 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 46
  %25 = load float, ptr %24, align 8, !tbaa !32
  %26 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 7
  %27 = call noundef zeroext i1 @_ZN4sptk6reaper12EpochTracker22GetBandpassedRmsSignalERKSt6vectorIfSaIfEEfffffPS4_(ptr noundef nonnull align 8 dereferenceable(500) %6, ptr noundef nonnull align 8 dereferenceable(24) %15, float noundef %17, float noundef %19, float noundef %21, float noundef %23, float noundef %25, ptr noundef %26)
  br i1 %27, label %31, label %28

28:                                               ; preds = %14
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.2) #4
  store i1 false, ptr %2, align 1
  br label %90

31:                                               ; preds = %14
  %32 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 3
  %33 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 13
  %34 = load float, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 4
  %36 = call noundef zeroext i1 @_ZN4sptk6reaper12EpochTracker14GetLpcResidualERKSt6vectorIfSaIfEEfPS4_(ptr noundef nonnull align 8 dereferenceable(500) %6, ptr noundef nonnull align 8 dereferenceable(24) %32, float noundef %34, ptr noundef %35)
  br i1 %36, label %40, label %37

37:                                               ; preds = %31
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.3) #4
  store i1 false, ptr %2, align 1
  br label %90

40:                                               ; preds = %31
  %41 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 7
  %42 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #4
  %43 = trunc i64 %42 to i32
  %44 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 16
  store i32 %43, ptr %44, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store float 0.000000e+00, ptr %4, align 4, !tbaa !34
  %45 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 4
  %46 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 14
  %47 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 15
  call void @_ZN4sptk6reaper12EpochTracker16GetSymmetryStatsERKSt6vectorIfSaIfEEPfS7_S7_(ptr noundef nonnull align 8 dereferenceable(500) %6, ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef %46, ptr noundef %47, ptr noundef %4)
  %48 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 14
  %49 = load float, ptr %48, align 4, !tbaa !35
  %50 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 15
  %51 = load float, ptr %50, align 8, !tbaa !36
  %52 = fcmp ogt float %49, %51
  br i1 %52, label %53, label %81

53:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !37
  br label %54

54:                                               ; preds = %77, %53
  %55 = load i64, ptr %5, align 8, !tbaa !37
  %56 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 4
  %57 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #4
  %58 = icmp ult i64 %55, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %80

60:                                               ; preds = %54
  %61 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 4
  %62 = load i64, ptr %5, align 8, !tbaa !37
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %62) #4
  %64 = load float, ptr %63, align 4, !tbaa !34
  %65 = fneg float %64
  %66 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 4
  %67 = load i64, ptr %5, align 8, !tbaa !37
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %67) #4
  store float %65, ptr %68, align 4, !tbaa !34
  %69 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 3
  %70 = load i64, ptr %5, align 8, !tbaa !37
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %70) #4
  %72 = load float, ptr %71, align 4, !tbaa !34
  %73 = fneg float %72
  %74 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 3
  %75 = load i64, ptr %5, align 8, !tbaa !37
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %75) #4
  store float %73, ptr %76, align 4, !tbaa !34
  br label %77

77:                                               ; preds = %60
  %78 = load i64, ptr %5, align 8, !tbaa !37
  %79 = add i64 %78, 1
  store i64 %79, ptr %5, align 8, !tbaa !37
  br label %54, !llvm.loop !38

80:                                               ; preds = %59
  br label %81

81:                                               ; preds = %80, %40
  %82 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 4
  %83 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 13
  %84 = load float, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 5
  call void @_ZN4sptk6reaper12EpochTracker18NormalizeAmplitudeERKSt6vectorIfSaIfEEfPS4_(ptr noundef nonnull align 8 dereferenceable(500) %6, ptr noundef nonnull align 8 dereferenceable(24) %82, float noundef %84, ptr noundef %85)
  call void @_ZN4sptk6reaper12EpochTracker17GetResidualPulsesEv(ptr noundef nonnull align 8 dereferenceable(500) %6)
  %86 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 47
  %87 = load float, ptr %86, align 4, !tbaa !40
  %88 = getelementptr inbounds %"class.sptk::reaper::EpochTracker", ptr %6, i32 0, i32 48
  %89 = load float, ptr %88, align 8, !tbaa !41
  call void @_ZN4sptk6reaper12EpochTracker20GetPulseCorrelationsEff(ptr noundef nonnull align 8 dereferenceable(500) %6, float noundef %87, float noundef %89)
  call void @_ZN4sptk6reaper12EpochTracker26GetVoiceTransitionFeaturesEv(ptr noundef nonnull align 8 dereferenceable(500) %6)
  call void @_ZN4sptk6reaper12EpochTracker22GetRmsVoicingModulatorEv(ptr noundef nonnull align 8 dereferenceable(500) %6)
  store i1 true, ptr %2, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %90

90:                                               ; preds = %81, %37, %28, %11
  %91 = load i1, ptr %2, align 1
  ret i1 %91
}

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 296}
!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 440}
!30 = !{!10, !23, i64 444}
!31 = !{!10, !23, i64 372}
!32 = !{!10, !23, i64 448}
!33 = !{!10, !24, i64 308}
!34 = !{!23, !23, i64 0}
!35 = !{!10, !23, i64 300}
!36 = !{!10, !23, i64 304}
!37 = !{!27, !27, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!10, !23, i64 452}
!41 = !{!10, !23, i64 456}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 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 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 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: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4sptk6reaper12EpochTracker14GetLpcResidualERKSt6vectorIfSaIfEEfPS4_(ptr noundef nonnull align 8 dereferenceable(500), ptr noundef nonnull align 8 dereferenceable(24), float noundef, ptr noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk6reaper12EpochTracker15ComputeFeaturesEv(ptr noundef nonnull align 8 dereferenceable(500) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca float, align 4
  %3 = getelementptr inbounds i8, ptr %0, i64 296
  %4 = load float, ptr %3, align 8, !tbaa !5
  %5 = fcmp ugt float %4, 0.000000e+00
  br i1 %5, label %9, label %6

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

9:                                                ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = getelementptr inbounds i8, ptr %0, i64 440
  %12 = load float, ptr %11, align 8, !tbaa !29
  %13 = getelementptr inbounds i8, ptr %0, i64 444
  %14 = load float, ptr %13, align 4, !tbaa !30
  %15 = getelementptr inbounds i8, ptr %0, i64 372
  %16 = load float, ptr %15, align 4, !tbaa !31
  %17 = getelementptr inbounds i8, ptr %0, i64 448
  %18 = load float, ptr %17, align 8, !tbaa !32
  %19 = getelementptr inbounds i8, ptr %0, i64 152
  %20 = tail call noundef zeroext i1 @_ZN4sptk6reaper12EpochTracker22GetBandpassedRmsSignalERKSt6vectorIfSaIfEEfffffPS4_(ptr noundef nonnull align 8 dereferenceable(500) %0, ptr noundef nonnull align 8 dereferenceable(24) %10, float noundef %4, float noundef %12, float noundef %14, float noundef %16, float noundef %18, ptr noundef nonnull %19)
  br i1 %20, label %24, label %21

21:                                               ; preds = %9
  %22 = load ptr, ptr @stderr, align 8, !tbaa !28
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.2) #4
  br label %58

24:                                               ; preds = %9
  %25 = load float, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %0, i64 80
  %27 = tail call noundef zeroext i1 @_ZN4sptk6reaper12EpochTracker14GetLpcResidualERKSt6vectorIfSaIfEEfPS4_(ptr noundef nonnull align 8 dereferenceable(500) %0, ptr noundef nonnull align 8 dereferenceable(24) %10, float noundef %25, ptr noundef nonnull %26)
  br i1 %27, label %31, label %28

28:                                               ; preds = %24
  %29 = load ptr, ptr @stderr, align 8, !tbaa !28
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.3) #4
  br label %58

31:                                               ; preds = %24
  %32 = tail call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %33 = trunc i64 %32 to i32
  %34 = getelementptr inbounds i8, ptr %0, i64 308
  store i32 %33, ptr %34, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store float 0.000000e+00, ptr %2, align 4, !tbaa !34
  %35 = getelementptr inbounds i8, ptr %0, i64 300
  %36 = getelementptr inbounds i8, ptr %0, i64 304
  call void @_ZN4sptk6reaper12EpochTracker16GetSymmetryStatsERKSt6vectorIfSaIfEEPfS7_S7_(ptr noundef nonnull align 8 dereferenceable(500) %0, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull %35, ptr noundef nonnull %36, ptr noundef nonnull %2)
  %37 = load float, ptr %35, align 4, !tbaa !35
  %38 = load float, ptr %36, align 8, !tbaa !36
  %39 = fcmp ogt float %37, %38
  br i1 %39, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %31
  %40 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  %.not = icmp eq i64 %40, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.08 = phi i64 [ %49, %.lr.ph ], [ 0, %.preheader ]
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %.08) #5
  %42 = load float, ptr %41, align 4, !tbaa !34
  %43 = fneg float %42
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %.08) #5
  store float %43, ptr %44, align 4, !tbaa !34
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.08) #5
  %46 = load float, ptr %45, align 4, !tbaa !34
  %47 = fneg float %46
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.08) #5
  store float %47, ptr %48, align 4, !tbaa !34
  %49 = add nuw i64 %.08, 1
  %50 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  %51 = icmp ult i64 %49, %50
  br i1 %51, label %.lr.ph, label %.loopexit, !llvm.loop !37

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %31
  %52 = load float, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %0, i64 104
  call void @_ZN4sptk6reaper12EpochTracker18NormalizeAmplitudeERKSt6vectorIfSaIfEEfPS4_(ptr noundef nonnull align 8 dereferenceable(500) %0, ptr noundef nonnull align 8 dereferenceable(24) %26, float noundef %52, ptr noundef nonnull %53)
  call void @_ZN4sptk6reaper12EpochTracker17GetResidualPulsesEv(ptr noundef nonnull align 8 dereferenceable(500) %0)
  %54 = getelementptr inbounds i8, ptr %0, i64 452
  %55 = load float, ptr %54, align 4, !tbaa !39
  %56 = getelementptr inbounds i8, ptr %0, i64 456
  %57 = load float, ptr %56, align 8, !tbaa !40
  call void @_ZN4sptk6reaper12EpochTracker20GetPulseCorrelationsEff(ptr noundef nonnull align 8 dereferenceable(500) %0, float noundef %55, float noundef %57)
  call void @_ZN4sptk6reaper12EpochTracker26GetVoiceTransitionFeaturesEv(ptr noundef nonnull align 8 dereferenceable(500) %0)
  call void @_ZN4sptk6reaper12EpochTracker22GetRmsVoicingModulatorEv(ptr noundef nonnull align 8 dereferenceable(500) %0)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  br label %58

58:                                               ; preds = %.loopexit, %28, %21, %6
  %.07 = phi i1 [ false, %6 ], [ true, %.loopexit ], [ false, %28 ], [ false, %21 ]
  ret i1 %.07
}

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 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 = { 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 #4 = { cold nounwind }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !22, i64 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 = !{!11, !11, i64 0}
!29 = !{!6, !22, i64 440}
!30 = !{!6, !22, i64 444}
!31 = !{!6, !22, i64 372}
!32 = !{!6, !22, i64 448}
!33 = !{!6, !23, i64 308}
!34 = !{!22, !22, i64 0}
!35 = !{!6, !22, i64 300}
!36 = !{!6, !22, i64 304}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!6, !22, i64 452}
!40 = !{!6, !22, i64 456}


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