; LLVM IR from sp-nitech/SPTK :: src/math (discrete_cosine_transform)

; 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::DiscreteCosineTransform" = type { ptr, i32, %"class.sptk::FourierTransform", %"class.std::vector", %"class.std::vector" }
%"class.sptk::FourierTransform" = type { ptr, ptr }
%"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::DiscreteCosineTransform::Buffer" = type { ptr, %"class.std::vector", %"class.std::vector" }

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk16FourierTransform7IsValidEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4sptk16FourierTransform9GetLengthEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 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 nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk23DiscreteCosineTransform3RunERKSt6vectorIdSaIdEES5_PS3_S6_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 align 2 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.0", 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.0", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", 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.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.0", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %41 = load ptr, ptr %8, align 8
  %42 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 2
  %43 = call noundef zeroext i1 @_ZNK4sptk16FourierTransform7IsValidEv(ptr noundef nonnull align 8 dereferenceable(16) %42)
  br i1 %43, label %44, label %67

44:                                               ; preds = %6
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #5
  %47 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = icmp ne i64 %46, %49
  br i1 %50, label %67, label %51

51:                                               ; preds = %44
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #5
  %54 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = icmp ne i64 %53, %56
  br i1 %57, label %67, label %58

58:                                               ; preds = %51
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = icmp eq ptr null, %59
  br i1 %60, label %67, label %61

61:                                               ; preds = %58
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = icmp eq ptr null, %62
  br i1 %63, label %67, label %64

64:                                               ; preds = %61
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = icmp eq ptr null, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %64, %61, %58, %51, %44, %6
  store i1 false, ptr %7, align 1
  br label %288

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %69 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 2
  %70 = call noundef i32 @_ZNK4sptk16FourierTransform9GetLengthEv(ptr noundef nonnull align 8 dereferenceable(16) %69)
  store i32 %70, ptr %14, align 4, !tbaa !17
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %71, i32 0, i32 1
  %73 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #5
  %74 = load i32, ptr %14, align 4, !tbaa !17
  %75 = sext i32 %74 to i64
  %76 = icmp ne i64 %73, %75
  br i1 %76, label %77, label %82

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

82:                                               ; preds = %77, %68
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %83, i32 0, i32 2
  %85 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #5
  %86 = load i32, ptr %14, align 4, !tbaa !17
  %87 = sext i32 %86 to i64
  %88 = icmp ne i64 %85, %87
  br i1 %88, label %89, label %94

89:                                               ; preds = %82
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %90, i32 0, i32 2
  %92 = load i32, ptr %14, align 4, !tbaa !17
  %93 = sext i32 %92 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %93)
  br label %94

94:                                               ; preds = %89, %82
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #5
  %97 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 1
  %98 = load i32, ptr %97, align 8, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = icmp ne i64 %96, %99
  br i1 %100, label %101, label %106

101:                                              ; preds = %94
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 1
  %104 = load i32, ptr %103, align 8, !tbaa !9
  %105 = sext i32 %104 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %105)
  br label %106

106:                                              ; preds = %101, %94
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %107) #5
  %109 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 1
  %110 = load i32, ptr %109, align 8, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = icmp ne i64 %108, %111
  br i1 %112, label %113, label %118

113:                                              ; preds = %106
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 1
  %116 = load i32, ptr %115, align 8, !tbaa !9
  %117 = sext i32 %116 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %117)
  br label %118

118:                                              ; preds = %113, %106
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %119) #5
  %121 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %15, i32 0, i32 0
  store ptr %120, ptr %121, align 8
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #5
  %124 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %16, i32 0, i32 0
  store ptr %123, ptr %124, align 8
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %125, i32 0, i32 1
  %127 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #5
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %127, ptr %128, align 8
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %15, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8
  %131 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %16, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8
  %135 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %130, ptr %132, ptr %134)
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %135, ptr %136, align 8
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %137) #5
  %139 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %19, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #5
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %20, i32 0, i32 0
  store ptr %141, ptr %142, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %143, i32 0, i32 1
  %145 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #5
  %146 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  %147 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 1
  %148 = load i32, ptr %147, align 8, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef %149) #5
  %151 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %150, ptr %151, align 8
  %152 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %19, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %20, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8
  %158 = call ptr @_ZSt12reverse_copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %153, ptr %155, ptr %157)
  %159 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %158, ptr %159, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #5
  %162 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %24, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %163) #5
  %165 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %25, i32 0, i32 0
  store ptr %164, ptr %165, align 8
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %166, i32 0, i32 2
  %168 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #5
  %169 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %168, ptr %169, align 8
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %24, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8
  %172 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %25, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8
  %174 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8
  %176 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %171, ptr %173, ptr %175)
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %176, ptr %177, align 8
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %178) #5
  %180 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %28, i32 0, i32 0
  store ptr %179, ptr %180, align 8
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %181) #5
  %183 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %29, i32 0, i32 0
  store ptr %182, ptr %183, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %184, i32 0, i32 2
  %186 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %185) #5
  %187 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %186, ptr %187, align 8
  %188 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 1
  %189 = load i32, ptr %188, align 8, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %31, i64 noundef %190) #5
  %192 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %191, ptr %192, align 8
  %193 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %28, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8
  %195 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %29, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8
  %197 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8
  %199 = call ptr @_ZSt12reverse_copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %194, ptr %196, ptr %198)
  %200 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %199, ptr %200, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  %201 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 2
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %202, i32 0, i32 1
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  %205 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %204, i32 0, i32 2
  %206 = call noundef zeroext i1 @_ZNK4sptk16FourierTransform3RunEPSt6vectorIdSaIdEES4_(ptr noundef nonnull align 8 dereferenceable(16) %201, ptr noundef %203, ptr noundef %205)
  br i1 %206, label %208, label %207

207:                                              ; preds = %118
  store i1 false, ptr %7, align 1
  store i32 1, ptr %33, align 4
  br label %287

208:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %209, i64 noundef 0) #5
  store ptr %210, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  %211 = load ptr, ptr %12, align 8, !tbaa !5
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %211, i64 noundef 0) #5
  store ptr %212, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %213 = load ptr, ptr %13, align 8, !tbaa !5
  %214 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %213, i32 0, i32 1
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef 0) #5
  store ptr %215, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  %216 = load ptr, ptr %13, align 8, !tbaa !5
  %217 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform::Buffer", ptr %216, i32 0, i32 2
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %217, i64 noundef 0) #5
  store ptr %218, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  %219 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 3
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %219, i64 noundef 0) #5
  store ptr %220, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  %221 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 4
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %221, i64 noundef 0) #5
  store ptr %222, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #5
  store i32 0, ptr %40, align 4, !tbaa !17
  br label %223

223:                                              ; preds = %283, %208
  %224 = load i32, ptr %40, align 4, !tbaa !17
  %225 = getelementptr inbounds %"class.sptk::DiscreteCosineTransform", ptr %41, i32 0, i32 1
  %226 = load i32, ptr %225, align 8, !tbaa !9
  %227 = icmp slt i32 %224, %226
  br i1 %227, label %229, label %228

228:                                              ; preds = %223
  store i32 2, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #5
  br label %286

229:                                              ; preds = %223
  %230 = load ptr, ptr %36, align 8, !tbaa !5
  %231 = load i32, ptr %40, align 4, !tbaa !17
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds double, ptr %230, i64 %232
  %234 = load double, ptr %233, align 8, !tbaa !18
  %235 = load ptr, ptr %38, align 8, !tbaa !5
  %236 = load i32, ptr %40, align 4, !tbaa !17
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds double, ptr %235, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !18
  %240 = load ptr, ptr %37, align 8, !tbaa !5
  %241 = load i32, ptr %40, align 4, !tbaa !17
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds double, ptr %240, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !18
  %245 = load ptr, ptr %39, align 8, !tbaa !5
  %246 = load i32, ptr %40, align 4, !tbaa !17
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds double, ptr %245, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !18
  %250 = fmul double %244, %249
  %251 = fneg double %250
  %252 = call double @llvm.fmuladd.f64(double %234, double %239, double %251)
  %253 = load ptr, ptr %34, align 8, !tbaa !5
  %254 = load i32, ptr %40, align 4, !tbaa !17
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds double, ptr %253, i64 %255
  store double %252, ptr %256, align 8, !tbaa !18
  %257 = load ptr, ptr %36, align 8, !tbaa !5
  %258 = load i32, ptr %40, align 4, !tbaa !17
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds double, ptr %257, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !18
  %262 = load ptr, ptr %39, align 8, !tbaa !5
  %263 = load i32, ptr %40, align 4, !tbaa !17
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds double, ptr %262, i64 %264
  %266 = load double, ptr %265, align 8, !tbaa !18
  %267 = load ptr, ptr %37, align 8, !tbaa !5
  %268 = load i32, ptr %40, align 4, !tbaa !17
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds double, ptr %267, i64 %269
  %271 = load double, ptr %270, align 8, !tbaa !18
  %272 = load ptr, ptr %38, align 8, !tbaa !5
  %273 = load i32, ptr %40, align 4, !tbaa !17
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds double, ptr %272, i64 %274
  %276 = load double, ptr %275, align 8, !tbaa !18
  %277 = fmul double %271, %276
  %278 = call double @llvm.fmuladd.f64(double %261, double %266, double %277)
  %279 = load ptr, ptr %35, align 8, !tbaa !5
  %280 = load i32, ptr %40, align 4, !tbaa !17
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds double, ptr %279, i64 %281
  store double %278, ptr %282, align 8, !tbaa !18
  br label %283

283:                                              ; preds = %229
  %284 = load i32, ptr %40, align 4, !tbaa !17
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %40, align 4, !tbaa !17
  br label %223, !llvm.loop !20

286:                                              ; preds = %228
  store i1 true, ptr %7, align 1
  store i32 1, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %287

287:                                              ; preds = %286, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %288

288:                                              ; preds = %287, %67
  %289 = load i1, ptr %7, align 1
  ret i1 %289
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk16FourierTransform3RunEPSt6vectorIdSaIdEES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) #0 align 2

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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"_ZTSN4sptk23DiscreteCosineTransformE", !11, i64 8, !12, i64 16, !13, i64 32, !13, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN4sptk16FourierTransformE", !6, i64 8}
!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", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"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
declare dso_local noundef zeroext i1 @_ZNK4sptk16FourierTransform7IsValidEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; 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 uwtable
declare dso_local noundef i32 @_ZNK4sptk16FourierTransform9GetLengthEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 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 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk23DiscreteCosineTransform3RunERKSt6vectorIdSaIdEES5_PS3_S6_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 align 2 {
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = tail call noundef zeroext i1 @_ZNK4sptk16FourierTransform7IsValidEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  br i1 %10, label %11, label %.loopexit

11:                                               ; preds = %6
  %12 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %15 = sext i32 %14 to i64
  %.not = icmp eq i64 %12, %15
  br i1 %.not, label %16, label %.loopexit

16:                                               ; preds = %11
  %17 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %18 = load i32, ptr %13, align 8, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = icmp ne i64 %17, %19
  %21 = icmp eq ptr %3, null
  %or.cond = or i1 %21, %20
  %22 = icmp eq ptr %4, null
  %or.cond3 = or i1 %22, %or.cond
  %23 = icmp eq ptr %5, null
  %or.cond5 = or i1 %23, %or.cond3
  br i1 %or.cond5, label %.loopexit, label %24

24:                                               ; preds = %16
  %25 = tail call noundef i32 @_ZNK4sptk16FourierTransform9GetLengthEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %26 = getelementptr inbounds i8, ptr %5, i64 8
  %27 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  %28 = sext i32 %25 to i64
  %.not86 = icmp eq i64 %27, %28
  br i1 %.not86, label %30, label %29

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

30:                                               ; preds = %29, %24
  %31 = getelementptr inbounds i8, ptr %5, i64 32
  %32 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %.not87 = icmp eq i64 %32, %28
  br i1 %.not87, label %34, label %33

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

34:                                               ; preds = %33, %30
  %35 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %36 = load i32, ptr %13, align 8, !tbaa !5
  %37 = sext i32 %36 to i64
  %.not88 = icmp eq i64 %35, %37
  br i1 %.not88, label %39, label %38

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

39:                                               ; preds = %38, %34
  %40 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %41 = load i32, ptr %13, align 8, !tbaa !5
  %42 = sext i32 %41 to i64
  %.not89 = icmp eq i64 %40, %42
  br i1 %.not89, label %44, label %43

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

44:                                               ; preds = %43, %39
  %45 = tail call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %46 = tail call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %47 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  %48 = tail call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %45, ptr %46, ptr %47)
  %49 = tail call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %50 = tail call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %51 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  store ptr %51, ptr %7, align 8
  %52 = load i32, ptr %13, align 8, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %53) #6
  %55 = call ptr @_ZSt12reverse_copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %49, ptr %50, ptr %54)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %56 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %57 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %58 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %59 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %56, ptr %57, ptr %58)
  %60 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %61 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %62 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  store ptr %62, ptr %8, align 8
  %63 = load i32, ptr %13, align 8, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %64) #6
  %66 = call ptr @_ZSt12reverse_copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %60, ptr %61, ptr %65)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %67 = call noundef zeroext i1 @_ZNK4sptk16FourierTransform3RunEPSt6vectorIdSaIdEES4_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull %26, ptr noundef nonnull %31)
  br i1 %67, label %68, label %.loopexit

68:                                               ; preds = %44
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #6
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0) #6
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0) #6
  %73 = getelementptr inbounds i8, ptr %0, i64 32
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef 0) #6
  %75 = getelementptr inbounds i8, ptr %0, i64 56
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef 0) #6
  %77 = load i32, ptr %13, align 8, !tbaa !5
  %78 = icmp sgt i32 %77, 0
  br i1 %78, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %68
  %wide.trip.count = zext nneg i32 %77 to i64
  %min.iters.check = icmp ult i32 %77, 16
  br i1 %min.iters.check, label %.lr.ph.preheader135, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %79 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep = getelementptr i8, ptr %69, i64 %79
  %scevgep92 = getelementptr i8, ptr %70, i64 %79
  %scevgep93 = getelementptr i8, ptr %71, i64 %79
  %scevgep94 = getelementptr i8, ptr %74, i64 %79
  %scevgep95 = getelementptr i8, ptr %72, i64 %79
  %scevgep96 = getelementptr i8, ptr %76, i64 %79
  %bound0 = icmp ult ptr %69, %scevgep92
  %bound1 = icmp ult ptr %70, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound097 = icmp ult ptr %69, %scevgep93
  %bound198 = icmp ult ptr %71, %scevgep
  %found.conflict99 = and i1 %bound097, %bound198
  %conflict.rdx = or i1 %found.conflict, %found.conflict99
  %bound0100 = icmp ult ptr %69, %scevgep94
  %bound1101 = icmp ult ptr %74, %scevgep
  %found.conflict102 = and i1 %bound0100, %bound1101
  %conflict.rdx103 = or i1 %conflict.rdx, %found.conflict102
  %bound0104 = icmp ult ptr %69, %scevgep95
  %bound1105 = icmp ult ptr %72, %scevgep
  %found.conflict106 = and i1 %bound0104, %bound1105
  %conflict.rdx107 = or i1 %conflict.rdx103, %found.conflict106
  %bound0108 = icmp ult ptr %69, %scevgep96
  %bound1109 = icmp ult ptr %76, %scevgep
  %found.conflict110 = and i1 %bound0108, %bound1109
  %conflict.rdx111 = or i1 %conflict.rdx107, %found.conflict110
  %bound0112 = icmp ult ptr %70, %scevgep93
  %bound1113 = icmp ult ptr %71, %scevgep92
  %found.conflict114 = and i1 %bound0112, %bound1113
  %conflict.rdx115 = or i1 %conflict.rdx111, %found.conflict114
  %bound0116 = icmp ult ptr %70, %scevgep94
  %bound1117 = icmp ult ptr %74, %scevgep92
  %found.conflict118 = and i1 %bound0116, %bound1117
  %conflict.rdx119 = or i1 %conflict.rdx115, %found.conflict118
  %bound0120 = icmp ult ptr %70, %scevgep95
  %bound1121 = icmp ult ptr %72, %scevgep92
  %found.conflict122 = and i1 %bound0120, %bound1121
  %conflict.rdx123 = or i1 %conflict.rdx119, %found.conflict122
  %bound0124 = icmp ult ptr %70, %scevgep96
  %bound1125 = icmp ult ptr %76, %scevgep92
  %found.conflict126 = and i1 %bound0124, %bound1125
  %conflict.rdx127 = or i1 %conflict.rdx123, %found.conflict126
  br i1 %conflict.rdx127, label %.lr.ph.preheader135, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483646
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %80 = getelementptr inbounds double, ptr %71, i64 %index
  %wide.load = load <2 x double>, ptr %80, align 8, !tbaa !16, !alias.scope !18
  %81 = getelementptr inbounds double, ptr %74, i64 %index
  %wide.load128 = load <2 x double>, ptr %81, align 8, !tbaa !16, !alias.scope !21
  %82 = getelementptr inbounds double, ptr %72, i64 %index
  %wide.load129 = load <2 x double>, ptr %82, align 8, !tbaa !16, !alias.scope !23
  %83 = getelementptr inbounds double, ptr %76, i64 %index
  %wide.load130 = load <2 x double>, ptr %83, align 8, !tbaa !16, !alias.scope !25
  %84 = fneg <2 x double> %wide.load129
  %85 = fmul <2 x double> %wide.load130, %84
  %86 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> %wide.load128, <2 x double> %85)
  %87 = getelementptr inbounds double, ptr %69, i64 %index
  store <2 x double> %86, ptr %87, align 8, !tbaa !16, !alias.scope !27, !noalias !29
  %wide.load131 = load <2 x double>, ptr %80, align 8, !tbaa !16, !alias.scope !18
  %wide.load132 = load <2 x double>, ptr %83, align 8, !tbaa !16, !alias.scope !25
  %wide.load133 = load <2 x double>, ptr %82, align 8, !tbaa !16, !alias.scope !23
  %wide.load134 = load <2 x double>, ptr %81, align 8, !tbaa !16, !alias.scope !21
  %88 = fmul <2 x double> %wide.load133, %wide.load134
  %89 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load131, <2 x double> %wide.load132, <2 x double> %88)
  %90 = getelementptr inbounds double, ptr %70, i64 %index
  store <2 x double> %89, ptr %90, align 8, !tbaa !16, !alias.scope !31, !noalias !32
  %index.next = add nuw i64 %index, 2
  %91 = icmp eq i64 %index.next, %n.vec
  br i1 %91, label %middle.block, label %vector.body, !llvm.loop !33

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit, label %.lr.ph.preheader135

.lr.ph.preheader135:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader135, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader135 ]
  %92 = getelementptr inbounds double, ptr %71, i64 %indvars.iv
  %93 = load double, ptr %92, align 8, !tbaa !16
  %94 = getelementptr inbounds double, ptr %74, i64 %indvars.iv
  %95 = load double, ptr %94, align 8, !tbaa !16
  %96 = getelementptr inbounds double, ptr %72, i64 %indvars.iv
  %97 = load double, ptr %96, align 8, !tbaa !16
  %98 = getelementptr inbounds double, ptr %76, i64 %indvars.iv
  %99 = load double, ptr %98, align 8, !tbaa !16
  %100 = fneg double %97
  %101 = fmul double %99, %100
  %102 = call double @llvm.fmuladd.f64(double %93, double %95, double %101)
  %103 = getelementptr inbounds double, ptr %69, i64 %indvars.iv
  store double %102, ptr %103, align 8, !tbaa !16
  %104 = load double, ptr %92, align 8, !tbaa !16
  %105 = load double, ptr %98, align 8, !tbaa !16
  %106 = load double, ptr %96, align 8, !tbaa !16
  %107 = load double, ptr %94, align 8, !tbaa !16
  %108 = fmul double %106, %107
  %109 = call double @llvm.fmuladd.f64(double %104, double %105, double %108)
  %110 = getelementptr inbounds double, ptr %70, i64 %indvars.iv
  store double %109, ptr %110, align 8, !tbaa !16
  %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 %.lr.ph, !llvm.loop !37

.loopexit:                                        ; preds = %.lr.ph, %middle.block, %68, %44, %6, %11, %16
  %.1 = phi i1 [ false, %16 ], [ false, %11 ], [ false, %6 ], [ false, %44 ], [ true, %68 ], [ true, %middle.block ], [ true, %.lr.ph ]
  ret i1 %.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: 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 @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk16FourierTransform3RunEPSt6vectorIdSaIdEES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 8}
!6 = !{!"_ZTSN4sptk23DiscreteCosineTransformE", !7, i64 8, !10, i64 16, !12, i64 32, !12, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN4sptk16FourierTransformE", !11, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIdSaIdEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !8, i64 0}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = !{!24}
!24 = distinct !{!24, !20}
!25 = !{!26}
!26 = distinct !{!26, !20}
!27 = !{!28}
!28 = distinct !{!28, !20}
!29 = !{!30, !19, !22, !24, !26}
!30 = distinct !{!30, !20}
!31 = !{!30}
!32 = !{!19, !22, !24, !26}
!33 = distinct !{!33, !34, !35, !36}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!"llvm.loop.isvectorized", i32 1}
!36 = !{!"llvm.loop.unroll.runtime.disable"}
!37 = distinct !{!37, !34, !35}


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