; LLVM IR from sp-nitech/SPTK :: src/conversion (negative_derivative_of_phase_spectrum_to_cepstrum)

; 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.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum" = type <{ ptr, i32, [4 x i8], %"class.sptk::RealValuedFastFourierTransform", i8, [7 x i8] }>
%"class.sptk::RealValuedFastFourierTransform" = type { ptr, i32, i32, i32, %"class.sptk::FastFourierTransform", i8, %"class.std::vector" }
%"class.sptk::FastFourierTransform" = type { ptr, i32, i32, i32, i8, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum::Buffer" = type { ptr, %"class.std::vector", %"class.std::vector", %"class.sptk::RealValuedFastFourierTransform::Buffer" }
%"class.sptk::RealValuedFastFourierTransform::Buffer" = type { ptr, %"class.std::vector", %"class.std::vector" }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk43NegativeDerivativeOfPhaseSpectrumToCepstrum3RunERKSt6vectorIdSaIdEEPS3_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3) #0 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.0", 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.0", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %27 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum", ptr %26, i32 0, i32 3
  %28 = call noundef i32 @_ZNK4sptk30RealValuedFastFourierTransform12GetFftLengthEv(ptr noundef nonnull align 8 dereferenceable(104) %27)
  store i32 %28, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = sdiv i32 %29, 2
  store i32 %30, ptr %11, align 4, !tbaa !9
  %31 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum", ptr %26, i32 0, i32 4
  %32 = load i8, ptr %31, align 8, !tbaa !11, !range !20, !noundef !21
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %47

34:                                               ; preds = %4
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #5
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  %39 = sext i32 %38 to i64
  %40 = icmp ne i64 %36, %39
  br i1 %40, label %47, label %41

41:                                               ; preds = %34
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = icmp eq ptr null, %42
  br i1 %43, label %47, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = icmp eq ptr null, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %44, %41, %34, %4
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %172

48:                                               ; preds = %44
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  %51 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum", ptr %26, i32 0, i32 1
  %52 = load i32, ptr %51, align 8, !tbaa !22
  %53 = add nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = icmp ne i64 %50, %54
  br i1 %55, label %56, label %62

56:                                               ; preds = %48
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum", ptr %26, i32 0, i32 1
  %59 = load i32, ptr %58, align 8, !tbaa !22
  %60 = add nsw i32 %59, 1
  %61 = sext i32 %60 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %61)
  br label %62

62:                                               ; preds = %56, %48
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum::Buffer", ptr %63, i32 0, i32 1
  %65 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %64) #5
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = icmp ne i64 %65, %67
  br i1 %68, label %69, label %74

69:                                               ; preds = %62
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum::Buffer", ptr %70, i32 0, i32 1
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %73)
  br label %74

74:                                               ; preds = %69, %62
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #5
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %13, i32 0, i32 0
  store ptr %76, ptr %77, align 8
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #5
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %14, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum::Buffer", ptr %81, i32 0, i32 1
  %83 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #5
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %13, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %14, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8
  %91 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %86, ptr %88, ptr %90)
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #5
  %95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %18, i32 0, i32 0
  store ptr %94, ptr %95, align 8
  %96 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef 1) #5
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %17, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #5
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %19, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum::Buffer", ptr %101, i32 0, i32 1
  %103 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #5
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %103, ptr %104, align 8
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %106) #5
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %107, ptr %108, align 8
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %17, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  %111 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %19, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8
  %113 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  %115 = call ptr @_ZSt12reverse_copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %110, ptr %112, ptr %114)
  %116 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %115, ptr %116, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %117 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum", ptr %26, i32 0, i32 3
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum::Buffer", ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum::Buffer", ptr %120, i32 0, i32 2
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum::Buffer", ptr %122, i32 0, i32 3
  %124 = call noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %117, ptr noundef %119, ptr noundef %121, ptr noundef %123)
  br i1 %124, label %126, label %125

125:                                              ; preds = %74
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %172

126:                                              ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum::Buffer", ptr %127, i32 0, i32 1
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef 0) #5
  store ptr %129, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef 0) #5
  store ptr %131, ptr %24, align 8, !tbaa !5
  %132 = load ptr, ptr %24, align 8, !tbaa !5
  %133 = getelementptr inbounds double, ptr %132, i64 0
  store double 0.000000e+00, ptr %133, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 1, ptr %25, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %155, %126
  %135 = load i32, ptr %25, align 4, !tbaa !9
  %136 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum", ptr %26, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !22
  %138 = icmp sle i32 %135, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %134
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %158

140:                                              ; preds = %134
  %141 = load ptr, ptr %23, align 8, !tbaa !5
  %142 = load i32, ptr %25, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds double, ptr %141, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !23
  %146 = load i32, ptr %25, align 4, !tbaa !9
  %147 = load i32, ptr %11, align 4, !tbaa !9
  %148 = mul nsw i32 %146, %147
  %149 = sitofp i32 %148 to double
  %150 = fdiv double %145, %149
  %151 = load ptr, ptr %24, align 8, !tbaa !5
  %152 = load i32, ptr %25, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  store double %150, ptr %154, align 8, !tbaa !23
  br label %155

155:                                              ; preds = %140
  %156 = load i32, ptr %25, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %25, align 4, !tbaa !9
  br label %134, !llvm.loop !25

158:                                              ; preds = %139
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum", ptr %26, i32 0, i32 1
  %161 = load i32, ptr %160, align 8, !tbaa !22
  %162 = icmp eq i32 %159, %161
  br i1 %162, label %163, label %171

163:                                              ; preds = %158
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = getelementptr inbounds %"class.sptk::NegativeDerivativeOfPhaseSpectrumToCepstrum", ptr %26, i32 0, i32 1
  %166 = load i32, ptr %165, align 8, !tbaa !22
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds double, ptr %164, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !23
  %170 = fmul double %169, 5.000000e-01
  store double %170, ptr %168, align 8, !tbaa !23
  br label %171

171:                                              ; preds = %163, %158
  store i1 true, ptr %5, align 1
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %172

172:                                              ; preds = %171, %125, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %173 = load i1, ptr %5, align 1
  ret i1 %173
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4sptk30RealValuedFastFourierTransform12GetFftLengthEv(ptr noundef nonnull align 8 dereferenceable(104)) #2 align 2

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

; 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 @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr, ptr, ptr) #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZSt12reverse_copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr, ptr, ptr) #2

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

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

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

declare noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef, ptr noundef, ptr noundef) #4

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { "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 #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, !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 = !{!"int", !7, i64 0}
!11 = !{!12, !15, i64 120}
!12 = !{!"_ZTSN4sptk43NegativeDerivativeOfPhaseSpectrumToCepstrumE", !10, i64 8, !13, i64 16, !15, i64 120}
!13 = !{!"_ZTSN4sptk30RealValuedFastFourierTransformE", !10, i64 8, !10, i64 12, !10, i64 16, !14, i64 24, !15, i64 72, !16, i64 80}
!14 = !{!"_ZTSN4sptk20FastFourierTransformE", !10, i64 8, !10, i64 12, !10, i64 16, !15, i64 20, !16, i64 24}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!12, !10, i64 8}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; 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.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk43NegativeDerivativeOfPhaseSpectrumToCepstrum3RunERKSt6vectorIdSaIdEEPS3_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(121) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 align 2 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = tail call noundef i32 @_ZNK4sptk30RealValuedFastFourierTransform12GetFftLengthEv(ptr noundef nonnull align 8 dereferenceable(104) %7)
  %9 = sdiv i32 %8, 2
  %10 = getelementptr inbounds i8, ptr %0, i64 120
  %11 = load i8, ptr %10, align 8, !tbaa !5, !range !18, !noundef !19
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %13, label %91

13:                                               ; preds = %4
  %14 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %15 = add nsw i32 %9, 1
  %16 = sext i32 %15 to i64
  %17 = icmp ne i64 %14, %16
  %18 = icmp eq ptr %2, null
  %or.cond = or i1 %18, %17
  %19 = icmp eq ptr %3, null
  %or.cond3 = or i1 %19, %or.cond
  br i1 %or.cond3, label %91, label %20

20:                                               ; preds = %13
  %21 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !20
  %24 = add nsw i32 %23, 1
  %25 = sext i32 %24 to i64
  %.not = icmp eq i64 %21, %25
  br i1 %.not, label %27, label %26

26:                                               ; preds = %20
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %25)
  br label %27

27:                                               ; preds = %26, %20
  %28 = getelementptr inbounds i8, ptr %3, i64 8
  %29 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %30 = sext i32 %8 to i64
  %.not51 = icmp eq i64 %29, %30
  br i1 %.not51, label %32, label %31

31:                                               ; preds = %27
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %30)
  br label %32

32:                                               ; preds = %31, %27
  %33 = tail call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %34 = tail call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %35 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %36 = tail call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %33, ptr %34, ptr %35)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %37 = tail call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %37, ptr %5, align 8
  %38 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 1) #5
  %39 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %40 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  store ptr %40, ptr %6, align 8
  %41 = sext i32 %9 to i64
  %42 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %41) #5
  %43 = call ptr @_ZSt12reverse_copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %38, ptr %39, ptr %42)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %44 = getelementptr inbounds i8, ptr %3, i64 32
  %45 = getelementptr inbounds i8, ptr %3, i64 56
  %46 = call noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %7, ptr noundef nonnull %28, ptr noundef nonnull %44, ptr noundef nonnull %45)
  br i1 %46, label %47, label %91

47:                                               ; preds = %32
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 0) #5
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #5
  store double 0.000000e+00, ptr %49, align 8, !tbaa !21
  %50 = load i32, ptr %22, align 8, !tbaa !20
  %.not5253 = icmp slt i32 %50, 1
  br i1 %.not5253, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %47
  %51 = ptrtoint ptr %49 to i64
  %52 = ptrtoint ptr %48 to i64
  %53 = add nuw i32 %50, 1
  %wide.trip.count = zext i32 %53 to i64
  %54 = zext nneg i32 %50 to i64
  %min.iters.check = icmp eq i32 %50, 1
  %55 = sub i64 %51, %52
  %diff.check = icmp ult i64 %55, 16
  %or.cond56 = or i1 %min.iters.check, %diff.check
  br i1 %or.cond56, label %.lr.ph.preheader57, label %vector.ph

.lr.ph.preheader57:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %56 = zext nneg i32 %50 to i64
  %57 = and i32 %50, 1
  %lcmp.mod.not = icmp eq i32 %57, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader57
  %58 = getelementptr inbounds double, ptr %48, i64 %indvars.iv.ph
  %59 = load double, ptr %58, align 8, !tbaa !21
  %60 = trunc nsw i64 %indvars.iv.ph to i32
  %61 = mul i32 %9, %60
  %62 = sitofp i32 %61 to double
  %63 = fdiv double %59, %62
  %64 = getelementptr inbounds double, ptr %49, i64 %indvars.iv.ph
  store double %63, ptr %64, align 8, !tbaa !21
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.ph, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader57
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader57 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %65 = icmp eq i64 %indvars.iv.ph, %56
  br i1 %65, label %._crit_edge, label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %54, 2147483646
  %ind.end = or i64 %54, 1
  %broadcast.splatinsert = insertelement <2 x i32> poison, i32 %9, i64 0
  %broadcast.splat = shufflevector <2 x i32> %broadcast.splatinsert, <2 x i32> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 1, i32 2>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %66 = getelementptr inbounds double, ptr %48, i64 %offset.idx
  %wide.load = load <2 x double>, ptr %66, align 8, !tbaa !21
  %67 = mul <2 x i32> %broadcast.splat, %vec.ind
  %68 = sitofp <2 x i32> %67 to <2 x double>
  %69 = fdiv <2 x double> %wide.load, %68
  %70 = getelementptr inbounds double, ptr %49, i64 %offset.idx
  store <2 x double> %69, ptr %70, align 8, !tbaa !21
  %index.next = add nuw i64 %index, 2
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %71 = icmp eq i64 %index.next, %n.vec
  br i1 %71, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %54
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader57

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %47
  %72 = icmp eq i32 %9, %50
  br i1 %72, label %87, label %91

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %73 = getelementptr inbounds double, ptr %48, i64 %indvars.iv
  %74 = load double, ptr %73, align 8, !tbaa !21
  %75 = trunc i64 %indvars.iv to i32
  %76 = mul i32 %9, %75
  %77 = sitofp i32 %76 to double
  %78 = fdiv double %74, %77
  %79 = getelementptr inbounds double, ptr %49, i64 %indvars.iv
  store double %78, ptr %79, align 8, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %80 = getelementptr inbounds double, ptr %48, i64 %indvars.iv.next
  %81 = load double, ptr %80, align 8, !tbaa !21
  %82 = trunc i64 %indvars.iv.next to i32
  %83 = mul i32 %9, %82
  %84 = sitofp i32 %83 to double
  %85 = fdiv double %81, %84
  %86 = getelementptr inbounds double, ptr %49, i64 %indvars.iv.next
  store double %85, ptr %86, align 8, !tbaa !21
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph, !llvm.loop !27

87:                                               ; preds = %._crit_edge
  %88 = getelementptr inbounds double, ptr %49, i64 %41
  %89 = load double, ptr %88, align 8, !tbaa !21
  %90 = fmul double %89, 5.000000e-01
  store double %90, ptr %88, align 8, !tbaa !21
  br label %91

91:                                               ; preds = %._crit_edge, %87, %32, %4, %13
  %.045 = phi i1 [ false, %13 ], [ false, %4 ], [ false, %32 ], [ true, %87 ], [ true, %._crit_edge ]
  ret i1 %.045
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4sptk30RealValuedFastFourierTransform12GetFftLengthEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #2 align 2

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

; 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 @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr, ptr, ptr) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZSt12reverse_copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr, ptr, ptr) local_unnamed_addr #2

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

; 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 #2 align 2

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

declare noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { "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 #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, !12, i64 120}
!6 = !{!"_ZTSN4sptk43NegativeDerivativeOfPhaseSpectrumToCepstrumE", !7, i64 8, !10, i64 16, !12, i64 120}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN4sptk30RealValuedFastFourierTransformE", !7, i64 8, !7, i64 12, !7, i64 16, !11, i64 24, !12, i64 72, !13, i64 80}
!11 = !{!"_ZTSN4sptk20FastFourierTransformE", !7, i64 8, !7, i64 12, !7, i64 16, !12, i64 20, !13, i64 24}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTSSt6vectorIdSaIdEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!6, !7, i64 8}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !8, i64 0}
!23 = distinct !{!23, !24, !25, !26}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !24, !25}


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