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

; 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::FilterCoefficientsToPhaseSpectrum" = type <{ ptr, i32, i32, i32, i8, [3 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::FilterCoefficientsToPhaseSpectrum::Buffer" = type { ptr, %"class.sptk::RealValuedFastFourierTransform::Buffer", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.sptk::RealValuedFastFourierTransform::Buffer" = type { ptr, %"class.std::vector", %"class.std::vector" }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk33FilterCoefficientsToPhaseSpectrum3RunERKSt6vectorIdSaIdEES5_PS3_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(129) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, ptr noundef %4) #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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.0", 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 %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca double, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", 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 double, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca i32, align 4
  %40 = alloca double, 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
  %41 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %42 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %12, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %45 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 2
  %46 = load i32, ptr %45, align 4, !tbaa !20
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %13, align 4, !tbaa !19
  %48 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 7
  %49 = load i8, ptr %48, align 8, !tbaa !21, !range !22, !noundef !23
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %69

51:                                               ; preds = %5
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #7
  %54 = load i32, ptr %12, align 4, !tbaa !19
  %55 = sext i32 %54 to i64
  %56 = icmp ne i64 %53, %55
  br i1 %56, label %69, label %57

57:                                               ; preds = %51
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #7
  %60 = load i32, ptr %13, align 4, !tbaa !19
  %61 = sext i32 %60 to i64
  %62 = icmp ne i64 %59, %61
  br i1 %62, label %69, label %63

63:                                               ; preds = %57
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = icmp eq ptr null, %64
  br i1 %65, label %69, label %66

66:                                               ; preds = %63
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = icmp eq ptr null, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %66, %63, %57, %51, %5
  store i1 false, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %323

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %71 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 3
  %72 = load i32, ptr %71, align 8, !tbaa !24
  %73 = sdiv i32 %72, 2
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %15, align 4, !tbaa !19
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #7
  %77 = load i32, ptr %15, align 4, !tbaa !19
  %78 = sext i32 %77 to i64
  %79 = icmp ne i64 %76, %78
  br i1 %79, label %80, label %84

80:                                               ; preds = %70
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load i32, ptr %15, align 4, !tbaa !19
  %83 = sext i32 %82 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %83)
  br label %84

84:                                               ; preds = %80, %70
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %85, i32 0, i32 2
  %87 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #7
  %88 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 3
  %89 = load i32, ptr %88, align 8, !tbaa !24
  %90 = sext i32 %89 to i64
  %91 = icmp ne i64 %87, %90
  br i1 %91, label %92, label %98

92:                                               ; preds = %84
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %93, i32 0, i32 2
  %95 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 3
  %96 = load i32, ptr %95, align 8, !tbaa !24
  %97 = sext i32 %96 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %97)
  br label %98

98:                                               ; preds = %92, %84
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %99, i32 0, i32 3
  %101 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #7
  %102 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 3
  %103 = load i32, ptr %102, align 8, !tbaa !24
  %104 = sext i32 %103 to i64
  %105 = icmp ne i64 %101, %104
  br i1 %105, label %106, label %112

106:                                              ; preds = %98
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %107, i32 0, i32 3
  %109 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 3
  %110 = load i32, ptr %109, align 8, !tbaa !24
  %111 = sext i32 %110 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %111)
  br label %112

112:                                              ; preds = %106, %98
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #7
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %16, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #7
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %17, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %119, i32 0, i32 2
  %121 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #7
  %122 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %121, ptr %122, align 8
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %16, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %17, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8
  %129 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %124, ptr %126, ptr %128)
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %129, ptr %130, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %131, i32 0, i32 2
  %133 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #7
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  %135 = load i32, ptr %12, align 4, !tbaa !19
  %136 = sext i32 %135 to i64
  %137 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %136) #7
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %137, ptr %138, align 8
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %139, i32 0, i32 2
  %141 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #7
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %141, ptr %142, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store double 0.000000e+00, ptr %23, align 8, !tbaa !25
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %144, ptr %146, ptr noundef nonnull align 8 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %147) #7
  %149 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %24, i32 0, i32 0
  store ptr %148, ptr %149, align 8
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %150) #7
  %152 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %25, i32 0, i32 0
  store ptr %151, ptr %152, align 8
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %153, i32 0, i32 3
  %155 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %154) #7
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %155, ptr %156, align 8
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %24, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8
  %159 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %25, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8
  %161 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8
  %163 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %158, ptr %160, ptr %162)
  %164 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %165, i32 0, i32 3
  %167 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #7
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  %169 = load i32, ptr %13, align 4, !tbaa !19
  %170 = sext i32 %169 to i64
  %171 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %29, i64 noundef %170) #7
  %172 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %171, ptr %172, align 8
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %173, i32 0, i32 3
  %175 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %174) #7
  %176 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %175, ptr %176, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store double 0.000000e+00, ptr %31, align 8, !tbaa !25
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8
  %179 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %178, ptr %180, ptr noundef nonnull align 8 dereferenceable(8) %31)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  %181 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 6
  %182 = load ptr, ptr %11, align 8, !tbaa !5
  %183 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %182, i32 0, i32 2
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %184, i32 0, i32 4
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %186, i32 0, i32 1
  %188 = call noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %181, ptr noundef %183, ptr noundef %185, ptr noundef %187)
  br i1 %188, label %190, label %189

189:                                              ; preds = %112
  store i1 false, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %322

190:                                              ; preds = %112
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %191, i32 0, i32 3
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef 0) #7
  store double 1.000000e+00, ptr %193, align 8, !tbaa !25
  %194 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 6
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %195, i32 0, i32 3
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %197, i32 0, i32 5
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %199, i32 0, i32 1
  %201 = call noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %194, ptr noundef %196, ptr noundef %198, ptr noundef %200)
  br i1 %201, label %203, label %202

202:                                              ; preds = %190
  store i1 false, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %322

203:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %204, i64 noundef 0) #7
  store ptr %205, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %206, i32 0, i32 2
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %207, i64 noundef 0) #7
  store ptr %208, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %209, i32 0, i32 3
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %210, i64 noundef 0) #7
  store ptr %211, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %212 = load ptr, ptr %11, align 8, !tbaa !5
  %213 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %212, i32 0, i32 4
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %213, i64 noundef 0) #7
  store ptr %214, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum::Buffer", ptr %215, i32 0, i32 5
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %216, i64 noundef 0) #7
  store ptr %217, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  store double 0x3FD45F306DC9C883, ptr %37, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  store double 0.000000e+00, ptr %38, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  store i32 0, ptr %39, align 4, !tbaa !19
  br label %218

218:                                              ; preds = %318, %203
  %219 = load i32, ptr %39, align 4, !tbaa !19
  %220 = load i32, ptr %15, align 4, !tbaa !19
  %221 = icmp slt i32 %219, %220
  br i1 %221, label %223, label %222

222:                                              ; preds = %218
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %321

223:                                              ; preds = %218
  %224 = load ptr, ptr %35, align 8, !tbaa !5
  %225 = load i32, ptr %39, align 4, !tbaa !19
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds double, ptr %224, i64 %226
  %228 = load double, ptr %227, align 8, !tbaa !25
  %229 = load ptr, ptr %34, align 8, !tbaa !5
  %230 = load i32, ptr %39, align 4, !tbaa !19
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds double, ptr %229, i64 %231
  %233 = load double, ptr %232, align 8, !tbaa !25
  %234 = load ptr, ptr %33, align 8, !tbaa !5
  %235 = load i32, ptr %39, align 4, !tbaa !19
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds double, ptr %234, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !25
  %239 = load ptr, ptr %36, align 8, !tbaa !5
  %240 = load i32, ptr %39, align 4, !tbaa !19
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds double, ptr %239, i64 %241
  %243 = load double, ptr %242, align 8, !tbaa !25
  %244 = fmul double %238, %243
  %245 = fneg double %244
  %246 = call double @llvm.fmuladd.f64(double %228, double %233, double %245)
  %247 = load ptr, ptr %33, align 8, !tbaa !5
  %248 = load i32, ptr %39, align 4, !tbaa !19
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds double, ptr %247, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !25
  %252 = load ptr, ptr %34, align 8, !tbaa !5
  %253 = load i32, ptr %39, align 4, !tbaa !19
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds double, ptr %252, i64 %254
  %256 = load double, ptr %255, align 8, !tbaa !25
  %257 = load ptr, ptr %35, align 8, !tbaa !5
  %258 = load i32, ptr %39, align 4, !tbaa !19
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds double, ptr %257, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !25
  %262 = load ptr, ptr %36, align 8, !tbaa !5
  %263 = load i32, ptr %39, align 4, !tbaa !19
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds double, ptr %262, i64 %264
  %266 = load double, ptr %265, align 8, !tbaa !25
  %267 = fmul double %261, %266
  %268 = call double @llvm.fmuladd.f64(double %251, double %256, double %267)
  %269 = call double @atan2(double noundef %246, double noundef %268) #7
  %270 = fmul double 0x3FD45F306DC9C883, %269
  %271 = load ptr, ptr %32, align 8, !tbaa !5
  %272 = load i32, ptr %39, align 4, !tbaa !19
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds double, ptr %271, i64 %273
  store double %270, ptr %274, align 8, !tbaa !25
  %275 = getelementptr inbounds %"class.sptk::FilterCoefficientsToPhaseSpectrum", ptr %41, i32 0, i32 4
  %276 = load i8, ptr %275, align 4, !tbaa !27, !range !22, !noundef !23
  %277 = trunc i8 %276 to i1
  br i1 %277, label %278, label %317

278:                                              ; preds = %223
  %279 = load i32, ptr %39, align 4, !tbaa !19
  %280 = icmp slt i32 0, %279
  br i1 %280, label %281, label %317

281:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %282 = load ptr, ptr %32, align 8, !tbaa !5
  %283 = load i32, ptr %39, align 4, !tbaa !19
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds double, ptr %282, i64 %284
  %286 = load double, ptr %285, align 8, !tbaa !25
  %287 = load ptr, ptr %32, align 8, !tbaa !5
  %288 = load i32, ptr %39, align 4, !tbaa !19
  %289 = sub nsw i32 %288, 1
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds double, ptr %287, i64 %290
  %292 = load double, ptr %291, align 8, !tbaa !25
  %293 = fsub double %286, %292
  %294 = load double, ptr %38, align 8, !tbaa !25
  %295 = fadd double %293, %294
  store double %295, ptr %40, align 8, !tbaa !25
  %296 = load double, ptr %40, align 8, !tbaa !25
  %297 = fcmp olt double 1.000000e+00, %296
  br i1 %297, label %298, label %301

298:                                              ; preds = %281
  %299 = load double, ptr %38, align 8, !tbaa !25
  %300 = fsub double %299, 2.000000e+00
  store double %300, ptr %38, align 8, !tbaa !25
  br label %309

301:                                              ; preds = %281
  %302 = load double, ptr %40, align 8, !tbaa !25
  %303 = fneg double %302
  %304 = fcmp olt double 1.000000e+00, %303
  br i1 %304, label %305, label %308

305:                                              ; preds = %301
  %306 = load double, ptr %38, align 8, !tbaa !25
  %307 = fadd double %306, 2.000000e+00
  store double %307, ptr %38, align 8, !tbaa !25
  br label %308

308:                                              ; preds = %305, %301
  br label %309

309:                                              ; preds = %308, %298
  %310 = load double, ptr %38, align 8, !tbaa !25
  %311 = load ptr, ptr %32, align 8, !tbaa !5
  %312 = load i32, ptr %39, align 4, !tbaa !19
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds double, ptr %311, i64 %313
  %315 = load double, ptr %314, align 8, !tbaa !25
  %316 = fadd double %315, %310
  store double %316, ptr %314, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  br label %317

317:                                              ; preds = %309, %278, %223
  br label %318

318:                                              ; preds = %317
  %319 = load i32, ptr %39, align 4, !tbaa !19
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %39, align 4, !tbaa !19
  br label %218, !llvm.loop !28

321:                                              ; preds = %222
  store i1 true, ptr %6, align 1
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %322

322:                                              ; preds = %321, %202, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %323

323:                                              ; preds = %322, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %324 = load i1, ptr %6, align 1
  ret i1 %324
}

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

; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { 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 "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, !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 = !{!"_ZTSN4sptk33FilterCoefficientsToPhaseSpectrumE", !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 20, !13, i64 24, !12, i64 128}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN4sptk30RealValuedFastFourierTransformE", !11, i64 8, !11, i64 12, !11, i64 16, !14, i64 24, !12, i64 72, !15, i64 80}
!14 = !{!"_ZTSN4sptk20FastFourierTransformE", !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 20, !15, i64 24}
!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, !11, i64 12}
!21 = !{!10, !12, i64 128}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!10, !11, i64 16}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = !{!10, !12, i64 20}
!28 = distinct !{!28, !29}
!29 = !{!"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" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk33FilterCoefficientsToPhaseSpectrum3RunERKSt6vectorIdSaIdEES5_PS3_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(129) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 align 2 {
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca double, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca double, align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 12
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = add nsw i32 %11, 1
  %13 = getelementptr inbounds i8, ptr %0, i64 128
  %14 = load i8, ptr %13, align 8, !tbaa !18, !range !19, !noundef !20
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %16, label %.loopexit

16:                                               ; preds = %5
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !21
  %19 = add nsw i32 %18, 1
  %20 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %21 = sext i32 %19 to i64
  %.not = icmp eq i64 %20, %21
  br i1 %.not, label %22, label %.loopexit

22:                                               ; preds = %16
  %23 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %24 = sext i32 %12 to i64
  %25 = icmp ne i64 %23, %24
  %26 = icmp eq ptr %3, null
  %or.cond = or i1 %26, %25
  %27 = icmp eq ptr %4, null
  %or.cond3 = or i1 %27, %or.cond
  br i1 %or.cond3, label %.loopexit, label %28

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load i32, ptr %29, align 8, !tbaa !22
  %31 = sdiv i32 %30, 2
  %32 = add nsw i32 %31, 1
  %33 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %34 = sext i32 %32 to i64
  %.not100 = icmp eq i64 %33, %34
  br i1 %.not100, label %36, label %35

35:                                               ; preds = %28
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %34)
  br label %36

36:                                               ; preds = %35, %28
  %37 = getelementptr inbounds i8, ptr %4, i64 64
  %38 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  %39 = load i32, ptr %29, align 8, !tbaa !22
  %40 = sext i32 %39 to i64
  %.not101 = icmp eq i64 %38, %40
  br i1 %.not101, label %42, label %41

41:                                               ; preds = %36
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %40)
  br label %42

42:                                               ; preds = %41, %36
  %43 = getelementptr inbounds i8, ptr %4, i64 88
  %44 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %45 = load i32, ptr %29, align 8, !tbaa !22
  %46 = sext i32 %45 to i64
  %.not102 = icmp eq i64 %44, %46
  br i1 %.not102, label %48, label %47

47:                                               ; preds = %42
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %46)
  br label %48

48:                                               ; preds = %47, %42
  %49 = tail call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %50 = tail call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %51 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  %52 = tail call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %49, ptr %50, ptr %51)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %53 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  store ptr %53, ptr %6, align 8
  %54 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %20) #7
  %55 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  store double 0.000000e+00, ptr %7, align 8, !tbaa !23
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %54, ptr %55, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %56 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %57 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %58 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %59 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %56, ptr %57, ptr %58)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %60 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  store ptr %60, ptr %8, align 8
  %61 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %23) #7
  %62 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  store double 0.000000e+00, ptr %9, align 8, !tbaa !23
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %61, ptr %62, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %63 = getelementptr inbounds i8, ptr %0, i64 24
  %64 = getelementptr inbounds i8, ptr %4, i64 112
  %65 = getelementptr inbounds i8, ptr %4, i64 8
  %66 = call noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %63, ptr noundef nonnull %37, ptr noundef nonnull %64, ptr noundef nonnull %65)
  br i1 %66, label %67, label %.loopexit

67:                                               ; preds = %48
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef 0) #7
  store double 1.000000e+00, ptr %68, align 8, !tbaa !23
  %69 = getelementptr inbounds i8, ptr %4, i64 136
  %70 = call noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunEPSt6vectorIdSaIdEES4_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %63, ptr noundef nonnull %43, ptr noundef nonnull %69, ptr noundef nonnull %65)
  br i1 %70, label %71, label %.loopexit

71:                                               ; preds = %67
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef 0) #7
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef 0) #7
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef 0) #7
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef 0) #7
  %.not103104 = icmp slt i32 %30, -1
  br i1 %.not103104, label %.loopexit, label %77

77:                                               ; preds = %71
  %78 = getelementptr inbounds i8, ptr %0, i64 20
  %wide.trip.count = zext i32 %32 to i64
  %79 = load double, ptr %75, align 8, !tbaa !23
  %80 = load double, ptr %74, align 8, !tbaa !23
  %81 = load double, ptr %73, align 8, !tbaa !23
  %82 = load double, ptr %76, align 8, !tbaa !23
  %83 = fneg double %81
  %84 = fmul double %82, %83
  %85 = call double @llvm.fmuladd.f64(double %79, double %80, double %84)
  %86 = fmul double %79, %82
  %87 = call double @llvm.fmuladd.f64(double %81, double %80, double %86)
  %88 = call double @atan2(double noundef %85, double noundef %87) #7
  %89 = fmul double %88, 0x3FD45F306DC9C883
  store double %89, ptr %72, align 8, !tbaa !23
  %.off = add i32 %30, 1
  %exitcond.peel.not = icmp ult i32 %.off, 3
  br i1 %exitcond.peel.not, label %.loopexit, label %.peel.next

.peel.next:                                       ; preds = %77, %122
  %indvars.iv = phi i64 [ %indvars.iv.next, %122 ], [ 1, %77 ]
  %.090105 = phi double [ %.2, %122 ], [ 0.000000e+00, %77 ]
  %90 = getelementptr inbounds double, ptr %75, i64 %indvars.iv
  %91 = load double, ptr %90, align 8, !tbaa !23
  %92 = getelementptr inbounds double, ptr %74, i64 %indvars.iv
  %93 = load double, ptr %92, align 8, !tbaa !23
  %94 = getelementptr inbounds double, ptr %73, i64 %indvars.iv
  %95 = load double, ptr %94, align 8, !tbaa !23
  %96 = getelementptr inbounds double, ptr %76, i64 %indvars.iv
  %97 = load double, ptr %96, align 8, !tbaa !23
  %98 = fneg double %95
  %99 = fmul double %97, %98
  %100 = call double @llvm.fmuladd.f64(double %91, double %93, double %99)
  %101 = fmul double %91, %97
  %102 = call double @llvm.fmuladd.f64(double %95, double %93, double %101)
  %103 = call double @atan2(double noundef %100, double noundef %102) #7
  %104 = fmul double %103, 0x3FD45F306DC9C883
  %105 = getelementptr inbounds double, ptr %72, i64 %indvars.iv
  store double %104, ptr %105, align 8, !tbaa !23
  %106 = load i8, ptr %78, align 4, !tbaa !25, !range !19, !noundef !20
  %107 = trunc nuw i8 %106 to i1
  br i1 %107, label %108, label %122

108:                                              ; preds = %.peel.next
  %109 = getelementptr i8, ptr %105, i64 -8
  %110 = load double, ptr %109, align 8, !tbaa !23
  %111 = fsub double %104, %110
  %112 = fadd double %.090105, %111
  %113 = fcmp ogt double %112, 1.000000e+00
  br i1 %113, label %114, label %116

114:                                              ; preds = %108
  %115 = fadd double %.090105, -2.000000e+00
  br label %120

116:                                              ; preds = %108
  %117 = fcmp olt double %112, -1.000000e+00
  br i1 %117, label %118, label %120

118:                                              ; preds = %116
  %119 = fadd double %.090105, 2.000000e+00
  br label %120

120:                                              ; preds = %116, %118, %114
  %.191 = phi double [ %115, %114 ], [ %119, %118 ], [ %.090105, %116 ]
  %121 = fadd double %104, %.191
  store double %121, ptr %105, align 8, !tbaa !23
  br label %122

122:                                              ; preds = %.peel.next, %120
  %.2 = phi double [ %.191, %120 ], [ %.090105, %.peel.next ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.peel.next, !llvm.loop !26

.loopexit:                                        ; preds = %122, %77, %71, %48, %67, %5, %16, %22
  %.1 = phi i1 [ false, %22 ], [ false, %16 ], [ false, %5 ], [ false, %48 ], [ false, %67 ], [ true, %71 ], [ true, %77 ], [ true, %122 ]
  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: 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 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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @atan2(double noundef, double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { mustprogress 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, !7, i64 12}
!6 = !{!"_ZTSN4sptk33FilterCoefficientsToPhaseSpectrumE", !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 20, !11, i64 24, !10, i64 128}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN4sptk30RealValuedFastFourierTransformE", !7, i64 8, !7, i64 12, !7, i64 16, !12, i64 24, !10, i64 72, !13, i64 80}
!12 = !{!"_ZTSN4sptk20FastFourierTransformE", !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 20, !13, i64 24}
!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 = !{!6, !10, i64 128}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!6, !7, i64 8}
!22 = !{!6, !7, i64 16}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !8, i64 0}
!25 = !{!6, !10, i64 20}
!26 = distinct !{!26, !27, !28}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!"llvm.loop.peeled.count", i32 1}


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