; LLVM IR from sp-nitech/SPTK :: src/analysis (pitch_extraction_by_swipe)

; 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::swipe::vector" = type { i32, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.sptk::PitchExtractionBySwipe" = type <{ %"class.sptk::PitchExtractionInterface", i32, [4 x i8], double, double, double, double, i8, [7 x i8] }>
%"class.sptk::PitchExtractionInterface" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk22PitchExtractionBySwipe3GetERKSt6vectorIdSaIdEEPS3_S6_PNS_24PitchExtractionInterface8PolarityE(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) unnamed_addr #0 align 2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.sptk::swipe::vector", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"struct.sptk::swipe::vector", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8
  %21 = getelementptr inbounds %"class.sptk::PitchExtractionBySwipe", ptr %20, i32 0, i32 7
  %22 = load i8, ptr %21, align 8, !tbaa !9, !range !15, !noundef !16
  %23 = trunc i8 %22 to i1
  br i1 %23, label %24, label %27

24:                                               ; preds = %5
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  br i1 %26, label %27, label %28

27:                                               ; preds = %24, %5
  store i1 false, ptr %6, align 1
  br label %122

28:                                               ; preds = %24
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = icmp ne ptr null, %29
  br i1 %30, label %31, label %113

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.sptk::PitchExtractionBySwipe", ptr %20, i32 0, i32 3
  %34 = load double, ptr %33, align 8, !tbaa !17
  %35 = getelementptr inbounds %"class.sptk::PitchExtractionBySwipe", ptr %20, i32 0, i32 4
  %36 = load double, ptr %35, align 8, !tbaa !18
  %37 = getelementptr inbounds %"class.sptk::PitchExtractionBySwipe", ptr %20, i32 0, i32 5
  %38 = load double, ptr %37, align 8, !tbaa !19
  %39 = getelementptr inbounds %"class.sptk::PitchExtractionBySwipe", ptr %20, i32 0, i32 6
  %40 = load double, ptr %39, align 8, !tbaa !20
  %41 = getelementptr inbounds %"class.sptk::PitchExtractionBySwipe", ptr %20, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !21
  %43 = sitofp i32 %42 to double
  %44 = getelementptr inbounds %"class.sptk::PitchExtractionBySwipe", ptr %20, i32 0, i32 3
  %45 = load double, ptr %44, align 8, !tbaa !17
  %46 = fdiv double %43, %45
  %47 = call { i32, ptr } @_ZN4sptk5swipe5swipeERKSt6vectorIdSaIdEEddddd(ptr noundef nonnull align 8 dereferenceable(24) %32, double noundef %34, double noundef %36, double noundef %38, double noundef %40, double noundef %46)
  %48 = getelementptr inbounds { i32, ptr }, ptr %12, i32 0, i32 0
  %49 = extractvalue { i32, ptr } %47, 0
  store i32 %49, ptr %48, align 8
  %50 = getelementptr inbounds { i32, ptr }, ptr %12, i32 0, i32 1
  %51 = extractvalue { i32, ptr } %47, 1
  store ptr %51, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
  %54 = uitofp i64 %53 to double
  %55 = getelementptr inbounds %"class.sptk::PitchExtractionBySwipe", ptr %20, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !21
  %57 = sitofp i32 %56 to double
  %58 = fdiv double %54, %57
  %59 = call double @llvm.ceil.f64(double %58)
  %60 = fptosi double %59 to i32
  store i32 %60, ptr %13, align 4, !tbaa !22
  %61 = load i32, ptr %13, align 4, !tbaa !22
  %62 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %12, i32 0, i32 0
  %63 = load i32, ptr %62, align 8, !tbaa !23
  %64 = icmp slt i32 %61, %63
  br i1 %64, label %65, label %68

65:                                               ; preds = %31
  %66 = load i32, ptr %13, align 4, !tbaa !22
  %67 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %12, i32 0, i32 0
  store i32 %66, ptr %67, align 8, !tbaa !23
  br label %68

68:                                               ; preds = %65, %31
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load i32, ptr %13, align 4, !tbaa !22
  %71 = sext i32 %70 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %71)
  %72 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %12, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !25
  %74 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %12, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !25
  %76 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %12, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !23
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %75, i64 %78
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #7
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8
  %85 = call ptr @_ZSt4copyIPdN9__gnu_cxx17__normal_iteratorIS0_St6vectorIdSaIdEEEEET0_T_S8_S7_(ptr noundef %73, ptr noundef %79, ptr %84)
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %85, ptr %86, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #7
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %88, ptr %89, align 8
  %90 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %12, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !23
  %92 = sext i32 %91 to i64
  %93 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef %92) #7
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %93, ptr %94, align 8
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #7
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  %98 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %12, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !25
  %100 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %12, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !23
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %99, i64 %103
  %105 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %106, ptr %108, ptr noundef nonnull align 8 dereferenceable(8) %104)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !26
  %109 = getelementptr inbounds { i32, ptr }, ptr %19, i32 0, i32 0
  %110 = load i32, ptr %109, align 8
  %111 = getelementptr inbounds { i32, ptr }, ptr %19, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8
  call void @_ZN4sptk5swipe5freevENS0_6vectorE(i32 %110, ptr %112)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  br label %113

113:                                              ; preds = %68, %28
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = icmp ne ptr null, %114
  br i1 %115, label %116, label %117

116:                                              ; preds = %113
  br label %117

117:                                              ; preds = %116, %113
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = icmp ne ptr null, %118
  br i1 %119, label %120, label %121

120:                                              ; preds = %117
  br label %121

121:                                              ; preds = %120, %117
  store i1 true, ptr %6, align 1
  br label %122

122:                                              ; preds = %121, %27
  %123 = load i1, ptr %6, align 1
  ret i1 %123
}

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

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

declare { i32, ptr } @_ZN4sptk5swipe5swipeERKSt6vectorIdSaIdEEddddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef, double noundef, double noundef) #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIPdN9__gnu_cxx17__normal_iteratorIS0_St6vectorIdSaIdEEEEET0_T_S8_S7_(ptr noundef, ptr noundef, ptr) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

declare void @_ZN4sptk5swipe5freevENS0_6vectorE(i32, ptr) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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, !14, i64 48}
!10 = !{!"_ZTSN4sptk22PitchExtractionBySwipeE", !11, i64 0, !12, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !14, i64 48}
!11 = !{!"_ZTSN4sptk24PitchExtractionInterfaceE"}
!12 = !{!"int", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!10, !13, i64 16}
!18 = !{!10, !13, i64 24}
!19 = !{!10, !13, i64 32}
!20 = !{!10, !13, i64 40}
!21 = !{!10, !12, i64 8}
!22 = !{!12, !12, i64 0}
!23 = !{!24, !12, i64 0}
!24 = !{!"_ZTSN4sptk5swipe6vectorE", !12, i64 0, !6, i64 8}
!25 = !{!24, !6, i64 8}
!26 = !{i64 0, i64 4, !22, i64 8, i64 8, !5}


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

%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk22PitchExtractionBySwipe3GetERKSt6vectorIdSaIdEEPS3_S6_PNS_24PitchExtractionInterface8PolarityE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(49) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr nocapture noundef readnone %3, ptr nocapture noundef readnone %4) unnamed_addr #0 align 2 {
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = load i8, ptr %7, align 8, !tbaa !5, !range !13, !noundef !14
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %10, label %45

10:                                               ; preds = %5
  %11 = tail call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  br i1 %11, label %45, label %12

12:                                               ; preds = %10
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %45, label %13

13:                                               ; preds = %12
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load double, ptr %14, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = load double, ptr %16, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %0, i64 32
  %19 = load double, ptr %18, align 8, !tbaa !17
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = load double, ptr %20, align 8, !tbaa !18
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !19
  %24 = sitofp i32 %23 to double
  %25 = fdiv double %24, %15
  %26 = tail call { i32, ptr } @_ZN4sptk5swipe5swipeERKSt6vectorIdSaIdEEddddd(ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %15, double noundef %17, double noundef %19, double noundef %21, double noundef %25)
  %27 = extractvalue { i32, ptr } %26, 0
  %28 = extractvalue { i32, ptr } %26, 1
  %29 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %30 = uitofp i64 %29 to double
  %31 = load i32, ptr %22, align 8, !tbaa !19
  %32 = sitofp i32 %31 to double
  %33 = fdiv double %30, %32
  %34 = tail call double @llvm.ceil.f64(double %33)
  %35 = fptosi double %34 to i32
  %spec.select = tail call i32 @llvm.smin.i32(i32 %27, i32 %35)
  %36 = sext i32 %35 to i64
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %36)
  %37 = sext i32 %spec.select to i64
  %38 = getelementptr double, ptr %28, i64 %37
  %39 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %40 = tail call ptr @_ZSt4copyIPdN9__gnu_cxx17__normal_iteratorIS0_St6vectorIdSaIdEEEEET0_T_S8_S7_(ptr noundef %28, ptr noundef %38, ptr %39)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %41 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store ptr %41, ptr %6, align 8
  %42 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %37) #7
  %43 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %44 = getelementptr i8, ptr %38, i64 -8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %42, ptr %43, ptr noundef nonnull align 8 dereferenceable(8) %44)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN4sptk5swipe5freevENS0_6vectorE(i32 %spec.select, ptr %28)
  br label %45

45:                                               ; preds = %12, %13, %5, %10
  %.0 = phi i1 [ false, %10 ], [ false, %5 ], [ true, %13 ], [ true, %12 ]
  ret i1 %.0
}

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

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

declare { i32, ptr } @_ZN4sptk5swipe5swipeERKSt6vectorIdSaIdEEddddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIPdN9__gnu_cxx17__normal_iteratorIS0_St6vectorIdSaIdEEEEET0_T_S8_S7_(ptr noundef, ptr noundef, ptr) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

declare void @_ZN4sptk5swipe5freevENS0_6vectorE(i32, ptr) local_unnamed_addr #3

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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, !12, i64 48}
!6 = !{!"_ZTSN4sptk22PitchExtractionBySwipeE", !7, i64 0, !8, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48}
!7 = !{!"_ZTSN4sptk24PitchExtractionInterfaceE"}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!6, !11, i64 16}
!16 = !{!6, !11, i64 24}
!17 = !{!6, !11, i64 32}
!18 = !{!6, !11, i64 40}
!19 = !{!6, !8, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass