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

; 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.anon = type { i8 }
%class.anon.1 = type { double }
%"class.sptk::CepstrumToAutocorrelation" = type <{ ptr, i32, i32, %"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::CepstrumToAutocorrelation::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 @_ZNK4sptk25CepstrumToAutocorrelation3RunERKSt6vectorIdSaIdEEPS3_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 i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.0", 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 %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca double, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %class.anon, align 1
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca double, align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %class.anon.1, align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  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
  %34 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %35 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation", ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 8, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %10, align 4, !tbaa !19
  %38 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation", ptr %34, i32 0, i32 4
  %39 = load i8, ptr %38, align 8, !tbaa !20, !range !21, !noundef !22
  %40 = trunc i8 %39 to i1
  br i1 %40, label %41, label %53

41:                                               ; preds = %4
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #5
  %44 = load i32, ptr %10, align 4, !tbaa !19
  %45 = sext i32 %44 to i64
  %46 = icmp ne i64 %43, %45
  br i1 %46, label %53, label %47

47:                                               ; preds = %41
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = icmp eq ptr null, %48
  br i1 %49, label %53, label %50

50:                                               ; preds = %47
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = icmp eq ptr null, %51
  br i1 %52, label %53, label %54

53:                                               ; preds = %50, %47, %41, %4
  store i1 false, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %187

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %55 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation", ptr %34, i32 0, i32 2
  %56 = load i32, ptr %55, align 4, !tbaa !23
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %12, align 4, !tbaa !19
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #5
  %60 = load i32, ptr %12, align 4, !tbaa !19
  %61 = sext i32 %60 to i64
  %62 = icmp ne i64 %59, %61
  br i1 %62, label %63, label %67

63:                                               ; preds = %54
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = load i32, ptr %12, align 4, !tbaa !19
  %66 = sext i32 %65 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66)
  br label %67

67:                                               ; preds = %63, %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %68 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation", ptr %34, i32 0, i32 3
  %69 = call noundef i32 @_ZNK4sptk30RealValuedFastFourierTransform12GetFftLengthEv(ptr noundef nonnull align 8 dereferenceable(104) %68)
  store i32 %69, ptr %13, align 4, !tbaa !19
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation::Buffer", ptr %70, i32 0, i32 1
  %72 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #5
  %73 = load i32, ptr %13, align 4, !tbaa !19
  %74 = sext i32 %73 to i64
  %75 = icmp ne i64 %72, %74
  br i1 %75, label %76, label %81

76:                                               ; preds = %67
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation::Buffer", ptr %77, i32 0, i32 1
  %79 = load i32, ptr %13, align 4, !tbaa !19
  %80 = sext i32 %79 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %80)
  br label %81

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

124:                                              ; preds = %81
  store i1 false, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %186

125:                                              ; preds = %81
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation::Buffer", ptr %126, i32 0, i32 1
  %128 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %127) #5
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %128, ptr %129, align 8
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation::Buffer", ptr %130, i32 0, i32 1
  %132 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %131) #5
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %132, ptr %133, align 8
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation::Buffer", ptr %134, i32 0, i32 1
  %136 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #5
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8
  %144 = call ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ZNK4sptk25CepstrumToAutocorrelation3RunERKS5_PS5_PNS8_6BufferEE3$_0ET0_T_SG_SF_T1_"(ptr %139, ptr %141, ptr %143)
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  %146 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation", ptr %34, i32 0, i32 3
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation::Buffer", ptr %147, i32 0, i32 1
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation::Buffer", ptr %149, i32 0, i32 2
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation::Buffer", ptr %151, i32 0, i32 3
  %153 = call noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %146, ptr noundef %148, ptr noundef %150, ptr noundef %152)
  br i1 %153, label %155, label %154

154:                                              ; preds = %125
  store i1 false, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %186

155:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %156 = load i32, ptr %13, align 4, !tbaa !19
  %157 = sitofp i32 %156 to double
  %158 = fdiv double 1.000000e+00, %157
  store double %158, ptr %27, align 8, !tbaa !24
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation::Buffer", ptr %159, i32 0, i32 1
  %161 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #5
  %162 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = getelementptr inbounds %"class.sptk::CepstrumToAutocorrelation::Buffer", ptr %163, i32 0, i32 1
  %165 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #5
  %166 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %165, ptr %166, align 8
  %167 = load i32, ptr %12, align 4, !tbaa !19
  %168 = sext i32 %167 to i64
  %169 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %30, i64 noundef %168) #5
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %169, ptr %170, align 8
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #5
  %173 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %172, ptr %173, align 8
  %174 = getelementptr inbounds %class.anon.1, ptr %32, i32 0, i32 0
  %175 = load double, ptr %27, align 8, !tbaa !24
  store double %175, ptr %174, align 8, !tbaa !26
  %176 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8
  %178 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8
  %180 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8
  %182 = getelementptr inbounds %class.anon.1, ptr %32, i32 0, i32 0
  %183 = load double, ptr %182, align 8
  %184 = call ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ZNK4sptk25CepstrumToAutocorrelation3RunERKS5_PS5_PNS8_6BufferEE3$_1ET0_T_SG_SF_T1_"(ptr %177, ptr %179, ptr %181, double %183)
  %185 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %184, ptr %185, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  store i1 true, ptr %5, align 1
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %186

186:                                              ; preds = %155, %154, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %187

187:                                              ; preds = %186, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %188 = load i1, ptr %5, align 1
  ret i1 %188
}

; 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 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4sptk30RealValuedFastFourierTransform12GetFftLengthEv(ptr noundef nonnull align 8 dereferenceable(104)) #2 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8)) #3

; 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: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #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 uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ZNK4sptk25CepstrumToAutocorrelation3RunERKS5_PS5_PNS8_6BufferEE3$_0ET0_T_SG_SF_T1_"(ptr, ptr, ptr) #0

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ZNK4sptk25CepstrumToAutocorrelation3RunERKS5_PS5_PNS8_6BufferEE3$_1ET0_T_SG_SF_T1_"(ptr, ptr, ptr, double) #0

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, !11, i64 8}
!10 = !{!"_ZTSN4sptk25CepstrumToAutocorrelationE", !11, i64 8, !11, i64 12, !12, i64 16, !14, i64 120}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN4sptk30RealValuedFastFourierTransformE", !11, i64 8, !11, i64 12, !11, i64 16, !13, i64 24, !14, i64 72, !15, i64 80}
!13 = !{!"_ZTSN4sptk20FastFourierTransformE", !11, i64 8, !11, i64 12, !11, i64 16, !14, i64 20, !15, i64 24}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!11, !11, i64 0}
!20 = !{!10, !14, i64 120}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!10, !11, i64 12}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !7, i64 0}
!26 = !{!27, !25, i64 0}
!27 = !{!"_ZTSZNK4sptk25CepstrumToAutocorrelation3RunERKSt6vectorIdSaIdEEPS3_PNS0_6BufferEE3$_1", !25, i64 0}


; 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 @_ZNK4sptk25CepstrumToAutocorrelation3RunERKSt6vectorIdSaIdEEPS3_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", align 8
  %6 = alloca double, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 120
  %9 = load i8, ptr %8, align 8, !tbaa !5, !range !18, !noundef !19
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %11, label %59

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !20
  %14 = add nsw i32 %13, 1
  %15 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %16 = sext i32 %14 to i64
  %17 = icmp ne i64 %15, %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 %59, label %20

20:                                               ; preds = %11
  %21 = getelementptr inbounds i8, ptr %0, i64 12
  %22 = load i32, ptr %21, align 4, !tbaa !21
  %23 = add nsw i32 %22, 1
  %24 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %25 = sext i32 %23 to i64
  %.not = icmp eq i64 %24, %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 %0, i64 16
  %29 = tail call noundef i32 @_ZNK4sptk30RealValuedFastFourierTransform12GetFftLengthEv(ptr noundef nonnull align 8 dereferenceable(104) %28)
  %30 = getelementptr inbounds i8, ptr %3, i64 8
  %31 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  %32 = sext i32 %29 to i64
  %.not56 = icmp eq i64 %31, %32
  br i1 %.not56, label %34, label %33

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

34:                                               ; preds = %33, %27
  %35 = tail call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %36 = tail call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %37 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  %38 = tail call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %35, ptr %36, ptr %37)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %39 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  store ptr %39, ptr %5, align 8
  %40 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %15) #5
  %41 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store double 0.000000e+00, ptr %6, align 8, !tbaa !22
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %40, ptr %41, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %42 = getelementptr inbounds i8, ptr %3, i64 32
  %43 = getelementptr inbounds i8, ptr %3, i64 56
  %44 = call noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %28, ptr noundef nonnull %30, ptr noundef nonnull %42, ptr noundef nonnull %43)
  br i1 %44, label %45, label %59

45:                                               ; preds = %34
  %46 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  %47 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  %48 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  %49 = call ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ZNK4sptk25CepstrumToAutocorrelation3RunERKS5_PS5_PNS8_6BufferEE3$_0ET0_T_SG_SF_T1_"(ptr %46, ptr %47, ptr %48)
  %50 = call noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %28, ptr noundef nonnull %30, ptr noundef nonnull %42, ptr noundef nonnull %43)
  br i1 %50, label %51, label %59

51:                                               ; preds = %45
  %52 = sitofp i32 %29 to double
  %53 = fdiv double 1.000000e+00, %52
  %54 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %55 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  store ptr %55, ptr %7, align 8
  %56 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %25) #5
  %57 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %58 = call ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ZNK4sptk25CepstrumToAutocorrelation3RunERKS5_PS5_PNS8_6BufferEE3$_1ET0_T_SG_SF_T1_"(ptr %54, ptr %56, ptr %57, double %53)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %59

59:                                               ; preds = %51, %34, %45, %4, %11
  %.1 = phi i1 [ false, %11 ], [ false, %4 ], [ true, %51 ], [ false, %34 ], [ false, %45 ]
  ret i1 %.1
}

; 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 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4sptk30RealValuedFastFourierTransform12GetFftLengthEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #2 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: 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 #3

; 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) 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 uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ZNK4sptk25CepstrumToAutocorrelation3RunERKS5_PS5_PNS8_6BufferEE3$_0ET0_T_SG_SF_T1_"(ptr, ptr, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ZNK4sptk25CepstrumToAutocorrelation3RunERKS5_PS5_PNS8_6BufferEE3$_1ET0_T_SG_SF_T1_"(ptr, ptr, ptr, double) local_unnamed_addr #0

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 = !{!"_ZTSN4sptk25CepstrumToAutocorrelationE", !7, i64 8, !7, i64 12, !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 = !{!6, !7, i64 12}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !8, i64 0}


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