; LLVM IR from zsiciarz/aquila :: aquila/transform/AquilaFft.ll (ZN6Aquila9AquilaFft3fftEPKd)

; 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::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::complex" = type { { double, double } }
%"class.Aquila::Fft" = type { ptr, i64 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Aquila9AquilaFft3fftEPKd(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::complex", align 8
  %23 = alloca %"class.std::complex", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::complex", align 8
  %27 = alloca %"class.std::complex", align 8
  %28 = alloca %"class.std::complex", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %29 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  %30 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %31 = load i64, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  call void @_ZNSaISt7complexIdEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt6vectorISt7complexIdESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %31, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %32 unwind label %81

32:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorISt7complexIdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !12
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %36 = load i64, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds double, ptr %34, i64 %36
  %38 = invoke ptr @_ZSt5beginISt6vectorISt7complexIdESaIS2_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %39 unwind label %85

39:                                               ; preds = %32
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %38, ptr %40, align 8
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8
  %43 = invoke ptr @_ZSt4copyIPKdN9__gnu_cxx17__normal_iteratorIPSt7complexIdESt6vectorIS5_SaIS5_EEEEET0_T_SC_SB_(ptr noundef %33, ptr noundef %37, ptr %42)
          to label %44 unwind label %85

44:                                               ; preds = %39
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %43, ptr %45, align 8
  store i32 1, ptr %12, align 4, !tbaa !12
  br label %46

46:                                               ; preds = %108, %44
  %47 = load i32, ptr %12, align 4, !tbaa !12
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = icmp ult i64 %48, %50
  br i1 %51, label %52, label %111

52:                                               ; preds = %46
  %53 = load i32, ptr %12, align 4, !tbaa !12
  %54 = load i32, ptr %11, align 4, !tbaa !12
  %55 = icmp ult i32 %53, %54
  br i1 %55, label %56, label %89

56:                                               ; preds = %52
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i32, ptr %12, align 4, !tbaa !12
  %59 = sub i32 %58, 1
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %57, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !14
  %63 = load i32, ptr %11, align 4, !tbaa !12
  %64 = sub i32 %63, 1
  %65 = zext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %65) #7
  %67 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %66, double noundef %62)
          to label %68 unwind label %85

68:                                               ; preds = %56
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load i32, ptr %11, align 4, !tbaa !12
  %71 = sub i32 %70, 1
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %69, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !14
  %75 = load i32, ptr %12, align 4, !tbaa !12
  %76 = sub i32 %75, 1
  %77 = zext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %77) #7
  %79 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %78, double noundef %74)
          to label %80 unwind label %85

80:                                               ; preds = %68
  br label %89

81:                                               ; preds = %3
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %9, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %10, align 4
  call void @_ZNSt15__new_allocatorISt7complexIdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  br label %250

85:                                               ; preds = %68, %56, %39, %32
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %9, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %10, align 4
  br label %247

89:                                               ; preds = %80, %52
  %90 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = udiv i64 %91, 2
  %93 = trunc i64 %92 to i32
  store i32 %93, ptr %13, align 4, !tbaa !12
  br label %94

94:                                               ; preds = %98, %89
  %95 = load i32, ptr %13, align 4, !tbaa !12
  %96 = load i32, ptr %11, align 4, !tbaa !12
  %97 = icmp ult i32 %95, %96
  br i1 %97, label %98, label %104

98:                                               ; preds = %94
  %99 = load i32, ptr %13, align 4, !tbaa !12
  %100 = load i32, ptr %11, align 4, !tbaa !12
  %101 = sub i32 %100, %99
  store i32 %101, ptr %11, align 4, !tbaa !12
  %102 = load i32, ptr %13, align 4, !tbaa !12
  %103 = udiv i32 %102, 2
  store i32 %103, ptr %13, align 4, !tbaa !12
  br label %94, !llvm.loop !16

104:                                              ; preds = %94
  %105 = load i32, ptr %13, align 4, !tbaa !12
  %106 = load i32, ptr %11, align 4, !tbaa !12
  %107 = add i32 %106, %105
  store i32 %107, ptr %11, align 4, !tbaa !12
  br label %108

108:                                              ; preds = %104
  %109 = load i32, ptr %12, align 4, !tbaa !12
  %110 = add i32 %109, 1
  store i32 %110, ptr %12, align 4, !tbaa !12
  br label %46, !llvm.loop !18

111:                                              ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %112 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = uitofp i64 %113 to double
  %115 = call double @log(double noundef %114) #7
  %116 = fdiv double %115, 0x3FE62E42FEFA39EF
  %117 = fptoui double %116 to i32
  store i32 %117, ptr %16, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %22, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %118 unwind label %128

118:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %119 unwind label %132

119:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %120 = load i32, ptr %16, align 4, !tbaa !12
  %121 = invoke noundef ptr @_ZN6Aquila9AquilaFft14getCachedFftWiEj(ptr noundef nonnull align 8 dereferenceable(64) %29, i32 noundef %120)
          to label %122 unwind label %136

122:                                              ; preds = %119
  store ptr %121, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 1, ptr %25, align 4, !tbaa !12
  br label %123

123:                                              ; preds = %238, %122
  %124 = load i32, ptr %25, align 4, !tbaa !12
  %125 = load i32, ptr %16, align 4, !tbaa !12
  %126 = icmp ule i32 %124, %125
  br i1 %126, label %140, label %127

127:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %242

128:                                              ; preds = %111
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  br label %246

132:                                              ; preds = %118
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  br label %245

136:                                              ; preds = %119
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  br label %244

140:                                              ; preds = %123
  %141 = load i32, ptr %25, align 4, !tbaa !12
  %142 = shl i32 1, %141
  store i32 %142, ptr %17, align 4, !tbaa !12
  %143 = load i32, ptr %25, align 4, !tbaa !12
  %144 = sub i32 %143, 1
  %145 = shl i32 1, %144
  store i32 %145, ptr %18, align 4, !tbaa !12
  %146 = load ptr, ptr %24, align 8, !tbaa !5
  %147 = load i32, ptr %25, align 4, !tbaa !12
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds ptr, ptr %146, i64 %148
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = getelementptr inbounds %"class.std::complex", ptr %150, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %151, i64 16, i1 false), !tbaa.struct !19
  store i32 1, ptr %19, align 4, !tbaa !12
  br label %152

152:                                              ; preds = %234, %140
  %153 = load i32, ptr %19, align 4, !tbaa !12
  %154 = load i32, ptr %18, align 4, !tbaa !12
  %155 = icmp ule i32 %153, %154
  br i1 %155, label %156, label %237

156:                                              ; preds = %152
  %157 = load i32, ptr %19, align 4, !tbaa !12
  store i32 %157, ptr %20, align 4, !tbaa !12
  br label %158

158:                                              ; preds = %209, %156
  %159 = load i32, ptr %20, align 4, !tbaa !12
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %162 = load i64, ptr %161, align 8, !tbaa !9
  %163 = icmp ule i64 %160, %162
  br i1 %163, label %164, label %225

164:                                              ; preds = %158
  %165 = load i32, ptr %20, align 4, !tbaa !12
  %166 = load i32, ptr %18, align 4, !tbaa !12
  %167 = add i32 %165, %166
  store i32 %167, ptr %21, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %168 = load i32, ptr %21, align 4, !tbaa !12
  %169 = sub i32 %168, 1
  %170 = zext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %170) #7
  %172 = invoke { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %171, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %173 unwind label %213

173:                                              ; preds = %164
  %174 = getelementptr inbounds %"class.std::complex", ptr %26, i32 0, i32 0
  %175 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 0
  %176 = extractvalue { double, double } %172, 0
  store double %176, ptr %175, align 8
  %177 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 1
  %178 = extractvalue { double, double } %172, 1
  store double %178, ptr %177, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %26, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  %179 = load i32, ptr %20, align 4, !tbaa !12
  %180 = sub i32 %179, 1
  %181 = zext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %181) #7
  %183 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %182, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %184 unwind label %217

184:                                              ; preds = %173
  %185 = getelementptr inbounds %"class.std::complex", ptr %27, i32 0, i32 0
  %186 = getelementptr inbounds { double, double }, ptr %185, i32 0, i32 0
  %187 = extractvalue { double, double } %183, 0
  store double %187, ptr %186, align 8
  %188 = getelementptr inbounds { double, double }, ptr %185, i32 0, i32 1
  %189 = extractvalue { double, double } %183, 1
  store double %189, ptr %188, align 8
  %190 = load i32, ptr %21, align 4, !tbaa !12
  %191 = sub i32 %190, 1
  %192 = zext i32 %191 to i64
  %193 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %192) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %193, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %194 = load i32, ptr %20, align 4, !tbaa !12
  %195 = sub i32 %194, 1
  %196 = zext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %196) #7
  %198 = invoke { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %197, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %199 unwind label %221

199:                                              ; preds = %184
  %200 = getelementptr inbounds %"class.std::complex", ptr %28, i32 0, i32 0
  %201 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 0
  %202 = extractvalue { double, double } %198, 0
  store double %202, ptr %201, align 8
  %203 = getelementptr inbounds { double, double }, ptr %200, i32 0, i32 1
  %204 = extractvalue { double, double } %198, 1
  store double %204, ptr %203, align 8
  %205 = load i32, ptr %20, align 4, !tbaa !12
  %206 = sub i32 %205, 1
  %207 = zext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %207) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %208, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  br label %209

209:                                              ; preds = %199
  %210 = load i32, ptr %17, align 4, !tbaa !12
  %211 = load i32, ptr %20, align 4, !tbaa !12
  %212 = add i32 %211, %210
  store i32 %212, ptr %20, align 4, !tbaa !12
  br label %158, !llvm.loop !21

213:                                              ; preds = %164
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %9, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  br label %241

217:                                              ; preds = %173
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %9, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  br label %241

221:                                              ; preds = %184
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %9, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  br label %241

225:                                              ; preds = %158
  %226 = load ptr, ptr %24, align 8, !tbaa !5
  %227 = load i32, ptr %25, align 4, !tbaa !12
  %228 = zext i32 %227 to i64
  %229 = getelementptr inbounds ptr, ptr %226, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = load i32, ptr %19, align 4, !tbaa !12
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds %"class.std::complex", ptr %230, i64 %232
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %233, i64 16, i1 false), !tbaa.struct !19
  br label %234

234:                                              ; preds = %225
  %235 = load i32, ptr %19, align 4, !tbaa !12
  %236 = add i32 %235, 1
  store i32 %236, ptr %19, align 4, !tbaa !12
  br label %152, !llvm.loop !22

237:                                              ; preds = %152
  br label %238

238:                                              ; preds = %237
  %239 = load i32, ptr %25, align 4, !tbaa !12
  %240 = add i32 %239, 1
  store i32 %240, ptr %25, align 4, !tbaa !12
  br label %123, !llvm.loop !23

241:                                              ; preds = %221, %217, %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %244

242:                                              ; preds = %127
  store i1 true, ptr %7, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  %243 = load i1, ptr %7, align 1
  br i1 %243, label %249, label %248

244:                                              ; preds = %241, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %245

245:                                              ; preds = %244, %132
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br label %246

246:                                              ; preds = %245, %128
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %247

247:                                              ; preds = %246, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %250

248:                                              ; preds = %242
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %249

249:                                              ; preds = %248, %242
  ret void

250:                                              ; preds = %247, %81
  %251 = load ptr, ptr %9, align 8
  %252 = load i32, ptr %10, align 4
  %253 = insertvalue { ptr, i32 } poison, ptr %251, 0
  %254 = insertvalue { ptr, i32 } %253, i32 %252, 1
  resume { ptr, i32 } %254
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIPKdN9__gnu_cxx17__normal_iteratorIPSt7complexIdESt6vectorIS5_SaIS5_EEEEET0_T_SC_SB_(ptr noundef, ptr noundef, ptr) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt5beginISt6vectorISt7complexIdESaIS2_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24)) #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6Aquila9AquilaFft14getCachedFftWiEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt7complexIdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint 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 #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN6Aquila3FftE", !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{i64 0, i64 16, !20}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}


; 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::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::complex" = type { { double, double } }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Aquila9AquilaFft3fftEPKd(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::complex", align 8
  %6 = alloca %"class.std::complex", align 8
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @_ZNSaISt7complexIdEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt6vectorISt7complexIdESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %8, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %9 unwind label %31

9:                                                ; preds = %3
  call void @_ZNSt15__new_allocatorISt7complexIdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  %10 = load i64, ptr %7, align 8, !tbaa !5
  %11 = getelementptr inbounds double, ptr %2, i64 %10
  %12 = call ptr @_ZSt5beginISt6vectorISt7complexIdESaIS2_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %13 = invoke ptr @_ZSt4copyIPKdN9__gnu_cxx17__normal_iteratorIPSt7complexIdESt6vectorIS5_SaIS5_EEEEET0_T_SC_SB_(ptr noundef %2, ptr noundef %11, ptr %12)
          to label %.preheader73 unwind label %33

.preheader73:                                     ; preds = %9
  %14 = load i64, ptr %7, align 8, !tbaa !5
  %15 = icmp ugt i64 %14, 1
  br i1 %15, label %.lr.ph79, label %._crit_edge80

.lr.ph79:                                         ; preds = %.preheader73, %._crit_edge
  %16 = phi i64 [ %36, %._crit_edge ], [ %14, %.preheader73 ]
  %.05778 = phi i32 [ %43, %._crit_edge ], [ 1, %.preheader73 ]
  %.05977 = phi i32 [ %44, %._crit_edge ], [ 1, %.preheader73 ]
  %17 = icmp ult i32 %.05977, %.05778
  br i1 %17, label %18, label %35

18:                                               ; preds = %.lr.ph79
  %19 = add i32 %.05977, -1
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds double, ptr %2, i64 %20
  %22 = load double, ptr %21, align 8, !tbaa !10
  %23 = add i32 %.05778, -1
  %24 = zext i32 %23 to i64
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %24) #7
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %25, double noundef %22)
  %27 = getelementptr inbounds double, ptr %2, i64 %24
  %28 = load double, ptr %27, align 8, !tbaa !10
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %20) #7
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %29, double noundef %28)
  %.pre = load i64, ptr %7, align 8, !tbaa !5
  br label %35

31:                                               ; preds = %3
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt7complexIdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br label %102

33:                                               ; preds = %9
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %101

35:                                               ; preds = %18, %.lr.ph79
  %36 = phi i64 [ %.pre, %18 ], [ %16, %.lr.ph79 ]
  %37 = lshr i64 %36, 1
  %38 = trunc i64 %37 to i32
  %39 = icmp ugt i32 %.05778, %38
  br i1 %39, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %35, %.lr.ph
  %.15875 = phi i32 [ %40, %.lr.ph ], [ %.05778, %35 ]
  %.06074 = phi i32 [ %41, %.lr.ph ], [ %38, %35 ]
  %40 = sub i32 %.15875, %.06074
  %41 = lshr i32 %.06074, 1
  %42 = icmp ult i32 %41, %40
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %35
  %.060.lcssa = phi i32 [ %38, %35 ], [ %41, %.lr.ph ]
  %.158.lcssa = phi i32 [ %.05778, %35 ], [ %40, %.lr.ph ]
  %43 = add i32 %.158.lcssa, %.060.lcssa
  %44 = add i32 %.05977, 1
  %45 = zext i32 %44 to i64
  %46 = icmp ugt i64 %36, %45
  br i1 %46, label %.lr.ph79, label %._crit_edge80, !llvm.loop !14

._crit_edge80:                                    ; preds = %._crit_edge, %.preheader73
  %.lcssa = phi i64 [ %14, %.preheader73 ], [ %36, %._crit_edge ]
  %47 = uitofp nneg i64 %.lcssa to double
  %48 = call double @log(double noundef %47) #7
  %49 = fdiv double %48, 0x3FE62E42FEFA39EF
  %50 = fptoui double %49 to i32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 0.000000e+00, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %51 = invoke noundef ptr @_ZN6Aquila9AquilaFft14getCachedFftWiEj(ptr noundef nonnull align 8 dereferenceable(64) %1, i32 noundef %50)
          to label %.preheader72 unwind label %52

.preheader72:                                     ; preds = %._crit_edge80
  %.not87 = icmp eq i32 %50, 0
  br i1 %.not87, label %._crit_edge90, label %.lr.ph89

.lr.ph89:                                         ; preds = %.preheader72
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.pre94.pre = load i64, ptr %7, align 8, !tbaa !5
  br label %54

._crit_edge90:                                    ; preds = %98, %.preheader72
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  ret void

52:                                               ; preds = %._crit_edge80
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %100

54:                                               ; preds = %.lr.ph89, %98
  %.pre94 = phi i64 [ %.pre94.pre, %.lr.ph89 ], [ %.pre9495, %98 ]
  %.06188 = phi i32 [ 1, %.lr.ph89 ], [ %99, %98 ]
  %55 = shl nuw i32 1, %.06188
  %56 = add i32 %.06188, -1
  %57 = shl nuw i32 1, %56
  %58 = zext i32 %.06188 to i64
  %59 = getelementptr inbounds ptr, ptr %51, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %60, i64 16, i1 false), !tbaa.struct !17
  %61 = add i32 %57, -1
  br label %.preheader

.preheader:                                       ; preds = %54, %._crit_edge85
  %.pre9496 = phi i64 [ %.pre94, %54 ], [ %.pre9495, %._crit_edge85 ]
  %62 = phi i64 [ %.pre94, %54 ], [ %94, %._crit_edge85 ]
  %.06386 = phi i32 [ 1, %54 ], [ %97, %._crit_edge85 ]
  %63 = zext i32 %.06386 to i64
  %.not6782 = icmp ult i64 %62, %63
  br i1 %.not6782, label %._crit_edge85, label %.lr.ph84

.lr.ph84:                                         ; preds = %.preheader, %81
  %.06283 = phi i32 [ %85, %81 ], [ %.06386, %.preheader ]
  %64 = add i32 %61, %.06283
  %65 = zext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %65) #7
  %67 = invoke { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %68 unwind label %88

68:                                               ; preds = %.lr.ph84
  %69 = extractvalue { double, double } %67, 0
  %70 = extractvalue { double, double } %67, 1
  store double %69, ptr %6, align 8
  store double %70, ptr %.sroa.54.0..sroa_idx, align 8, !tbaa !18
  %71 = add i32 %.06283, -1
  %72 = zext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %72) #7
  %74 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %75 unwind label %90

75:                                               ; preds = %68
  %76 = extractvalue { double, double } %74, 0
  %77 = extractvalue { double, double } %74, 1
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %65) #7
  store double %76, ptr %78, align 8
  %.sroa.52.0..sroa_idx = getelementptr inbounds i8, ptr %78, i64 8
  store double %77, ptr %.sroa.52.0..sroa_idx, align 8, !tbaa !18
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %72) #7
  %80 = invoke { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %79, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %81 unwind label %92

81:                                               ; preds = %75
  %82 = extractvalue { double, double } %80, 0
  %83 = extractvalue { double, double } %80, 1
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %72) #7
  store double %82, ptr %84, align 8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %84, i64 8
  store double %83, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !18
  %85 = add i32 %.06283, %55
  %86 = zext i32 %85 to i64
  %87 = load i64, ptr %7, align 8, !tbaa !5
  %.not67 = icmp ult i64 %87, %86
  br i1 %.not67, label %._crit_edge85, label %.lr.ph84, !llvm.loop !19

88:                                               ; preds = %.lr.ph84
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %100

90:                                               ; preds = %68
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %100

92:                                               ; preds = %75
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %100

._crit_edge85:                                    ; preds = %81, %.preheader
  %.pre9495 = phi i64 [ %.pre9496, %.preheader ], [ %87, %81 ]
  %94 = phi i64 [ %62, %.preheader ], [ %87, %81 ]
  %95 = load ptr, ptr %59, align 8, !tbaa !15
  %96 = getelementptr inbounds %"class.std::complex", ptr %95, i64 %63
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %96, i64 16, i1 false), !tbaa.struct !17
  %97 = add i32 %.06386, 1
  %.not66 = icmp ugt i32 %97, %57
  br i1 %.not66, label %98, label %.preheader, !llvm.loop !20

98:                                               ; preds = %._crit_edge85
  %99 = add i32 %.06188, 1
  %.not = icmp ugt i32 %99, %50
  br i1 %.not, label %._crit_edge90, label %54, !llvm.loop !21

100:                                              ; preds = %88, %90, %92, %52
  %.pn.pn = phi { ptr, i32 } [ %53, %52 ], [ %93, %92 ], [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %101

101:                                              ; preds = %100, %33
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %100 ], [ %34, %33 ]
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %102

102:                                              ; preds = %101, %31
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %101 ], [ %32, %31 ]
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIPKdN9__gnu_cxx17__normal_iteratorIPSt7complexIdESt6vectorIS5_SaIS5_EEEEET0_T_SC_SB_(ptr noundef, ptr noundef, ptr) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt5beginISt6vectorISt7complexIdESaIS2_EEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6Aquila9AquilaFft14getCachedFftWiEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt7complexIdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint 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 #5 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTSN6Aquila3FftE", !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{i64 0, i64 16, !18}
!18 = !{!8, !8, i64 0}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}


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