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

; 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::complex" = type { { double, double } }
%"class.Aquila::Fft" = type { ptr, i64 }

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

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) #0

; 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) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6Aquila9AquilaFft14getCachedFftWiEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) #3 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) #4

; 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)) #5

; 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)) #5

; 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)) #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Aquila9AquilaFft4ifftESt6vectorISt7complexIdESaIS3_EEPd(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::complex", align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::complex", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::complex", align 8
  %24 = alloca %"class.std::complex", align 8
  %25 = alloca %"class.std::complex", align 8
  %26 = alloca %"class.std::complex", align 8
  %27 = alloca %"class.std::complex", align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  call void @_ZNSt6vectorISt7complexIdESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %76, %3
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = icmp ult i64 %32, %34
  br i1 %35, label %36, label %79

36:                                               ; preds = %30
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = load i32, ptr %8, align 4, !tbaa !9
  %39 = icmp ult i32 %37, %38
  br i1 %39, label %40, label %57

40:                                               ; preds = %36
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = sub i32 %41, 1
  %43 = zext i32 %42 to i64
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %43) #6
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = sub i32 %45, 1
  %47 = zext i32 %46 to i64
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %47) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %44, i64 16, i1 false), !tbaa.struct !14
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = sub i32 %49, 1
  %51 = zext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %51) #6
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = sub i32 %53, 1
  %55 = zext i32 %54 to i64
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %55) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %56, ptr align 8 %52, i64 16, i1 false), !tbaa.struct !14
  br label %57

57:                                               ; preds = %40, %36
  %58 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !11
  %60 = udiv i64 %59, 2
  %61 = trunc i64 %60 to i32
  store i32 %61, ptr %10, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %66, %57
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = icmp ult i32 %63, %64
  br i1 %65, label %66, label %72

66:                                               ; preds = %62
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = load i32, ptr %8, align 4, !tbaa !9
  %69 = sub i32 %68, %67
  store i32 %69, ptr %8, align 4, !tbaa !9
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = udiv i32 %70, 2
  store i32 %71, ptr %10, align 4, !tbaa !9
  br label %62, !llvm.loop !16

72:                                               ; preds = %62
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = add i32 %74, %73
  store i32 %75, ptr %8, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %72
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = add i32 %77, 1
  store i32 %78, ptr %9, align 4, !tbaa !9
  br label %30, !llvm.loop !18

79:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %80 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %81 = load i64, ptr %80, align 8, !tbaa !11
  %82 = uitofp i64 %81 to double
  %83 = call double @log(double noundef %82) #6
  %84 = fdiv double %83, 0x3FE62E42FEFA39EF
  %85 = fptoui double %84 to i32
  store i32 %85, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %86 unwind label %96

86:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %87 unwind label %100

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = invoke noundef ptr @_ZN6Aquila9AquilaFft14getCachedFftWiEj(ptr noundef nonnull align 8 dereferenceable(64) %29, i32 noundef %88)
          to label %90 unwind label %104

90:                                               ; preds = %87
  store ptr %89, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %228, %90
  %92 = load i32, ptr %22, align 4, !tbaa !9
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = icmp ule i32 %92, %93
  br i1 %94, label %108, label %95

95:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %232

96:                                               ; preds = %79
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %18, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %19, align 4
  br label %264

100:                                              ; preds = %86
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %18, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %19, align 4
  br label %263

104:                                              ; preds = %87
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %18, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %19, align 4
  br label %262

108:                                              ; preds = %91
  %109 = load i32, ptr %22, align 4, !tbaa !9
  %110 = shl i32 1, %109
  store i32 %110, ptr %12, align 4, !tbaa !9
  %111 = load i32, ptr %22, align 4, !tbaa !9
  %112 = sub i32 %111, 1
  %113 = shl i32 1, %112
  store i32 %113, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %114 = load ptr, ptr %21, align 8, !tbaa !5
  %115 = load i32, ptr %22, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %114, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.std::complex", ptr %118, i64 0
  %120 = invoke { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %119)
          to label %121 unwind label %188

121:                                              ; preds = %108
  %122 = getelementptr inbounds %"class.std::complex", ptr %23, i32 0, i32 0
  %123 = getelementptr inbounds { double, double }, ptr %122, i32 0, i32 0
  %124 = extractvalue { double, double } %120, 0
  store double %124, ptr %123, align 8
  %125 = getelementptr inbounds { double, double }, ptr %122, i32 0, i32 1
  %126 = extractvalue { double, double } %120, 1
  store double %126, ptr %125, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %220, %121
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = icmp ule i32 %128, %129
  br i1 %130, label %131, label %227

131:                                              ; preds = %127
  %132 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %132, ptr %15, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %184, %131
  %134 = load i32, ptr %15, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %137 = load i64, ptr %136, align 8, !tbaa !11
  %138 = icmp ule i64 %135, %137
  br i1 %138, label %139, label %204

139:                                              ; preds = %133
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = add i32 %140, %141
  store i32 %142, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  %143 = load i32, ptr %16, align 4, !tbaa !9
  %144 = sub i32 %143, 1
  %145 = zext i32 %144 to i64
  %146 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %145) #6
  %147 = invoke { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %146, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %148 unwind label %192

148:                                              ; preds = %139
  %149 = getelementptr inbounds %"class.std::complex", ptr %24, i32 0, i32 0
  %150 = getelementptr inbounds { double, double }, ptr %149, i32 0, i32 0
  %151 = extractvalue { double, double } %147, 0
  store double %151, ptr %150, align 8
  %152 = getelementptr inbounds { double, double }, ptr %149, i32 0, i32 1
  %153 = extractvalue { double, double } %147, 1
  store double %153, ptr %152, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = sub i32 %154, 1
  %156 = zext i32 %155 to i64
  %157 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %156) #6
  %158 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %157, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %159 unwind label %196

159:                                              ; preds = %148
  %160 = getelementptr inbounds %"class.std::complex", ptr %25, i32 0, i32 0
  %161 = getelementptr inbounds { double, double }, ptr %160, i32 0, i32 0
  %162 = extractvalue { double, double } %158, 0
  store double %162, ptr %161, align 8
  %163 = getelementptr inbounds { double, double }, ptr %160, i32 0, i32 1
  %164 = extractvalue { double, double } %158, 1
  store double %164, ptr %163, align 8
  %165 = load i32, ptr %16, align 4, !tbaa !9
  %166 = sub i32 %165, 1
  %167 = zext i32 %166 to i64
  %168 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %167) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %168, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = sub i32 %169, 1
  %171 = zext i32 %170 to i64
  %172 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %171) #6
  %173 = invoke { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %172, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %174 unwind label %200

174:                                              ; preds = %159
  %175 = getelementptr inbounds %"class.std::complex", ptr %26, i32 0, i32 0
  %176 = getelementptr inbounds { double, double }, ptr %175, i32 0, i32 0
  %177 = extractvalue { double, double } %173, 0
  store double %177, ptr %176, align 8
  %178 = getelementptr inbounds { double, double }, ptr %175, i32 0, i32 1
  %179 = extractvalue { double, double } %173, 1
  store double %179, ptr %178, align 8
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = sub i32 %180, 1
  %182 = zext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %182) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %183, ptr align 8 %26, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %184

184:                                              ; preds = %174
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = load i32, ptr %15, align 4, !tbaa !9
  %187 = add i32 %186, %185
  store i32 %187, ptr %15, align 4, !tbaa !9
  br label %133, !llvm.loop !19

188:                                              ; preds = %108
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %18, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %231

192:                                              ; preds = %139
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %18, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  br label %231

196:                                              ; preds = %148
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %18, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %231

200:                                              ; preds = %159
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %18, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %231

204:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %205 = load ptr, ptr %21, align 8, !tbaa !5
  %206 = load i32, ptr %22, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds ptr, ptr %205, i64 %207
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds %"class.std::complex", ptr %209, i64 %211
  %213 = invoke { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %212)
          to label %214 unwind label %223

214:                                              ; preds = %204
  %215 = getelementptr inbounds %"class.std::complex", ptr %27, i32 0, i32 0
  %216 = getelementptr inbounds { double, double }, ptr %215, i32 0, i32 0
  %217 = extractvalue { double, double } %213, 0
  store double %217, ptr %216, align 8
  %218 = getelementptr inbounds { double, double }, ptr %215, i32 0, i32 1
  %219 = extractvalue { double, double } %213, 1
  store double %219, ptr %218, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %220

220:                                              ; preds = %214
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = add i32 %221, 1
  store i32 %222, ptr %14, align 4, !tbaa !9
  br label %127, !llvm.loop !20

223:                                              ; preds = %204
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %18, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %231

227:                                              ; preds = %127
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %22, align 4, !tbaa !9
  %230 = add i32 %229, 1
  store i32 %230, ptr %22, align 4, !tbaa !9
  br label %91, !llvm.loop !21

231:                                              ; preds = %223, %200, %196, %192, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %262

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

233:                                              ; preds = %254, %232
  %234 = load i32, ptr %28, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %237 = load i64, ptr %236, align 8, !tbaa !11
  %238 = icmp ult i64 %235, %237
  br i1 %238, label %240, label %239

239:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %261

240:                                              ; preds = %233
  %241 = load i32, ptr %28, align 4, !tbaa !9
  %242 = zext i32 %241 to i64
  %243 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %242) #6
  %244 = invoke noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %243)
          to label %245 unwind label %257

245:                                              ; preds = %240
  %246 = getelementptr inbounds %"class.Aquila::Fft", ptr %29, i32 0, i32 1
  %247 = load i64, ptr %246, align 8, !tbaa !11
  %248 = uitofp i64 %247 to double
  %249 = fdiv double %244, %248
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load i32, ptr %28, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds double, ptr %250, i64 %252
  store double %249, ptr %253, align 8, !tbaa !22
  br label %254

254:                                              ; preds = %245
  %255 = load i32, ptr %28, align 4, !tbaa !9
  %256 = add i32 %255, 1
  store i32 %256, ptr %28, align 4, !tbaa !9
  br label %233, !llvm.loop !24

257:                                              ; preds = %240
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %18, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %262

261:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  ret void

262:                                              ; preds = %257, %231, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %263

263:                                              ; preds = %262, %100
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  br label %264

264:                                              ; preds = %263, %96
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  br label %265

265:                                              ; preds = %264
  %266 = load ptr, ptr %18, align 8
  %267 = load i32, ptr %19, align 4
  %268 = insertvalue { ptr, i32 } poison, ptr %266, 0
  %269 = insertvalue { ptr, i32 } %268, i32 %267, 1
  resume { ptr, i32 } %269
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !13, i64 8}
!12 = !{!"_ZTSN6Aquila3FftE", !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{i64 0, i64 16, !15}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = distinct !{!24, !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::complex" = type { { double, double } }

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

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) #0

; 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 #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6Aquila9AquilaFft14getCachedFftWiEj(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef) local_unnamed_addr #3 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) #4

; 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 #5

; 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 #5

; 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 #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Aquila9AquilaFft4ifftESt6vectorISt7complexIdESaIS3_EEPd(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull %1, ptr nocapture noundef writeonly %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::complex", align 8
  %6 = alloca %"class.std::complex", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNSt6vectorISt7complexIdESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = icmp ugt i64 %8, 1
  br i1 %9, label %.lr.ph81, label %._crit_edge82

.lr.ph81:                                         ; preds = %3, %._crit_edge
  %10 = phi i64 [ %22, %._crit_edge ], [ %8, %3 ]
  %.05579 = phi i32 [ %29, %._crit_edge ], [ 1, %3 ]
  %.05678 = phi i32 [ %30, %._crit_edge ], [ 1, %3 ]
  %11 = icmp ult i32 %.05678, %.05579
  br i1 %11, label %12, label %21

12:                                               ; preds = %.lr.ph81
  %13 = add i32 %.05678, -1
  %14 = zext i32 %13 to i64
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %14) #6
  %16 = add i32 %.05579, -1
  %17 = zext i32 %16 to i64
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %17) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %15, i64 16, i1 false), !tbaa.struct !10
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %17) #6
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %14) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %19, i64 16, i1 false), !tbaa.struct !10
  %.pre = load i64, ptr %7, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %12, %.lr.ph81
  %22 = phi i64 [ %.pre, %12 ], [ %10, %.lr.ph81 ]
  %23 = lshr i64 %22, 1
  %24 = trunc i64 %23 to i32
  %25 = icmp ugt i32 %.05579, %24
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %21, %.lr.ph
  %.176 = phi i32 [ %26, %.lr.ph ], [ %.05579, %21 ]
  %.05775 = phi i32 [ %27, %.lr.ph ], [ %24, %21 ]
  %26 = sub i32 %.176, %.05775
  %27 = lshr i32 %.05775, 1
  %28 = icmp ult i32 %27, %26
  br i1 %28, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %21
  %.057.lcssa = phi i32 [ %24, %21 ], [ %27, %.lr.ph ]
  %.1.lcssa = phi i32 [ %.05579, %21 ], [ %26, %.lr.ph ]
  %29 = add i32 %.1.lcssa, %.057.lcssa
  %30 = add i32 %.05678, 1
  %31 = zext i32 %30 to i64
  %32 = icmp ugt i64 %22, %31
  br i1 %32, label %.lr.ph81, label %._crit_edge82, !llvm.loop !14

._crit_edge82:                                    ; preds = %._crit_edge, %3
  %.lcssa = phi i64 [ %8, %3 ], [ %22, %._crit_edge ]
  %33 = uitofp nneg i64 %.lcssa to double
  %34 = call double @log(double noundef %33) #6
  %35 = fdiv double %34, 0x3FE62E42FEFA39EF
  %36 = fptoui double %35 to i32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  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) #6
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %37 = invoke noundef ptr @_ZN6Aquila9AquilaFft14getCachedFftWiEj(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %36)
          to label %.preheader73 unwind label %39

.preheader73:                                     ; preds = %._crit_edge82
  %.not90 = icmp eq i32 %36, 0
  br i1 %.not90, label %.preheader, label %.lr.ph92

.lr.ph92:                                         ; preds = %.preheader73
  %.sroa.511.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.59.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  br label %41

.preheader:                                       ; preds = %96, %.preheader73
  %38 = load i64, ptr %7, align 8, !tbaa !5
  %.not96 = icmp eq i64 %38, 0
  br i1 %.not96, label %._crit_edge95, label %.lr.ph94

39:                                               ; preds = %._crit_edge82
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %111

41:                                               ; preds = %.lr.ph92, %96
  %.06491 = phi i32 [ 1, %.lr.ph92 ], [ %97, %96 ]
  %42 = shl nuw i32 1, %.06491
  %43 = add i32 %.06491, -1
  %44 = shl nuw i32 1, %43
  %45 = zext i32 %.06491 to i64
  %46 = getelementptr inbounds ptr, ptr %37, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = invoke { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %47)
          to label %49 unwind label %79

49:                                               ; preds = %41
  %50 = extractvalue { double, double } %48, 0
  %51 = extractvalue { double, double } %48, 1
  store double %50, ptr %5, align 8
  store double %51, ptr %.sroa.511.0..sroa_idx, align 8, !tbaa !11
  %52 = add i32 %44, -1
  br label %.preheader72

.preheader72:                                     ; preds = %49, %90
  %.05889 = phi i32 [ 1, %49 ], [ %93, %90 ]
  %53 = zext i32 %.05889 to i64
  %54 = load i64, ptr %7, align 8, !tbaa !5
  %.not6985 = icmp ult i64 %54, %53
  br i1 %.not6985, label %._crit_edge88, label %.lr.ph87

.lr.ph87:                                         ; preds = %.preheader72, %72
  %.05986 = phi i32 [ %76, %72 ], [ %.05889, %.preheader72 ]
  %55 = add i32 %52, %.05986
  %56 = zext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %56) #6
  %58 = invoke { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %59 unwind label %81

59:                                               ; preds = %.lr.ph87
  %60 = extractvalue { double, double } %58, 0
  %61 = extractvalue { double, double } %58, 1
  store double %60, ptr %6, align 8
  store double %61, ptr %.sroa.59.0..sroa_idx, align 8, !tbaa !11
  %62 = add i32 %.05986, -1
  %63 = zext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %63) #6
  %65 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %66 unwind label %83

66:                                               ; preds = %59
  %67 = extractvalue { double, double } %65, 0
  %68 = extractvalue { double, double } %65, 1
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %56) #6
  store double %67, ptr %69, align 8
  %.sroa.57.0..sroa_idx = getelementptr inbounds i8, ptr %69, i64 8
  store double %68, ptr %.sroa.57.0..sroa_idx, align 8, !tbaa !11
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %63) #6
  %71 = invoke { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %72 unwind label %85

72:                                               ; preds = %66
  %73 = extractvalue { double, double } %71, 0
  %74 = extractvalue { double, double } %71, 1
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %63) #6
  store double %73, ptr %75, align 8
  %.sroa.55.0..sroa_idx = getelementptr inbounds i8, ptr %75, i64 8
  store double %74, ptr %.sroa.55.0..sroa_idx, align 8, !tbaa !11
  %76 = add i32 %.05986, %42
  %77 = zext i32 %76 to i64
  %78 = load i64, ptr %7, align 8, !tbaa !5
  %.not69 = icmp ult i64 %78, %77
  br i1 %.not69, label %._crit_edge88, label %.lr.ph87, !llvm.loop !17

79:                                               ; preds = %41
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %111

81:                                               ; preds = %.lr.ph87
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %111

83:                                               ; preds = %59
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %111

85:                                               ; preds = %66
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %111

._crit_edge88:                                    ; preds = %72, %.preheader72
  %87 = load ptr, ptr %46, align 8, !tbaa !15
  %88 = getelementptr inbounds %"class.std::complex", ptr %87, i64 %53
  %89 = invoke { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %88)
          to label %90 unwind label %94

90:                                               ; preds = %._crit_edge88
  %91 = extractvalue { double, double } %89, 0
  %92 = extractvalue { double, double } %89, 1
  store double %91, ptr %5, align 8
  store double %92, ptr %.sroa.511.0..sroa_idx, align 8, !tbaa !11
  %93 = add i32 %.05889, 1
  %.not68 = icmp ugt i32 %93, %44
  br i1 %.not68, label %96, label %.preheader72, !llvm.loop !18

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

96:                                               ; preds = %90
  %97 = add i32 %.06491, 1
  %.not = icmp ugt i32 %97, %36
  br i1 %.not, label %.preheader, label %41, !llvm.loop !19

._crit_edge95:                                    ; preds = %101, %.preheader
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret void

.lr.ph94:                                         ; preds = %.preheader, %101
  %98 = phi i64 [ %107, %101 ], [ 0, %.preheader ]
  %.093 = phi i32 [ %106, %101 ], [ 0, %.preheader ]
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %98) #6
  %100 = invoke noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %99)
          to label %101 unwind label %109

101:                                              ; preds = %.lr.ph94
  %102 = load i64, ptr %7, align 8, !tbaa !5
  %103 = uitofp i64 %102 to double
  %104 = fdiv double %100, %103
  %105 = getelementptr inbounds double, ptr %2, i64 %98
  store double %104, ptr %105, align 8, !tbaa !20
  %106 = add i32 %.093, 1
  %107 = zext i32 %106 to i64
  %108 = icmp ugt i64 %102, %107
  br i1 %108, label %.lr.ph94, label %._crit_edge95, !llvm.loop !22

109:                                              ; preds = %.lr.ph94
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %111

111:                                              ; preds = %79, %81, %83, %85, %94, %109, %39
  %.pn.pn = phi { ptr, i32 } [ %110, %109 ], [ %40, %39 ], [ %86, %85 ], [ %84, %83 ], [ %82, %81 ], [ %95, %94 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3absIdET_RKSt7complexIS0_E(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

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

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

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


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