; LLVM IR from sp-nitech/SPTK :: src/utils (misc_utils)

; 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.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.std::allocator" = type { i8 }
%"class.sptk::KaiserWindow" = type { %"class.sptk::WindowInterface", i32, double, i8, i8, %"class.std::vector" }
%"class.sptk::WindowInterface" = type { ptr }
%"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.sptk::RealValuedFastFourierTransform::Buffer" = type { ptr, %"class.std::vector", %"class.std::vector" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.6" = type { ptr }
%class.anon = type { i8 }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk37MakePseudoQuadratureMirrorFilterBanksEbiididdPSt6vectorIS0_IdSaIdEESaIS2_EEPb(i1 noundef zeroext %0, i32 noundef %1, i32 noundef %2, double noundef %3, i32 noundef %4, double noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8) #3 personality ptr @__gxx_personality_v0 {
  %10 = alloca i1, align 1
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.sptk::KaiserWindow", align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.sptk::RealValuedFastFourierTransform", align 8
  %29 = alloca %"class.sptk::RealValuedFastFourierTransform::Buffer", align 8
  %30 = alloca i32, align 4
  %31 = alloca %"class.std::vector", align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca %"class.std::vector", align 8
  %35 = alloca i32, align 4
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca i32, align 4
  %42 = alloca double, align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator.6", align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %47 = alloca %class.anon, align 1
  %48 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca i32, align 4
  %57 = alloca double, align 8
  %58 = alloca double, align 8
  %59 = alloca double, align 8
  %60 = zext i1 %0 to i8
  store i8 %60, ptr %11, align 1, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !9
  store i32 %2, ptr %13, align 4, !tbaa !9
  store double %3, ptr %14, align 8, !tbaa !11
  store i32 %4, ptr %15, align 4, !tbaa !9
  store double %5, ptr %16, align 8, !tbaa !11
  store double %6, ptr %17, align 8, !tbaa !11
  store ptr %7, ptr %18, align 8, !tbaa !13
  store ptr %8, ptr %19, align 8, !tbaa !13
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = icmp eq i32 0, %61
  br i1 %62, label %81, label %63

63:                                               ; preds = %9
  %64 = load i32, ptr %13, align 4, !tbaa !9
  %65 = icmp sle i32 %64, 1
  br i1 %65, label %81, label %66

66:                                               ; preds = %63
  %67 = load double, ptr %14, align 8, !tbaa !11
  %68 = fcmp ole double %67, 0.000000e+00
  br i1 %68, label %81, label %69

69:                                               ; preds = %66
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = icmp eq i32 0, %70
  br i1 %71, label %81, label %72

72:                                               ; preds = %69
  %73 = load double, ptr %16, align 8, !tbaa !11
  %74 = fcmp olt double %73, 0.000000e+00
  br i1 %74, label %81, label %75

75:                                               ; preds = %72
  %76 = load double, ptr %17, align 8, !tbaa !11
  %77 = fcmp ole double %76, 0.000000e+00
  br i1 %77, label %81, label %78

78:                                               ; preds = %75
  %79 = load ptr, ptr %18, align 8, !tbaa !13
  %80 = icmp eq ptr null, %79
  br i1 %80, label %81, label %82

81:                                               ; preds = %78, %75, %72, %69, %66, %63, %9
  store i1 false, ptr %10, align 1
  br label %396

82:                                               ; preds = %78
  %83 = load ptr, ptr %19, align 8, !tbaa !13
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %87

85:                                               ; preds = %82
  %86 = load ptr, ptr %19, align 8, !tbaa !13
  store i8 0, ptr %86, align 1, !tbaa !5
  br label %87

87:                                               ; preds = %85, %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %90 = load i32, ptr %20, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %91, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %92 unwind label %110

92:                                               ; preds = %87
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr %25) #6
  %93 = load i32, ptr %20, align 4, !tbaa !9
  %94 = load double, ptr %14, align 8, !tbaa !11
  %95 = invoke noundef double @_ZN4sptk12KaiserWindow17AttenuationToBetaEd(double noundef %94)
          to label %96 unwind label %114

96:                                               ; preds = %92
  invoke void @_ZN4sptk12KaiserWindowC1Eidb(ptr noundef nonnull align 8 dereferenceable(56) %25, i32 noundef %93, double noundef %95, i1 noundef zeroext false)
          to label %97 unwind label %114

97:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %98 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4sptk12KaiserWindow3GetEv(ptr noundef nonnull align 8 dereferenceable(56) %25)
          to label %99 unwind label %118

99:                                               ; preds = %97
  store ptr %98, ptr %26, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %100 = load i32, ptr %20, align 4, !tbaa !9
  %101 = invoke noundef i32 @_ZN4sptk10NextPowTwoEi(i32 noundef %100)
          to label %102 unwind label %122

102:                                              ; preds = %99
  store i32 %101, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 104, ptr %28) #6
  %103 = load i32, ptr %13, align 4, !tbaa !9
  %104 = load i32, ptr %27, align 4, !tbaa !9
  invoke void @_ZN4sptk30RealValuedFastFourierTransformC1Eii(ptr noundef nonnull align 8 dereferenceable(104) %28, i32 noundef %103, i32 noundef %104)
          to label %105 unwind label %126

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 56, ptr %29) #6
  invoke void @_ZN4sptk30RealValuedFastFourierTransform6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29)
          to label %106 unwind label %130

106:                                              ; preds = %105
  %107 = invoke noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform7IsValidEv(ptr noundef nonnull align 8 dereferenceable(104) %28)
          to label %108 unwind label %134

108:                                              ; preds = %106
  br i1 %107, label %138, label %109

109:                                              ; preds = %108
  store i1 false, ptr %10, align 1
  store i32 1, ptr %30, align 4
  br label %297

110:                                              ; preds = %87
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %23, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %24, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  br label %395

114:                                              ; preds = %96, %92
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %23, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %24, align 4
  br label %319

118:                                              ; preds = %97
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %23, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %24, align 4
  br label %318

122:                                              ; preds = %99
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %23, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %24, align 4
  br label %317

126:                                              ; preds = %102
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %23, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %24, align 4
  br label %316

130:                                              ; preds = %105
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %23, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %24, align 4
  br label %315

134:                                              ; preds = %106
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %23, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %24, align 4
  br label %314

138:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #6
  %139 = load i32, ptr %20, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %140, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %141 unwind label %156

141:                                              ; preds = %138
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #6
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #6
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %142 = load i32, ptr %27, align 4, !tbaa !9
  %143 = load i32, ptr %12, align 4, !tbaa !9
  %144 = mul nsw i32 4, %143
  %145 = sdiv i32 %142, %144
  store i32 %145, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = mul nsw i32 2, %146
  %148 = sitofp i32 %147 to double
  %149 = fdiv double 0x400921FB54442D18, %148
  store double %149, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %150 = load double, ptr %17, align 8, !tbaa !11
  store double %150, ptr %37, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  store double 0x7FEFFFFFFFFFFFFF, ptr %38, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %289, %141
  %152 = load i32, ptr %39, align 4, !tbaa !9
  %153 = load i32, ptr %15, align 4, !tbaa !9
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %160, label %155

155:                                              ; preds = %151
  store i32 2, ptr %30, align 4
  br label %292

156:                                              ; preds = %138
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %23, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %24, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  br label %313

160:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0) #6
  store ptr %161, ptr %40, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %184, %160
  %163 = load i32, ptr %41, align 4, !tbaa !9
  %164 = load i32, ptr %20, align 4, !tbaa !9
  %165 = icmp slt i32 %163, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %162
  store i32 5, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %187

167:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %168 = load i32, ptr %41, align 4, !tbaa !9
  %169 = sitofp i32 %168 to double
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = sitofp i32 %170 to double
  %172 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %171, double %169)
  store double %172, ptr %42, align 8, !tbaa !11
  %173 = load double, ptr %36, align 8, !tbaa !11
  %174 = load double, ptr %42, align 8, !tbaa !11
  %175 = fmul double %173, %174
  %176 = call double @sin(double noundef %175) #6
  %177 = load double, ptr %42, align 8, !tbaa !11
  %178 = fmul double 0x400921FB54442D18, %177
  %179 = fdiv double %176, %178
  %180 = load ptr, ptr %40, align 8, !tbaa !13
  %181 = load i32, ptr %41, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds double, ptr %180, i64 %182
  store double %179, ptr %183, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %184

184:                                              ; preds = %167
  %185 = load i32, ptr %41, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %41, align 4, !tbaa !9
  br label %162, !llvm.loop !15

187:                                              ; preds = %166
  %188 = load i32, ptr %20, align 4, !tbaa !9
  %189 = invoke noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef %188)
          to label %190 unwind label %199

190:                                              ; preds = %187
  br i1 %189, label %203, label %191

191:                                              ; preds = %190
  %192 = load double, ptr %36, align 8, !tbaa !11
  %193 = fdiv double %192, 0x400921FB54442D18
  %194 = load ptr, ptr %40, align 8, !tbaa !13
  %195 = load i32, ptr %13, align 4, !tbaa !9
  %196 = sdiv i32 %195, 2
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %194, i64 %197
  store double %193, ptr %198, align 8, !tbaa !11
  br label %203

199:                                              ; preds = %187
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %23, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %294

203:                                              ; preds = %191, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  %204 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %205 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  store ptr %204, ptr %205, align 8
  %206 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %207 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %206, ptr %207, align 8
  %208 = load ptr, ptr %26, align 8, !tbaa !13
  %209 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %208) #6
  %210 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %45, i32 0, i32 0
  store ptr %209, ptr %210, align 8
  %211 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  %212 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %46, i32 0, i32 0
  store ptr %211, ptr %212, align 8
  %213 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8
  %215 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8
  %217 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.6", ptr %45, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8
  %219 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %46, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8
  %221 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_ZN4sptk37MakePseudoQuadratureMirrorFilterBanksEbiididdPS3_IS5_SaIS5_EEPbE3$_0ET1_T_SH_T0_SG_T2_"(ptr %214, ptr %216, ptr %218, ptr %220)
          to label %222 unwind label %227

222:                                              ; preds = %203
  %223 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %48, i32 0, i32 0
  store ptr %221, ptr %223, align 8
  %224 = invoke noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunERKSt6vectorIdSaIdEEPS3_S6_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %28, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef %33, ptr noundef %34, ptr noundef %29)
          to label %225 unwind label %227

225:                                              ; preds = %222
  br i1 %224, label %231, label %226

226:                                              ; preds = %225
  store i1 false, ptr %10, align 1
  store i32 1, ptr %30, align 4
  br label %292

227:                                              ; preds = %222, %203
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %23, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %24, align 4
  br label %294

231:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  %232 = load i32, ptr %35, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %233) #6
  %235 = load double, ptr %234, align 8, !tbaa !11
  %236 = load i32, ptr %35, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %237) #6
  %239 = load double, ptr %238, align 8, !tbaa !11
  %240 = load i32, ptr %35, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %241) #6
  %243 = load double, ptr %242, align 8, !tbaa !11
  %244 = load i32, ptr %35, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %245) #6
  %247 = load double, ptr %246, align 8, !tbaa !11
  %248 = fmul double %243, %247
  %249 = call double @llvm.fmuladd.f64(double %235, double %239, double %248)
  %250 = fsub double %249, 5.000000e-01
  store double %250, ptr %49, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  %251 = load double, ptr %49, align 8, !tbaa !11
  %252 = call double @llvm.fabs.f64(double %251)
  store double %252, ptr %50, align 8, !tbaa !11
  %253 = load double, ptr %50, align 8, !tbaa !11
  %254 = load double, ptr %16, align 8, !tbaa !11
  %255 = fcmp olt double %253, %254
  br i1 %255, label %256, label %262

256:                                              ; preds = %231
  %257 = load ptr, ptr %19, align 8, !tbaa !13
  %258 = icmp ne ptr %257, null
  br i1 %258, label %259, label %261

259:                                              ; preds = %256
  %260 = load ptr, ptr %19, align 8, !tbaa !13
  store i8 1, ptr %260, align 1, !tbaa !5
  br label %261

261:                                              ; preds = %259, %256
  store i32 2, ptr %30, align 4
  br label %286

262:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  %263 = load double, ptr %49, align 8, !tbaa !11
  %264 = fcmp olt double 0.000000e+00, %263
  %265 = zext i1 %264 to i64
  %266 = select i1 %264, i32 -1, i32 1
  store i32 %266, ptr %51, align 4, !tbaa !9
  %267 = load double, ptr %50, align 8, !tbaa !11
  %268 = load double, ptr %38, align 8, !tbaa !11
  %269 = fcmp olt double %267, %268
  br i1 %269, label %270, label %277

270:                                              ; preds = %262
  %271 = load i32, ptr %51, align 4, !tbaa !9
  %272 = sitofp i32 %271 to double
  %273 = load double, ptr %37, align 8, !tbaa !11
  %274 = load double, ptr %36, align 8, !tbaa !11
  %275 = call double @llvm.fmuladd.f64(double %272, double %273, double %274)
  store double %275, ptr %36, align 8, !tbaa !11
  %276 = load double, ptr %50, align 8, !tbaa !11
  store double %276, ptr %38, align 8, !tbaa !11
  br label %285

277:                                              ; preds = %262
  %278 = load double, ptr %37, align 8, !tbaa !11
  %279 = fmul double %278, 5.000000e-01
  store double %279, ptr %37, align 8, !tbaa !11
  %280 = load i32, ptr %51, align 4, !tbaa !9
  %281 = sitofp i32 %280 to double
  %282 = load double, ptr %37, align 8, !tbaa !11
  %283 = load double, ptr %36, align 8, !tbaa !11
  %284 = call double @llvm.fmuladd.f64(double %281, double %282, double %283)
  store double %284, ptr %36, align 8, !tbaa !11
  br label %285

285:                                              ; preds = %277, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  store i32 0, ptr %30, align 4
  br label %286

286:                                              ; preds = %285, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  %287 = load i32, ptr %30, align 4
  switch i32 %287, label %292 [
    i32 0, label %288
  ]

288:                                              ; preds = %286
  br label %289

289:                                              ; preds = %288
  %290 = load i32, ptr %39, align 4, !tbaa !9
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %39, align 4, !tbaa !9
  br label %151, !llvm.loop !17

292:                                              ; preds = %286, %226, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  %293 = load i32, ptr %30, align 4
  switch i32 %293, label %296 [
    i32 2, label %295
  ]

294:                                              ; preds = %227, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  br label %313

295:                                              ; preds = %292
  store i32 0, ptr %30, align 4
  br label %296

296:                                              ; preds = %295, %292
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  br label %297

297:                                              ; preds = %296, %109
  call void @_ZN4sptk30RealValuedFastFourierTransform6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #6
  call void @_ZN4sptk30RealValuedFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %28) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @_ZN4sptk12KaiserWindowD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %25) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #6
  %298 = load i32, ptr %30, align 4
  switch i32 %298, label %393 [
    i32 0, label %299
  ]

299:                                              ; preds = %297
  %300 = load ptr, ptr %18, align 8, !tbaa !13
  %301 = load i32, ptr %12, align 4, !tbaa !9
  %302 = sext i32 %301 to i64
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %300, i64 noundef %302)
          to label %303 unwind label %320

303:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #6
  %304 = load i8, ptr %11, align 1, !tbaa !5, !range !18, !noundef !19
  %305 = trunc i8 %304 to i1
  %306 = zext i1 %305 to i64
  %307 = select i1 %305, i32 -1, i32 1
  store i32 %307, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #6
  store i32 0, ptr %53, align 4, !tbaa !9
  br label %308

308:                                              ; preds = %389, %303
  %309 = load i32, ptr %53, align 4, !tbaa !9
  %310 = load i32, ptr %12, align 4, !tbaa !9
  %311 = icmp slt i32 %309, %310
  br i1 %311, label %324, label %312

312:                                              ; preds = %308
  store i32 8, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #6
  br label %392

313:                                              ; preds = %294, %156
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  br label %314

314:                                              ; preds = %313, %134
  call void @_ZN4sptk30RealValuedFastFourierTransform6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #6
  br label %315

315:                                              ; preds = %314, %130
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #6
  call void @_ZN4sptk30RealValuedFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %28) #6
  br label %316

316:                                              ; preds = %315, %126
  call void @llvm.lifetime.end.p0(i64 104, ptr %28) #6
  br label %317

317:                                              ; preds = %316, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %318

318:                                              ; preds = %317, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @_ZN4sptk12KaiserWindowD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %25) #6
  br label %319

319:                                              ; preds = %318, %114
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #6
  br label %394

320:                                              ; preds = %299
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %23, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %24, align 4
  br label %394

324:                                              ; preds = %308
  %325 = load ptr, ptr %18, align 8, !tbaa !13
  %326 = load i32, ptr %53, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %325, i64 noundef %327) #6
  %329 = load i32, ptr %20, align 4, !tbaa !9
  %330 = sext i32 %329 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %328, i64 noundef %330)
          to label %331 unwind label %343

331:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #6
  %332 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0) #6
  store ptr %332, ptr %54, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #6
  %333 = load ptr, ptr %18, align 8, !tbaa !13
  %334 = load i32, ptr %53, align 4, !tbaa !9
  %335 = sext i32 %334 to i64
  %336 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %333, i64 noundef %335) #6
  %337 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %336, i64 noundef 0) #6
  store ptr %337, ptr %55, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #6
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %338

338:                                              ; preds = %383, %331
  %339 = load i32, ptr %56, align 4, !tbaa !9
  %340 = load i32, ptr %20, align 4, !tbaa !9
  %341 = icmp slt i32 %339, %340
  br i1 %341, label %347, label %342

342:                                              ; preds = %338
  store i32 11, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  br label %386

343:                                              ; preds = %324
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %23, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  br label %394

347:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #6
  %348 = load i32, ptr %53, align 4, !tbaa !9
  %349 = mul nsw i32 2, %348
  %350 = add nsw i32 %349, 1
  %351 = sitofp i32 %350 to double
  %352 = fmul double %351, 0x400921FB54442D18
  %353 = load i32, ptr %12, align 4, !tbaa !9
  %354 = mul nsw i32 2, %353
  %355 = sitofp i32 %354 to double
  %356 = fdiv double %352, %355
  %357 = load i32, ptr %56, align 4, !tbaa !9
  %358 = sitofp i32 %357 to double
  %359 = load i32, ptr %13, align 4, !tbaa !9
  %360 = sitofp i32 %359 to double
  %361 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %360, double %358)
  %362 = fmul double %356, %361
  store double %362, ptr %57, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #6
  %363 = load i32, ptr %52, align 4, !tbaa !9
  %364 = sitofp i32 %363 to double
  %365 = fmul double %364, 2.500000e-01
  %366 = fmul double %365, 0x400921FB54442D18
  store double %366, ptr %58, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #6
  %367 = load ptr, ptr %54, align 8, !tbaa !13
  %368 = load i32, ptr %56, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds double, ptr %367, i64 %369
  %371 = load double, ptr %370, align 8, !tbaa !11
  %372 = fmul double 2.000000e+00, %371
  store double %372, ptr %59, align 8, !tbaa !11
  %373 = load double, ptr %59, align 8, !tbaa !11
  %374 = load double, ptr %57, align 8, !tbaa !11
  %375 = load double, ptr %58, align 8, !tbaa !11
  %376 = fadd double %374, %375
  %377 = call double @cos(double noundef %376) #6
  %378 = fmul double %373, %377
  %379 = load ptr, ptr %55, align 8, !tbaa !13
  %380 = load i32, ptr %56, align 4, !tbaa !9
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds double, ptr %379, i64 %381
  store double %378, ptr %382, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  br label %383

383:                                              ; preds = %347
  %384 = load i32, ptr %56, align 4, !tbaa !9
  %385 = add nsw i32 %384, 1
  store i32 %385, ptr %56, align 4, !tbaa !9
  br label %338, !llvm.loop !20

386:                                              ; preds = %342
  %387 = load i32, ptr %52, align 4, !tbaa !9
  %388 = mul nsw i32 %387, -1
  store i32 %388, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  br label %389

389:                                              ; preds = %386
  %390 = load i32, ptr %53, align 4, !tbaa !9
  %391 = add nsw i32 %390, 1
  store i32 %391, ptr %53, align 4, !tbaa !9
  br label %308, !llvm.loop !21

392:                                              ; preds = %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  store i1 true, ptr %10, align 1
  store i32 1, ptr %30, align 4
  br label %393

393:                                              ; preds = %392, %297
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %396

394:                                              ; preds = %343, %320, %319
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %395

395:                                              ; preds = %394, %110
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %398

396:                                              ; preds = %393, %81
  %397 = load i1, ptr %10, align 1
  ret i1 %397

398:                                              ; preds = %395
  %399 = load ptr, ptr %23, align 8
  %400 = load i32, ptr %24, align 4
  %401 = insertvalue { ptr, i32 } poison, ptr %399, 0
  %402 = insertvalue { ptr, i32 } %401, i32 %400, 1
  resume { ptr, i32 } %402
}

declare noundef double @_ZN4sptk12KaiserWindow17AttenuationToBetaEd(double noundef) #4

declare void @_ZN4sptk12KaiserWindowC1Eidb(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, double noundef, i1 noundef zeroext) unnamed_addr #4

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

declare noundef i32 @_ZN4sptk10NextPowTwoEi(i32 noundef) #4

declare void @_ZN4sptk30RealValuedFastFourierTransformC1Eii(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef, i32 noundef) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk30RealValuedFastFourierTransform6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

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

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

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

declare noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_ZN4sptk37MakePseudoQuadratureMirrorFilterBanksEbiididdPS3_IS5_SaIS5_EEPbE3$_0ET1_T_SH_T0_SG_T2_"(ptr, ptr, ptr, ptr) #3

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk30RealValuedFastFourierTransform6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk30RealValuedFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk12KaiserWindowD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}


; 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.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.std::allocator" = type { i8 }
%"class.sptk::KaiserWindow" = type { %"class.sptk::WindowInterface", i32, double, i8, i8, %"class.std::vector" }
%"class.sptk::WindowInterface" = type { ptr }
%"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.sptk::RealValuedFastFourierTransform::Buffer" = type { ptr, %"class.std::vector", %"class.std::vector" }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk37MakePseudoQuadratureMirrorFilterBanksEbiididdPSt6vectorIS0_IdSaIdEESaIS2_EEPb(i1 noundef zeroext %0, i32 noundef %1, i32 noundef %2, double noundef %3, i32 noundef %4, double noundef %5, double noundef %6, ptr noundef %7, ptr noundef writeonly %8) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.sptk::KaiserWindow", align 8
  %13 = alloca %"class.sptk::RealValuedFastFourierTransform", align 8
  %14 = alloca %"class.sptk::RealValuedFastFourierTransform::Buffer", align 8
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::vector", align 8
  %19 = icmp eq i32 %1, 0
  %20 = icmp slt i32 %2, 2
  %or.cond = or i1 %19, %20
  %21 = fcmp ole double %3, 0.000000e+00
  %or.cond5 = or i1 %or.cond, %21
  %22 = icmp eq i32 %4, 0
  %or.cond7 = or i1 %or.cond5, %22
  %23 = fcmp olt double %5, 0.000000e+00
  %or.cond9 = or i1 %or.cond7, %23
  %24 = fcmp ole double %6, 0.000000e+00
  %or.cond11 = or i1 %or.cond9, %24
  %25 = icmp eq ptr %7, null
  %or.cond13 = or i1 %or.cond11, %25
  br i1 %or.cond13, label %198, label %26

26:                                               ; preds = %9
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %28, label %27

27:                                               ; preds = %26
  store i8 0, ptr %8, align 1, !tbaa !5
  br label %28

28:                                               ; preds = %27, %26
  %29 = add nuw nsw i32 %2, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  %30 = zext nneg i32 %29 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %30, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %31 unwind label %40

31:                                               ; preds = %28
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %12) #6
  %32 = invoke noundef double @_ZN4sptk12KaiserWindow17AttenuationToBetaEd(double noundef %3)
          to label %33 unwind label %42

33:                                               ; preds = %31
  invoke void @_ZN4sptk12KaiserWindowC1Eidb(ptr noundef nonnull align 8 dereferenceable(56) %12, i32 noundef %29, double noundef %32, i1 noundef zeroext false)
          to label %34 unwind label %42

34:                                               ; preds = %33
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4sptk12KaiserWindow3GetEv(ptr noundef nonnull align 8 dereferenceable(56) %12)
  %36 = invoke noundef i32 @_ZN4sptk10NextPowTwoEi(i32 noundef %29)
          to label %37 unwind label %44

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %13) #6
  invoke void @_ZN4sptk30RealValuedFastFourierTransformC1Eii(ptr noundef nonnull align 8 dereferenceable(104) %13, i32 noundef %2, i32 noundef %36)
          to label %38 unwind label %46

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %14) #6
  call void @_ZN4sptk30RealValuedFastFourierTransform6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14)
  %39 = call noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform7IsValidEv(ptr noundef nonnull align 8 dereferenceable(104) %13)
  br i1 %39, label %48, label %132

40:                                               ; preds = %28
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  br label %197

42:                                               ; preds = %33, %31
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %146

44:                                               ; preds = %34
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %145

46:                                               ; preds = %37
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %144

48:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %30, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %49 unwind label %62

49:                                               ; preds = %48
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #6
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #6
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %50 = icmp sgt i32 %4, 0
  br i1 %50, label %.lr.ph164, label %.loopexit156

.lr.ph164:                                        ; preds = %49
  %51 = shl nsw i32 %1, 1
  %52 = sitofp i32 %51 to double
  %53 = fdiv double 0x400921FB54442D18, %52
  %54 = shl nsw i32 %1, 2
  %55 = sdiv i32 %36, %54
  %56 = uitofp nneg i32 %2 to double
  %57 = lshr i32 %2, 1
  %58 = zext nneg i32 %57 to i64
  %59 = sext i32 %55 to i64
  %60 = add nuw i32 %2, 1
  %wide.trip.count = zext i32 %60 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %61 = icmp eq i32 %2, 0
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.preheader

62:                                               ; preds = %48
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  br label %143

.lr.ph.preheader:                                 ; preds = %123, %.lr.ph164
  %.0123162 = phi double [ %53, %.lr.ph164 ], [ %128, %123 ]
  %.0128161 = phi double [ %6, %.lr.ph164 ], [ %.0128161.sink, %123 ]
  %.0131160 = phi double [ 0x7FEFFFFFFFFFFFFF, %.lr.ph164 ], [ %.2133.ph, %123 ]
  %.0134159 = phi i32 [ 0, %.lr.ph164 ], [ %129, %123 ]
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0) #6
  br i1 %61, label %._crit_edge.unr-lcssa, label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa
  %65 = trunc nuw nsw i64 %indvars.iv.unr to i32
  %66 = uitofp nneg i32 %65 to double
  %67 = call double @llvm.fmuladd.f64(double %56, double -5.000000e-01, double %66)
  %68 = fmul double %.0123162, %67
  %69 = call double @sin(double noundef %68) #6
  %70 = fmul double %67, 0x400921FB54442D18
  %71 = fdiv double %69, %70
  %72 = getelementptr inbounds double, ptr %64, i64 %indvars.iv.unr
  store double %71, ptr %72, align 8, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %73 = invoke noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef %29)
          to label %90 unwind label %94

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %74 = trunc nuw nsw i64 %indvars.iv to i32
  %75 = uitofp nneg i32 %74 to double
  %76 = call double @llvm.fmuladd.f64(double %56, double -5.000000e-01, double %75)
  %77 = fmul double %.0123162, %76
  %78 = call double @sin(double noundef %77) #6
  %79 = fmul double %76, 0x400921FB54442D18
  %80 = fdiv double %78, %79
  %81 = getelementptr inbounds double, ptr %64, i64 %indvars.iv
  store double %80, ptr %81, align 8, !tbaa !9
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %82 = trunc nuw nsw i64 %indvars.iv.next to i32
  %83 = uitofp nneg i32 %82 to double
  %84 = call double @llvm.fmuladd.f64(double %56, double -5.000000e-01, double %83)
  %85 = fmul double %.0123162, %84
  %86 = call double @sin(double noundef %85) #6
  %87 = fmul double %84, 0x400921FB54442D18
  %88 = fdiv double %86, %87
  %89 = getelementptr inbounds double, ptr %64, i64 %indvars.iv.next
  store double %88, ptr %89, align 8, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !11

90:                                               ; preds = %._crit_edge
  br i1 %73, label %96, label %91

91:                                               ; preds = %90
  %92 = fdiv double %.0123162, 0x400921FB54442D18
  %93 = getelementptr inbounds double, ptr %64, i64 %58
  store double %92, ptr %93, align 8, !tbaa !9
  br label %96

94:                                               ; preds = %._crit_edge
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %131

96:                                               ; preds = %91, %90
  %97 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %98 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %99 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #6
  %100 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %101 = invoke ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_ZN4sptk37MakePseudoQuadratureMirrorFilterBanksEbiididdPS3_IS5_SaIS5_EEPbE3$_0ET1_T_SH_T0_SG_T2_"(ptr %97, ptr %98, ptr %99, ptr %100)
          to label %102 unwind label %105

102:                                              ; preds = %96
  %103 = invoke noundef zeroext i1 @_ZNK4sptk30RealValuedFastFourierTransform3RunERKSt6vectorIdSaIdEEPS3_S6_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(104) %13, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %14)
          to label %104 unwind label %105

104:                                              ; preds = %102
  br i1 %103, label %107, label %.loopexit156

105:                                              ; preds = %102, %96
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %131

107:                                              ; preds = %104
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %59) #6
  %109 = load double, ptr %108, align 8, !tbaa !9
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %59) #6
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %59) #6
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %59) #6
  %115 = load double, ptr %114, align 8, !tbaa !9
  %116 = fmul double %113, %115
  %117 = call double @llvm.fmuladd.f64(double %109, double %111, double %116)
  %118 = fadd double %117, -5.000000e-01
  %119 = call double @llvm.fabs.f64(double %118)
  %120 = fcmp uge double %119, %5
  br i1 %120, label %123, label %121

121:                                              ; preds = %107
  br i1 %.not, label %.loopexit156, label %122

122:                                              ; preds = %121
  store i8 1, ptr %8, align 1, !tbaa !5
  br label %.loopexit156

123:                                              ; preds = %107
  %124 = fcmp ogt double %118, 0.000000e+00
  %125 = fcmp olt double %119, %.0131160
  %126 = fmul double %.0128161, 5.000000e-01
  %.0128161.sink = select i1 %125, double %.0128161, double %126
  %.2133.ph = select i1 %125, double %119, double %.0131160
  %127 = select i1 %124, double -1.000000e+00, double 1.000000e+00
  %128 = call double @llvm.fmuladd.f64(double %127, double %.0128161.sink, double %.0123162)
  %129 = add nuw nsw i32 %.0134159, 1
  %exitcond178.not = icmp eq i32 %129, %4
  br i1 %exitcond178.not, label %.loopexit156, label %.lr.ph.preheader, !llvm.loop !13

.loopexit156:                                     ; preds = %123, %104, %49, %122, %121
  %130 = phi i1 [ true, %121 ], [ true, %122 ], [ true, %49 ], [ %103, %104 ], [ %103, %123 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  br label %132

131:                                              ; preds = %105, %94
  %.pn = phi { ptr, i32 } [ %106, %105 ], [ %95, %94 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %143

132:                                              ; preds = %38, %.loopexit156
  %.2122 = phi i1 [ %130, %.loopexit156 ], [ false, %38 ]
  call void @_ZN4sptk30RealValuedFastFourierTransform6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #6
  call void @_ZN4sptk30RealValuedFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %13) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %13) #6
  call void @_ZN4sptk12KaiserWindowD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %12) #6
  br i1 %.2122, label %133, label %.loopexit

133:                                              ; preds = %132
  %134 = sext i32 %1 to i64
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %134)
          to label %135 unwind label %147

135:                                              ; preds = %133
  %136 = icmp sgt i32 %1, 0
  br i1 %136, label %.lr.ph175.split.preheader, label %.loopexit

.lr.ph175.split.preheader:                        ; preds = %135
  %137 = shl nuw nsw i32 %1, 1
  %138 = uitofp nneg i32 %137 to double
  %139 = uitofp nneg i32 %2 to double
  %140 = select i1 %0, i32 -1, i32 1
  %141 = add nuw i32 %2, 1
  %wide.trip.count188 = zext nneg i32 %1 to i64
  %wide.trip.count183 = zext i32 %141 to i64
  %xtraiter191 = and i64 %wide.trip.count183, 1
  %142 = icmp eq i32 %2, 0
  %unroll_iter193 = and i64 %wide.trip.count183, 4294967294
  %lcmp.mod192.not = icmp eq i64 %xtraiter191, 0
  br label %.lr.ph175.split

143:                                              ; preds = %131, %62
  %.pn.pn = phi { ptr, i32 } [ %.pn, %131 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  call void @_ZN4sptk30RealValuedFastFourierTransform6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #6
  call void @_ZN4sptk30RealValuedFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %13) #6
  br label %144

144:                                              ; preds = %143, %46
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %143 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %13) #6
  br label %145

145:                                              ; preds = %144, %44
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %144 ], [ %45, %44 ]
  call void @_ZN4sptk12KaiserWindowD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #6
  br label %146

146:                                              ; preds = %145, %42
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %145 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %12) #6
  br label %196

147:                                              ; preds = %133
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %196

.lr.ph175.split:                                  ; preds = %.lr.ph175.split.preheader, %._crit_edge171
  %indvars.iv185 = phi i64 [ 0, %.lr.ph175.split.preheader ], [ %indvars.iv.next186, %._crit_edge171 ]
  %.0127172 = phi i32 [ %140, %.lr.ph175.split.preheader ], [ %172, %._crit_edge171 ]
  %149 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv185) #6
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %30)
          to label %.lr.ph170 unwind label %.split

.lr.ph170:                                        ; preds = %.lr.ph175.split
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #6
  %151 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv185) #6
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef 0) #6
  %indvars.iv185.tr = trunc i64 %indvars.iv185 to i32
  %153 = shl i32 %indvars.iv185.tr, 1
  %154 = or disjoint i32 %153, 1
  %155 = uitofp nneg i32 %154 to double
  %156 = fmul double %155, 0x400921FB54442D18
  %157 = fdiv double %156, %138
  %158 = sitofp i32 %.0127172 to double
  %159 = fmul double %158, 2.500000e-01
  %160 = fmul double %159, 0x400921FB54442D18
  br i1 %142, label %._crit_edge171.unr-lcssa, label %.lr.ph170.new

._crit_edge171.unr-lcssa:                         ; preds = %.lr.ph170.new, %.lr.ph170
  %indvars.iv179.unr = phi i64 [ 0, %.lr.ph170 ], [ %indvars.iv.next180.1, %.lr.ph170.new ]
  br i1 %lcmp.mod192.not, label %._crit_edge171, label %._crit_edge171.epilog-lcssa

._crit_edge171.epilog-lcssa:                      ; preds = %._crit_edge171.unr-lcssa
  %161 = trunc nuw nsw i64 %indvars.iv179.unr to i32
  %162 = uitofp nneg i32 %161 to double
  %163 = call double @llvm.fmuladd.f64(double %139, double -5.000000e-01, double %162)
  %164 = fmul double %157, %163
  %165 = getelementptr inbounds double, ptr %150, i64 %indvars.iv179.unr
  %166 = load double, ptr %165, align 8, !tbaa !9
  %167 = fmul double %166, 2.000000e+00
  %168 = fadd double %160, %164
  %169 = call double @cos(double noundef %168) #6
  %170 = fmul double %167, %169
  %171 = getelementptr inbounds double, ptr %152, i64 %indvars.iv179.unr
  store double %170, ptr %171, align 8, !tbaa !9
  br label %._crit_edge171

._crit_edge171:                                   ; preds = %._crit_edge171.unr-lcssa, %._crit_edge171.epilog-lcssa
  %172 = sub nsw i32 0, %.0127172
  %indvars.iv.next186 = add nuw nsw i64 %indvars.iv185, 1
  %exitcond189.not = icmp eq i64 %indvars.iv.next186, %wide.trip.count188
  br i1 %exitcond189.not, label %.loopexit, label %.lr.ph175.split, !llvm.loop !14

.split:                                           ; preds = %.lr.ph175.split
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %196

.lr.ph170.new:                                    ; preds = %.lr.ph170, %.lr.ph170.new
  %indvars.iv179 = phi i64 [ %indvars.iv.next180.1, %.lr.ph170.new ], [ 0, %.lr.ph170 ]
  %niter194 = phi i64 [ %niter194.next.1, %.lr.ph170.new ], [ 0, %.lr.ph170 ]
  %174 = trunc nuw nsw i64 %indvars.iv179 to i32
  %175 = uitofp nneg i32 %174 to double
  %176 = call double @llvm.fmuladd.f64(double %139, double -5.000000e-01, double %175)
  %177 = fmul double %157, %176
  %178 = getelementptr inbounds double, ptr %150, i64 %indvars.iv179
  %179 = load double, ptr %178, align 8, !tbaa !9
  %180 = fmul double %179, 2.000000e+00
  %181 = fadd double %160, %177
  %182 = call double @cos(double noundef %181) #6
  %183 = fmul double %180, %182
  %184 = getelementptr inbounds double, ptr %152, i64 %indvars.iv179
  store double %183, ptr %184, align 8, !tbaa !9
  %indvars.iv.next180 = or disjoint i64 %indvars.iv179, 1
  %185 = trunc nuw nsw i64 %indvars.iv.next180 to i32
  %186 = uitofp nneg i32 %185 to double
  %187 = call double @llvm.fmuladd.f64(double %139, double -5.000000e-01, double %186)
  %188 = fmul double %157, %187
  %189 = getelementptr inbounds double, ptr %150, i64 %indvars.iv.next180
  %190 = load double, ptr %189, align 8, !tbaa !9
  %191 = fmul double %190, 2.000000e+00
  %192 = fadd double %160, %188
  %193 = call double @cos(double noundef %192) #6
  %194 = fmul double %191, %193
  %195 = getelementptr inbounds double, ptr %152, i64 %indvars.iv.next180
  store double %194, ptr %195, align 8, !tbaa !9
  %indvars.iv.next180.1 = add nuw nsw i64 %indvars.iv179, 2
  %niter194.next.1 = add i64 %niter194, 2
  %niter194.ncmp.1 = icmp eq i64 %niter194.next.1, %unroll_iter193
  br i1 %niter194.ncmp.1, label %._crit_edge171.unr-lcssa, label %.lr.ph170.new, !llvm.loop !15

.loopexit:                                        ; preds = %._crit_edge171, %135, %132
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %198

196:                                              ; preds = %.split, %147, %146
  %.pn146 = phi { ptr, i32 } [ %148, %147 ], [ %.pn.pn.pn.pn.pn, %146 ], [ %173, %.split ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %197

197:                                              ; preds = %196, %40
  %.pn146.pn = phi { ptr, i32 } [ %.pn146, %196 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  resume { ptr, i32 } %.pn146.pn

198:                                              ; preds = %9, %.loopexit
  %.3 = phi i1 [ %.2122, %.loopexit ], [ false, %9 ]
  ret i1 %.3
}

declare noundef double @_ZN4sptk12KaiserWindow17AttenuationToBetaEd(double noundef) local_unnamed_addr #4

declare void @_ZN4sptk12KaiserWindowC1Eidb(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, double noundef, i1 noundef zeroext) unnamed_addr #4

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

declare noundef i32 @_ZN4sptk10NextPowTwoEi(i32 noundef) local_unnamed_addr #4

declare void @_ZN4sptk30RealValuedFastFourierTransformC1Eii(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef, i32 noundef) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk30RealValuedFastFourierTransform6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

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

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

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

declare noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS1_IPKdS5_EES6_ZN4sptk37MakePseudoQuadratureMirrorFilterBanksEbiididdPS3_IS5_SaIS5_EEPbE3$_0ET1_T_SH_T0_SG_T2_"(ptr, ptr, ptr, ptr) local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk30RealValuedFastFourierTransform6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk30RealValuedFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk12KaiserWindowD2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass