; LLVM IR from sp-nitech/SPTK :: src/math (second_order_all_pass_inverse_frequency_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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.2" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.sptk::InverseFastFourierTransform" = type { ptr, %"class.sptk::FastFourierTransform" }
%"class.sptk::FastFourierTransform" = type { ptr, i32, i32, i32, i8, %"class.std::vector.0" }
%"class.sptk::SecondOrderAllPassInverseFrequencyTransform" = type { ptr, i32, i32, double, double, i8, %"class.std::vector" }

@_ZTVN4sptk43SecondOrderAllPassInverseFrequencyTransformE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk43SecondOrderAllPassInverseFrequencyTransformC2Eiiidd(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, double noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::vector.0", align 8
  %19 = alloca %"class.std::allocator.2", align 1
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca %"class.std::vector.0", align 8
  %23 = alloca %"class.std::allocator.2", align 1
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.std::vector.0", align 8
  %26 = alloca %"class.std::allocator.2", align 1
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  %29 = alloca %"class.sptk::InverseFastFourierTransform", align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !11
  store double %5, ptr %12, align 8, !tbaa !11
  %39 = load ptr, ptr %7, align 8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN4sptk43SecondOrderAllPassInverseFrequencyTransformE, i32 0, i32 0, i32 2), ptr %39, align 8, !tbaa !13
  %40 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %41 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %41, ptr %40, align 8, !tbaa !15
  %42 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 2
  %43 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %43, ptr %42, align 4, !tbaa !22
  %44 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 3
  %45 = load double, ptr %11, align 8, !tbaa !11
  store double %45, ptr %44, align 8, !tbaa !23
  %46 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 4
  %47 = load double, ptr %12, align 8, !tbaa !11
  store double %47, ptr %46, align 8, !tbaa !24
  %48 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 5
  store i8 1, ptr %48, align 8, !tbaa !25
  %49 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 6
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  %50 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %51 = load i32, ptr %50, align 8, !tbaa !15
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %72, label %53

53:                                               ; preds = %6
  %54 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 2
  %55 = load i32, ptr %54, align 4, !tbaa !22
  %56 = icmp slt i32 %55, 0
  br i1 %56, label %72, label %57

57:                                               ; preds = %53
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 2
  %60 = load i32, ptr %59, align 4, !tbaa !22
  %61 = icmp sle i32 %58, %60
  br i1 %61, label %72, label %62

62:                                               ; preds = %57
  %63 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 3
  %64 = load double, ptr %63, align 8, !tbaa !23
  %65 = invoke noundef zeroext i1 @_ZN4sptk12IsValidAlphaEd(double noundef %64)
          to label %66 unwind label %74

66:                                               ; preds = %62
  br i1 %65, label %67, label %72

67:                                               ; preds = %66
  %68 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 4
  %69 = load double, ptr %68, align 8, !tbaa !24
  %70 = invoke noundef zeroext i1 @_ZN4sptk9IsInRangeEddd(double noundef %69, double noundef 0.000000e+00, double noundef 0x400921FB54442D18)
          to label %71 unwind label %74

71:                                               ; preds = %67
  br i1 %70, label %78, label %72

72:                                               ; preds = %71, %66, %57, %53, %6
  %73 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 5
  store i8 0, ptr %73, align 8, !tbaa !25
  br label %374

74:                                               ; preds = %67, %62
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %13, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %14, align 4
  br label %378

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %79 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %80 = load i32, ptr %79, align 8, !tbaa !15
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %82 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 2
  %83 = load i32, ptr %82, align 4, !tbaa !22
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  %85 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %86 = load i32, ptr %85, align 8, !tbaa !15
  %87 = mul nsw i32 2, %86
  %88 = add nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %91, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %92 unwind label %114

92:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  call void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %89, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %93 unwind label %118

93:                                               ; preds = %92
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  %94 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %95 = load i32, ptr %94, align 8, !tbaa !15
  %96 = mul nsw i32 2, %95
  %97 = add nsw i32 %96, 1
  %98 = sext i32 %97 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #5
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %100, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %101 unwind label %123

101:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  call void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %98, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %102 unwind label %127

102:                                              ; preds = %101
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #5
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #5
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %104, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %105 unwind label %132

105:                                              ; preds = %102
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = sitofp i32 %106 to double
  %108 = fdiv double 0x401921FB54442D18, %107
  store double %108, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %148, %105
  %110 = load i32, ptr %28, align 4, !tbaa !9
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %136, label %113

113:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %155

114:                                              ; preds = %78
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %13, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %14, align 4
  br label %122

118:                                              ; preds = %92
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %13, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %14, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  br label %122

122:                                              ; preds = %118, %114
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  br label %377

123:                                              ; preds = %93
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %13, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %14, align 4
  br label %131

127:                                              ; preds = %101
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %13, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %14, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  br label %131

131:                                              ; preds = %127, %123
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  br label %376

132:                                              ; preds = %102
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %13, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  br label %287

136:                                              ; preds = %109
  %137 = load double, ptr %27, align 8, !tbaa !11
  %138 = load i32, ptr %28, align 4, !tbaa !9
  %139 = sitofp i32 %138 to double
  %140 = fmul double %137, %139
  %141 = load double, ptr %11, align 8, !tbaa !11
  %142 = load double, ptr %12, align 8, !tbaa !11
  %143 = invoke noundef double @_ZN4sptk4WarpEddd(double noundef %140, double noundef %141, double noundef %142)
          to label %144 unwind label %151

144:                                              ; preds = %136
  %145 = load i32, ptr %28, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %146) #5
  store double %143, ptr %147, align 8, !tbaa !11
  br label %148

148:                                              ; preds = %144
  %149 = load i32, ptr %28, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %28, align 4, !tbaa !9
  br label %109, !llvm.loop !26

151:                                              ; preds = %136
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %13, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %286

155:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 56, ptr %29) #5
  %156 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZN4sptk27InverseFastFourierTransformC1Ei(ptr noundef nonnull align 8 dereferenceable(56) %29, i32 noundef %156)
          to label %157 unwind label %167

157:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %158 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %159 = load i32, ptr %158, align 8, !tbaa !15
  %160 = sub nsw i32 0, %159
  store i32 %160, ptr %30, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %266, %157
  %162 = load i32, ptr %30, align 4, !tbaa !9
  %163 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %164 = load i32, ptr %163, align 8, !tbaa !15
  %165 = icmp sle i32 %162, %164
  br i1 %165, label %171, label %166

166:                                              ; preds = %161
  store i32 5, ptr %31, align 4
  br label %269

167:                                              ; preds = %155
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %13, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %14, align 4
  br label %285

171:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %172 = load i32, ptr %30, align 4, !tbaa !9
  %173 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %174 = load i32, ptr %173, align 8, !tbaa !15
  %175 = add nsw i32 %172, %174
  store i32 %175, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %211, %171
  %177 = load i32, ptr %33, align 4, !tbaa !9
  %178 = load i32, ptr %10, align 4, !tbaa !9
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 8, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  br label %214

181:                                              ; preds = %176
  %182 = load i32, ptr %33, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %183) #5
  %185 = load double, ptr %184, align 8, !tbaa !11
  %186 = load i32, ptr %30, align 4, !tbaa !9
  %187 = sitofp i32 %186 to double
  %188 = fmul double %185, %187
  %189 = call double @cos(double noundef %188) #5
  %190 = load i32, ptr %32, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %191) #5
  %193 = load i32, ptr %33, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194) #5
  store double %189, ptr %195, align 8, !tbaa !11
  %196 = load i32, ptr %33, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %197) #5
  %199 = load double, ptr %198, align 8, !tbaa !11
  %200 = load i32, ptr %30, align 4, !tbaa !9
  %201 = sitofp i32 %200 to double
  %202 = fmul double %199, %201
  %203 = call double @sin(double noundef %202) #5
  %204 = fneg double %203
  %205 = load i32, ptr %32, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %206) #5
  %208 = load i32, ptr %33, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %207, i64 noundef %209) #5
  store double %204, ptr %210, align 8, !tbaa !11
  br label %211

211:                                              ; preds = %181
  %212 = load i32, ptr %33, align 4, !tbaa !9
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %33, align 4, !tbaa !9
  br label %176, !llvm.loop !28

214:                                              ; preds = %180
  %215 = load i32, ptr %32, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %216) #5
  %218 = load i32, ptr %32, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %219) #5
  %221 = invoke noundef zeroext i1 @_ZNK4sptk27InverseFastFourierTransform3RunEPSt6vectorIdSaIdEES4_(ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef %217, ptr noundef %220)
          to label %222 unwind label %225

222:                                              ; preds = %214
  br i1 %221, label %229, label %223

223:                                              ; preds = %222
  %224 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 5
  store i8 0, ptr %224, align 8, !tbaa !25
  store i32 1, ptr %31, align 4
  br label %263

225:                                              ; preds = %214
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %13, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @_ZN4sptk27InverseFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #5
  br label %285

229:                                              ; preds = %222
  %230 = load i32, ptr %30, align 4, !tbaa !9
  %231 = icmp slt i32 0, %230
  br i1 %231, label %232, label %262

232:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %233

233:                                              ; preds = %258, %232
  %234 = load i32, ptr %34, align 4, !tbaa !9
  %235 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 2
  %236 = load i32, ptr %235, align 4, !tbaa !22
  %237 = icmp sle i32 %234, %236
  br i1 %237, label %239, label %238

238:                                              ; preds = %233
  store i32 11, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  br label %261

239:                                              ; preds = %233
  %240 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %241 = load i32, ptr %240, align 8, !tbaa !15
  %242 = load i32, ptr %30, align 4, !tbaa !9
  %243 = sub nsw i32 %241, %242
  %244 = sext i32 %243 to i64
  %245 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %244) #5
  %246 = load i32, ptr %34, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %245, i64 noundef %247) #5
  %249 = load double, ptr %248, align 8, !tbaa !11
  %250 = load i32, ptr %32, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %251) #5
  %253 = load i32, ptr %34, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %252, i64 noundef %254) #5
  %256 = load double, ptr %255, align 8, !tbaa !11
  %257 = fadd double %256, %249
  store double %257, ptr %255, align 8, !tbaa !11
  br label %258

258:                                              ; preds = %239
  %259 = load i32, ptr %34, align 4, !tbaa !9
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %34, align 4, !tbaa !9
  br label %233, !llvm.loop !29

261:                                              ; preds = %238
  br label %262

262:                                              ; preds = %261, %229
  store i32 0, ptr %31, align 4
  br label %263

263:                                              ; preds = %262, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  %264 = load i32, ptr %31, align 4
  switch i32 %264, label %269 [
    i32 0, label %265
  ]

265:                                              ; preds = %263
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %30, align 4, !tbaa !9
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %30, align 4, !tbaa !9
  br label %161, !llvm.loop !30

269:                                              ; preds = %263, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  %270 = load i32, ptr %31, align 4
  switch i32 %270, label %272 [
    i32 5, label %271
  ]

271:                                              ; preds = %269
  store i32 0, ptr %31, align 4
  br label %272

272:                                              ; preds = %271, %269
  call void @_ZN4sptk27InverseFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  %273 = load i32, ptr %31, align 4
  switch i32 %273, label %372 [
    i32 0, label %274
  ]

274:                                              ; preds = %272
  %275 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 6
  %276 = load i32, ptr %16, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %275, i64 noundef %277)
          to label %278 unwind label %288

278:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %279

279:                                              ; preds = %332, %278
  %280 = load i32, ptr %35, align 4, !tbaa !9
  %281 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 2
  %282 = load i32, ptr %281, align 4, !tbaa !22
  %283 = icmp sle i32 %280, %282
  br i1 %283, label %292, label %284

284:                                              ; preds = %279
  store i32 14, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %335

285:                                              ; preds = %225, %167
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #5
  br label %286

286:                                              ; preds = %285, %151
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  br label %287

287:                                              ; preds = %286, %132
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  br label %375

288:                                              ; preds = %274
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %13, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %14, align 4
  br label %375

292:                                              ; preds = %279
  %293 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 6
  %294 = load i32, ptr %35, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %293, i64 noundef %295) #5
  %297 = load i32, ptr %15, align 4, !tbaa !9
  %298 = sext i32 %297 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %296, i64 noundef %298)
          to label %299 unwind label %306

299:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %300

300:                                              ; preds = %328, %299
  %301 = load i32, ptr %36, align 4, !tbaa !9
  %302 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %303 = load i32, ptr %302, align 8, !tbaa !15
  %304 = icmp sle i32 %301, %303
  br i1 %304, label %310, label %305

305:                                              ; preds = %300
  store i32 17, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %331

306:                                              ; preds = %292
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %13, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %375

310:                                              ; preds = %300
  %311 = load i32, ptr %36, align 4, !tbaa !9
  %312 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %313 = load i32, ptr %312, align 8, !tbaa !15
  %314 = add nsw i32 %311, %313
  %315 = sext i32 %314 to i64
  %316 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %315) #5
  %317 = load i32, ptr %35, align 4, !tbaa !9
  %318 = sext i32 %317 to i64
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %316, i64 noundef %318) #5
  %320 = load double, ptr %319, align 8, !tbaa !11
  %321 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 6
  %322 = load i32, ptr %35, align 4, !tbaa !9
  %323 = sext i32 %322 to i64
  %324 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %321, i64 noundef %323) #5
  %325 = load i32, ptr %36, align 4, !tbaa !9
  %326 = sext i32 %325 to i64
  %327 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %324, i64 noundef %326) #5
  store double %320, ptr %327, align 8, !tbaa !11
  br label %328

328:                                              ; preds = %310
  %329 = load i32, ptr %36, align 4, !tbaa !9
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %36, align 4, !tbaa !9
  br label %300, !llvm.loop !31

331:                                              ; preds = %305
  br label %332

332:                                              ; preds = %331
  %333 = load i32, ptr %35, align 4, !tbaa !9
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %35, align 4, !tbaa !9
  br label %279, !llvm.loop !32

335:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  store i32 1, ptr %37, align 4, !tbaa !9
  br label %336

336:                                              ; preds = %350, %335
  %337 = load i32, ptr %37, align 4, !tbaa !9
  %338 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 1
  %339 = load i32, ptr %338, align 8, !tbaa !15
  %340 = icmp sle i32 %337, %339
  br i1 %340, label %342, label %341

341:                                              ; preds = %336
  store i32 20, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  br label %353

342:                                              ; preds = %336
  %343 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 6
  %344 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %343, i64 noundef 0) #5
  %345 = load i32, ptr %37, align 4, !tbaa !9
  %346 = sext i32 %345 to i64
  %347 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %344, i64 noundef %346) #5
  %348 = load double, ptr %347, align 8, !tbaa !11
  %349 = fmul double %348, 5.000000e-01
  store double %349, ptr %347, align 8, !tbaa !11
  br label %350

350:                                              ; preds = %342
  %351 = load i32, ptr %37, align 4, !tbaa !9
  %352 = add nsw i32 %351, 1
  store i32 %352, ptr %37, align 4, !tbaa !9
  br label %336, !llvm.loop !33

353:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  store i32 1, ptr %38, align 4, !tbaa !9
  br label %354

354:                                              ; preds = %368, %353
  %355 = load i32, ptr %38, align 4, !tbaa !9
  %356 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 2
  %357 = load i32, ptr %356, align 4, !tbaa !22
  %358 = icmp sle i32 %355, %357
  br i1 %358, label %360, label %359

359:                                              ; preds = %354
  store i32 23, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  br label %371

360:                                              ; preds = %354
  %361 = getelementptr inbounds %"class.sptk::SecondOrderAllPassInverseFrequencyTransform", ptr %39, i32 0, i32 6
  %362 = load i32, ptr %38, align 4, !tbaa !9
  %363 = sext i32 %362 to i64
  %364 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %361, i64 noundef %363) #5
  %365 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %364, i64 noundef 0) #5
  %366 = load double, ptr %365, align 8, !tbaa !11
  %367 = fmul double %366, 2.000000e+00
  store double %367, ptr %365, align 8, !tbaa !11
  br label %368

368:                                              ; preds = %360
  %369 = load i32, ptr %38, align 4, !tbaa !9
  %370 = add nsw i32 %369, 1
  store i32 %370, ptr %38, align 4, !tbaa !9
  br label %354, !llvm.loop !34

371:                                              ; preds = %359
  store i32 0, ptr %31, align 4
  br label %372

372:                                              ; preds = %371, %272
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %373 = load i32, ptr %31, align 4
  switch i32 %373, label %384 [
    i32 0, label %374
    i32 1, label %374
  ]

374:                                              ; preds = %372, %372, %72
  ret void

375:                                              ; preds = %306, %288, %287
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  br label %376

376:                                              ; preds = %375, %131
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %377

377:                                              ; preds = %376, %122
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %378

378:                                              ; preds = %377, %74
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #5
  br label %379

379:                                              ; preds = %378
  %380 = load ptr, ptr %13, align 8
  %381 = load i32, ptr %14, align 4
  %382 = insertvalue { ptr, i32 } poison, ptr %380, 0
  %383 = insertvalue { ptr, i32 } %382, i32 %381, 1
  resume { ptr, i32 } %383

384:                                              ; preds = %372
  unreachable
}

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

declare noundef zeroext i1 @_ZN4sptk12IsValidAlphaEd(double noundef) #2

declare i32 @__gxx_personality_v0(...)

declare noundef zeroext i1 @_ZN4sptk9IsInRangeEddd(double noundef, double noundef, double noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(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) #3

; 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 nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare noundef double @_ZN4sptk4WarpEddd(double noundef, double noundef, double noundef) #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

declare void @_ZN4sptk27InverseFastFourierTransformC1Ei(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) unnamed_addr #2

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

; 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: nounwind
declare double @sin(double noundef) #4

declare noundef zeroext i1 @_ZNK4sptk27InverseFastFourierTransform3RunEPSt6vectorIdSaIdEES4_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef) #2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSN4sptk43SecondOrderAllPassInverseFrequencyTransformE", !10, i64 8, !10, i64 12, !12, i64 16, !12, i64 24, !17, i64 32, !18, i64 40}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!16, !10, i64 12}
!23 = !{!16, !12, i64 16}
!24 = !{!16, !12, i64 24}
!25 = !{!16, !17, i64 32}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}
!31 = distinct !{!31, !27}
!32 = distinct !{!32, !27}
!33 = distinct !{!33, !27}
!34 = distinct !{!34, !27}


; 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<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.2" = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.sptk::InverseFastFourierTransform" = type { ptr, %"class.sptk::FastFourierTransform" }
%"class.sptk::FastFourierTransform" = type { ptr, i32, i32, i32, i8, %"class.std::vector.0" }

@_ZTVN4sptk43SecondOrderAllPassInverseFrequencyTransformE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk43SecondOrderAllPassInverseFrequencyTransformC2Eiiidd(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, double noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca %"class.std::allocator.2", align 1
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::vector.0", align 8
  %13 = alloca %"class.std::allocator.2", align 1
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::vector.0", align 8
  %16 = alloca %"class.std::allocator.2", align 1
  %17 = alloca %"class.sptk::InverseFastFourierTransform", align 8
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN4sptk43SecondOrderAllPassInverseFrequencyTransformE, i64 16), ptr %0, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %18, align 8, !tbaa !8
  %19 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %2, ptr %19, align 4, !tbaa !19
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  store double %4, ptr %20, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  store double %5, ptr %21, align 8, !tbaa !21
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  store i8 1, ptr %22, align 8, !tbaa !22
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %24 = load i32, ptr %18, align 8, !tbaa !8
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %37, label %26

26:                                               ; preds = %6
  %27 = load i32, ptr %19, align 4, !tbaa !19
  %28 = icmp sgt i32 %27, -1
  %.not = icmp slt i32 %27, %3
  %or.cond = and i1 %28, %.not
  br i1 %or.cond, label %29, label %37

29:                                               ; preds = %26
  %30 = load double, ptr %20, align 8, !tbaa !20
  %31 = invoke noundef zeroext i1 @_ZN4sptk12IsValidAlphaEd(double noundef %30)
          to label %32 unwind label %38

32:                                               ; preds = %29
  br i1 %31, label %33, label %37

33:                                               ; preds = %32
  %34 = load double, ptr %21, align 8, !tbaa !21
  %35 = invoke noundef zeroext i1 @_ZN4sptk9IsInRangeEddd(double noundef %34, double noundef 0.000000e+00, double noundef 0x400921FB54442D18)
          to label %36 unwind label %38

36:                                               ; preds = %33
  br i1 %35, label %40, label %37

37:                                               ; preds = %36, %32, %26, %6
  store i8 0, ptr %22, align 8, !tbaa !22
  br label %170

38:                                               ; preds = %33, %29
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %174

40:                                               ; preds = %36
  %41 = load i32, ptr %18, align 8, !tbaa !8
  %42 = add nsw i32 %41, 1
  %43 = load i32, ptr %19, align 4, !tbaa !19
  %44 = add nsw i32 %43, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  %45 = zext i32 %3 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %45, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %46 unwind label %61

46:                                               ; preds = %40
  %47 = shl nsw i32 %41, 1
  %48 = or disjoint i32 %47, 1
  %49 = sext i32 %48 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %49, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %50 unwind label %63

50:                                               ; preds = %46
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  %51 = load i32, ptr %18, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %45, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %52 unwind label %66

52:                                               ; preds = %50
  %53 = shl nsw i32 %51, 1
  %54 = or disjoint i32 %53, 1
  %55 = sext i32 %54 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #5
  call void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %55, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %56 unwind label %68

56:                                               ; preds = %52
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %45, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %57 unwind label %71

57:                                               ; preds = %56
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  %58 = uitofp nneg i32 %3 to double
  %59 = fdiv double 0x401921FB54442D18, %58
  %60 = icmp sgt i32 %3, 0
  br i1 %60, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %77, %57
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %17) #5
  invoke void @_ZN4sptk27InverseFastFourierTransformC1Ei(ptr noundef nonnull align 8 dereferenceable(56) %17, i32 noundef %3)
          to label %81 unwind label %84

61:                                               ; preds = %40
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %46
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %65

65:                                               ; preds = %63, %61
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %173

66:                                               ; preds = %50
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %70

68:                                               ; preds = %52
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %70

70:                                               ; preds = %68, %66
  %.pn89 = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  br label %172

71:                                               ; preds = %56
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  br label %135

.lr.ph:                                           ; preds = %57, %77
  %indvars.iv = phi i64 [ %indvars.iv.next, %77 ], [ 0, %57 ]
  %73 = trunc nuw nsw i64 %indvars.iv to i32
  %74 = uitofp nneg i32 %73 to double
  %75 = fmul double %59, %74
  %76 = invoke noundef double @_ZN4sptk4WarpEddd(double noundef %75, double noundef %4, double noundef %5)
          to label %77 unwind label %79

77:                                               ; preds = %.lr.ph
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv) #5
  store double %76, ptr %78, align 8, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %45
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !24

79:                                               ; preds = %.lr.ph
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %134

81:                                               ; preds = %._crit_edge
  %82 = load i32, ptr %18, align 8, !tbaa !8
  %.not91121 = icmp slt i32 %82, 0
  br i1 %.not91121, label %._crit_edge126, label %.lr.ph125

.lr.ph125:                                        ; preds = %81
  %83 = sub nsw i32 0, %82
  br label %86

84:                                               ; preds = %._crit_edge
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %133

86:                                               ; preds = %.lr.ph125, %.thread
  %87 = phi i32 [ %82, %.lr.ph125 ], [ %127, %.thread ]
  %.073122 = phi i32 [ %83, %.lr.ph125 ], [ %126, %.thread ]
  %88 = add nsw i32 %87, %.073122
  br i1 %60, label %.lr.ph115, label %.._crit_edge116_crit_edge

.._crit_edge116_crit_edge:                        ; preds = %86
  %.pre162 = sext i32 %88 to i64
  br label %._crit_edge116

.lr.ph115:                                        ; preds = %86
  %89 = sitofp i32 %.073122 to double
  %90 = sext i32 %88 to i64
  br label %94

._crit_edge116:                                   ; preds = %94, %.._crit_edge116_crit_edge
  %.pre-phi = phi i64 [ %.pre162, %.._crit_edge116_crit_edge ], [ %90, %94 ]
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.pre-phi) #5
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.pre-phi) #5
  %93 = invoke noundef zeroext i1 @_ZNK4sptk27InverseFastFourierTransform3RunEPSt6vectorIdSaIdEES4_(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull %91, ptr noundef nonnull %92)
          to label %108 unwind label %109

94:                                               ; preds = %.lr.ph115, %94
  %indvars.iv141 = phi i64 [ 0, %.lr.ph115 ], [ %indvars.iv.next142, %94 ]
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv141) #5
  %96 = load double, ptr %95, align 8, !tbaa !23
  %97 = fmul double %96, %89
  %98 = call double @cos(double noundef %97) #5
  %99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %90) #5
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %indvars.iv141) #5
  store double %98, ptr %100, align 8, !tbaa !23
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv141) #5
  %102 = load double, ptr %101, align 8, !tbaa !23
  %103 = fmul double %102, %89
  %104 = call double @sin(double noundef %103) #5
  %105 = fneg double %104
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %90) #5
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %indvars.iv141) #5
  store double %105, ptr %107, align 8, !tbaa !23
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %exitcond145.not = icmp eq i64 %indvars.iv.next142, %45
  br i1 %exitcond145.not, label %._crit_edge116, label %94, !llvm.loop !26

108:                                              ; preds = %._crit_edge116
  br i1 %93, label %111, label %.loopexit111

109:                                              ; preds = %._crit_edge116
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4sptk27InverseFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #5
  br label %133

111:                                              ; preds = %108
  %112 = icmp slt i32 %.073122, 1
  %113 = load i32, ptr %19, align 4
  %.not94117 = icmp slt i32 %113, 0
  %or.cond165 = select i1 %112, i1 true, i1 %.not94117
  br i1 %or.cond165, label %.thread, label %.lr.ph119

.lr.ph119:                                        ; preds = %111, %.lr.ph119
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %.lr.ph119 ], [ 0, %111 ]
  %114 = load i32, ptr %18, align 8, !tbaa !8
  %115 = sub nsw i32 %114, %.073122
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %116) #5
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %indvars.iv146) #5
  %119 = load double, ptr %118, align 8, !tbaa !23
  %120 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.pre-phi) #5
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %indvars.iv146) #5
  %122 = load double, ptr %121, align 8, !tbaa !23
  %123 = fadd double %119, %122
  store double %123, ptr %121, align 8, !tbaa !23
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %124 = load i32, ptr %19, align 4, !tbaa !19
  %125 = sext i32 %124 to i64
  %.not94.not = icmp slt i64 %indvars.iv146, %125
  br i1 %.not94.not, label %.lr.ph119, label %.thread, !llvm.loop !27

.thread:                                          ; preds = %.lr.ph119, %111
  %126 = add nsw i32 %.073122, 1
  %127 = load i32, ptr %18, align 8, !tbaa !8
  %.not91.not = icmp slt i32 %.073122, %127
  br i1 %.not91.not, label %86, label %._crit_edge126, !llvm.loop !28

.loopexit111:                                     ; preds = %108
  store i8 0, ptr %22, align 8, !tbaa !22
  call void @_ZN4sptk27InverseFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  br label %.loopexit

._crit_edge126:                                   ; preds = %.thread, %81
  call void @_ZN4sptk27InverseFastFourierTransformD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  %128 = sext i32 %44 to i64
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %128)
          to label %.preheader109 unwind label %136

.preheader109:                                    ; preds = %._crit_edge126
  %129 = load i32, ptr %19, align 4, !tbaa !19
  %.not95131 = icmp slt i32 %129, 0
  br i1 %.not95131, label %.preheader109..preheader107_crit_edge, label %.lr.ph133

.preheader109..preheader107_crit_edge:            ; preds = %.preheader109
  %.pre = load i32, ptr %18, align 8, !tbaa !8
  br label %.preheader107

.lr.ph133:                                        ; preds = %.preheader109
  %130 = sext i32 %42 to i64
  br label %138

.preheader107:                                    ; preds = %._crit_edge130, %.preheader109..preheader107_crit_edge
  %131 = phi i32 [ %129, %.preheader109..preheader107_crit_edge ], [ %142, %._crit_edge130 ]
  %132 = phi i32 [ %.pre, %.preheader109..preheader107_crit_edge ], [ %141, %._crit_edge130 ]
  %.not96134 = icmp slt i32 %132, 1
  br i1 %.not96134, label %.preheader, label %.lr.ph136

133:                                              ; preds = %109, %84
  %.pn92 = phi { ptr, i32 } [ %110, %109 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #5
  br label %134

134:                                              ; preds = %133, %79
  %.pn99 = phi { ptr, i32 } [ %80, %79 ], [ %.pn92, %133 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br label %135

135:                                              ; preds = %134, %71
  %.pn99.pn = phi { ptr, i32 } [ %.pn99, %134 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  br label %171

136:                                              ; preds = %._crit_edge126
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %171

138:                                              ; preds = %.lr.ph133, %._crit_edge130
  %indvars.iv152 = phi i64 [ 0, %.lr.ph133 ], [ %indvars.iv.next153, %._crit_edge130 ]
  %139 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %indvars.iv152) #5
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %130)
          to label %.preheader108 unwind label %144

.preheader108:                                    ; preds = %138
  %140 = load i32, ptr %18, align 8, !tbaa !8
  %.not98127 = icmp slt i32 %140, 0
  br i1 %.not98127, label %._crit_edge130, label %.lr.ph129

._crit_edge130:                                   ; preds = %.lr.ph129, %.preheader108
  %141 = phi i32 [ %140, %.preheader108 ], [ %155, %.lr.ph129 ]
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %142 = load i32, ptr %19, align 4, !tbaa !19
  %143 = sext i32 %142 to i64
  %.not95.not = icmp slt i64 %indvars.iv152, %143
  br i1 %.not95.not, label %138, label %.preheader107, !llvm.loop !29

144:                                              ; preds = %138
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %171

.lr.ph129:                                        ; preds = %.preheader108, %.lr.ph129
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %.lr.ph129 ], [ 0, %.preheader108 ]
  %146 = phi i32 [ %155, %.lr.ph129 ], [ %140, %.preheader108 ]
  %147 = trunc nuw nsw i64 %indvars.iv149 to i32
  %148 = add nsw i32 %146, %147
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %149) #5
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %indvars.iv152) #5
  %152 = load double, ptr %151, align 8, !tbaa !23
  %153 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %indvars.iv152) #5
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %indvars.iv149) #5
  store double %152, ptr %154, align 8, !tbaa !23
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %155 = load i32, ptr %18, align 8, !tbaa !8
  %156 = sext i32 %155 to i64
  %.not98.not = icmp slt i64 %indvars.iv149, %156
  br i1 %.not98.not, label %.lr.ph129, label %._crit_edge130, !llvm.loop !30

.preheader.loopexit:                              ; preds = %.lr.ph136
  %.pre161 = load i32, ptr %19, align 4, !tbaa !19
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.preheader107
  %157 = phi i32 [ %.pre161, %.preheader.loopexit ], [ %131, %.preheader107 ]
  %.not97137 = icmp slt i32 %157, 1
  br i1 %.not97137, label %.loopexit, label %.lr.ph139

.lr.ph136:                                        ; preds = %.preheader107, %.lr.ph136
  %indvars.iv155 = phi i64 [ %indvars.iv.next156, %.lr.ph136 ], [ 1, %.preheader107 ]
  %158 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0) #5
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %indvars.iv155) #5
  %160 = load double, ptr %159, align 8, !tbaa !23
  %161 = fmul double %160, 5.000000e-01
  store double %161, ptr %159, align 8, !tbaa !23
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %162 = load i32, ptr %18, align 8, !tbaa !8
  %163 = sext i32 %162 to i64
  %.not96.not = icmp slt i64 %indvars.iv155, %163
  br i1 %.not96.not, label %.lr.ph136, label %.preheader.loopexit, !llvm.loop !31

.lr.ph139:                                        ; preds = %.preheader, %.lr.ph139
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %.lr.ph139 ], [ 1, %.preheader ]
  %164 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %indvars.iv158) #5
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %164, i64 noundef 0) #5
  %166 = load double, ptr %165, align 8, !tbaa !23
  %167 = fmul double %166, 2.000000e+00
  store double %167, ptr %165, align 8, !tbaa !23
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %168 = load i32, ptr %19, align 4, !tbaa !19
  %169 = sext i32 %168 to i64
  %.not97.not = icmp slt i64 %indvars.iv158, %169
  br i1 %.not97.not, label %.lr.ph139, label %.loopexit, !llvm.loop !32

.loopexit:                                        ; preds = %.lr.ph139, %.preheader, %.loopexit111
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %170

170:                                              ; preds = %.loopexit, %37
  ret void

171:                                              ; preds = %144, %136, %135
  %.pn99.pn.pn = phi { ptr, i32 } [ %.pn99.pn, %135 ], [ %145, %144 ], [ %137, %136 ]
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %172

172:                                              ; preds = %171, %70
  %.pn99.pn.pn.pn = phi { ptr, i32 } [ %.pn99.pn.pn, %171 ], [ %.pn89, %70 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %173

173:                                              ; preds = %172, %65
  %.pn99.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn99.pn.pn.pn, %172 ], [ %.pn, %65 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %174

174:                                              ; preds = %173, %38
  %.pn99.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn99.pn.pn.pn.pn, %173 ], [ %39, %38 ]
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  resume { ptr, i32 } %.pn99.pn.pn.pn.pn.pn
}

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

declare noundef zeroext i1 @_ZN4sptk12IsValidAlphaEd(double noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare noundef zeroext i1 @_ZN4sptk9IsInRangeEddd(double noundef, double noundef, double noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(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) #3

; 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 nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare noundef double @_ZN4sptk4WarpEddd(double noundef, double noundef, double noundef) local_unnamed_addr #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

declare void @_ZN4sptk27InverseFastFourierTransformC1Ei(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) unnamed_addr #2

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

; 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 nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_ZNK4sptk27InverseFastFourierTransform3RunEPSt6vectorIdSaIdEES4_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 8}
!9 = !{!"_ZTSN4sptk43SecondOrderAllPassInverseFrequencyTransformE", !10, i64 8, !10, i64 12, !12, i64 16, !12, i64 24, !13, i64 32, !14, i64 40}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"double", !11, i64 0}
!13 = !{!"bool", !11, i64 0}
!14 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !11, i64 0}
!19 = !{!9, !10, i64 12}
!20 = !{!9, !12, i64 16}
!21 = !{!9, !12, i64 24}
!22 = !{!9, !13, i64 32}
!23 = !{!12, !12, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !25}
!32 = distinct !{!32, !25}


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