; LLVM IR from TheAlgorithms/C-Plus-Plus :: numerical_methods (inverse_fast_fourier_transform)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::complex" = type { { double, double } }

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN17numerical_methods27InverseFastFourierTransformEPSt7complexIdEh(ptr noundef %0, i8 noundef zeroext %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca double, align 8
  %7 = alloca %"class.std::complex", align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::complex", align 8
  %20 = alloca %"class.std::complex", align 8
  %21 = alloca %"class.std::complex", align 8
  %22 = alloca %"class.std::complex", align 8
  %23 = alloca %"class.std::complex", align 8
  %24 = alloca %"class.std::complex", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i8 %1, ptr %5, align 1, !tbaa !9
  %25 = load i8, ptr %5, align 1, !tbaa !9
  %26 = zext i8 %25 to i32
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %28, label %30

28:                                               ; preds = %2
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %29, ptr %3, align 8
  br label %274

30:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %31 = call double @asin(double noundef 1.000000e+00) #10
  %32 = fmul double 2.000000e+00, %31
  store double %32, ptr %6, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #10
  %33 = load double, ptr %6, align 8, !tbaa !10
  %34 = fmul double 2.000000e+00, %33
  %35 = load i8, ptr %5, align 1, !tbaa !9
  %36 = zext i8 %35 to i32
  %37 = sitofp i32 %36 to double
  %38 = fdiv double %34, %37
  %39 = call double @cos(double noundef %38) #10
  %40 = load double, ptr %6, align 8, !tbaa !10
  %41 = fmul double 2.000000e+00, %40
  %42 = load i8, ptr %5, align 1, !tbaa !9
  %43 = zext i8 %42 to i32
  %44 = sitofp i32 %43 to double
  %45 = fdiv double %41, %44
  %46 = call double @sin(double noundef %45) #10
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %39, double noundef %46)
  %47 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %48 = load i8, ptr %5, align 1, !tbaa !9
  %49 = zext i8 %48 to i32
  %50 = sitofp i32 %49 to double
  %51 = fdiv double %47, %50
  call void @_ZNSt7complexIdE4realEd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %51)
  %52 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %53 = load i8, ptr %5, align 1, !tbaa !9
  %54 = zext i8 %53 to i32
  %55 = sitofp i32 %54 to double
  %56 = fdiv double %52, %55
  call void @_ZNSt7complexIdE4imagEd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %56)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %57 = load i8, ptr %5, align 1, !tbaa !9
  %58 = zext i8 %57 to i32
  %59 = sdiv i32 %58, 2
  %60 = sext i32 %59 to i64
  %61 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %60, i64 16)
  %62 = extractvalue { i64, i1 } %61, 1
  %63 = extractvalue { i64, i1 } %61, 0
  %64 = select i1 %62, i64 -1, i64 %63
  %65 = call noalias noundef nonnull ptr @_Znam(i64 noundef %64) #11
  %66 = icmp eq i64 %60, 0
  br i1 %66, label %74, label %67

67:                                               ; preds = %30
  %68 = getelementptr inbounds %"class.std::complex", ptr %65, i64 %60
  br label %69

69:                                               ; preds = %71, %67
  %70 = phi ptr [ %65, %67 ], [ %72, %71 ]
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %70, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %71 unwind label %99

71:                                               ; preds = %69
  %72 = getelementptr inbounds %"class.std::complex", ptr %70, i64 1
  %73 = icmp eq ptr %72, %68
  br i1 %73, label %74, label %69

74:                                               ; preds = %71, %30
  store ptr %65, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %75 = load i8, ptr %5, align 1, !tbaa !9
  %76 = zext i8 %75 to i32
  %77 = sdiv i32 %76, 2
  %78 = sext i32 %77 to i64
  %79 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %78, i64 16)
  %80 = extractvalue { i64, i1 } %79, 1
  %81 = extractvalue { i64, i1 } %79, 0
  %82 = select i1 %80, i64 -1, i64 %81
  %83 = call noalias noundef nonnull ptr @_Znam(i64 noundef %82) #11
  %84 = icmp eq i64 %78, 0
  br i1 %84, label %92, label %85

85:                                               ; preds = %74
  %86 = getelementptr inbounds %"class.std::complex", ptr %83, i64 %78
  br label %87

87:                                               ; preds = %89, %85
  %88 = phi ptr [ %83, %85 ], [ %90, %89 ]
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %88, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %89 unwind label %103

89:                                               ; preds = %87
  %90 = getelementptr inbounds %"class.std::complex", ptr %88, i64 1
  %91 = icmp eq ptr %90, %86
  br i1 %91, label %92, label %87

92:                                               ; preds = %89, %74
  store ptr %83, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  store i32 0, ptr %12, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 0, ptr %13, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  store i32 0, ptr %14, align 4, !tbaa !12
  br label %93

93:                                               ; preds = %132, %92
  %94 = load i32, ptr %14, align 4, !tbaa !12
  %95 = load i8, ptr %5, align 1, !tbaa !9
  %96 = zext i8 %95 to i32
  %97 = icmp slt i32 %94, %96
  br i1 %97, label %107, label %98

98:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %135

99:                                               ; preds = %69
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %9, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %10, align 4
  call void @_ZdaPvm(ptr noundef %65, i64 noundef %64) #12
  br label %273

103:                                              ; preds = %87
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %9, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %10, align 4
  call void @_ZdaPvm(ptr noundef %83, i64 noundef %82) #12
  br label %272

107:                                              ; preds = %93
  %108 = load i32, ptr %14, align 4, !tbaa !12
  %109 = srem i32 %108, 2
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %121

111:                                              ; preds = %107
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = load i32, ptr %14, align 4, !tbaa !12
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds %"class.std::complex", ptr %112, i64 %114
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load i32, ptr %12, align 4, !tbaa !12
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %12, align 4, !tbaa !12
  %119 = sext i32 %117 to i64
  %120 = getelementptr inbounds %"class.std::complex", ptr %116, i64 %119
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %120, ptr align 8 %115, i64 16, i1 false), !tbaa.struct !14
  br label %131

121:                                              ; preds = %107
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = load i32, ptr %14, align 4, !tbaa !12
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds %"class.std::complex", ptr %122, i64 %124
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load i32, ptr %13, align 4, !tbaa !12
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %13, align 4, !tbaa !12
  %129 = sext i32 %127 to i64
  %130 = getelementptr inbounds %"class.std::complex", ptr %126, i64 %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %130, ptr align 8 %125, i64 16, i1 false), !tbaa.struct !14
  br label %131

131:                                              ; preds = %121, %111
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %14, align 4, !tbaa !12
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %14, align 4, !tbaa !12
  br label %93, !llvm.loop !15

135:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = load i8, ptr %5, align 1, !tbaa !9
  %138 = zext i8 %137 to i32
  %139 = sdiv i32 %138, 2
  %140 = trunc i32 %139 to i8
  %141 = call noundef ptr @_ZN17numerical_methods27InverseFastFourierTransformEPSt7complexIdEh(ptr noundef %136, i8 noundef zeroext %140)
  store ptr %141, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = load i8, ptr %5, align 1, !tbaa !9
  %144 = zext i8 %143 to i32
  %145 = sdiv i32 %144, 2
  %146 = trunc i32 %145 to i8
  %147 = call noundef ptr @_ZN17numerical_methods27InverseFastFourierTransformEPSt7complexIdEh(ptr noundef %142, i8 noundef zeroext %146)
  store ptr %147, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %148 = load i8, ptr %5, align 1, !tbaa !9
  %149 = zext i8 %148 to i64
  %150 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %149, i64 16)
  %151 = extractvalue { i64, i1 } %150, 1
  %152 = extractvalue { i64, i1 } %150, 0
  %153 = select i1 %151, i64 -1, i64 %152
  %154 = call noalias noundef nonnull ptr @_Znam(i64 noundef %153) #11
  %155 = icmp eq i64 %149, 0
  br i1 %155, label %163, label %156

156:                                              ; preds = %135
  %157 = getelementptr inbounds %"class.std::complex", ptr %154, i64 %149
  br label %158

158:                                              ; preds = %160, %156
  %159 = phi ptr [ %154, %156 ], [ %161, %160 ]
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %159, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %160 unwind label %171

160:                                              ; preds = %158
  %161 = getelementptr inbounds %"class.std::complex", ptr %159, i64 1
  %162 = icmp eq ptr %161, %157
  br i1 %162, label %163, label %158

163:                                              ; preds = %160, %135
  store ptr %154, ptr %17, align 8, !tbaa !5
  store i32 0, ptr %12, align 4, !tbaa !12
  store i32 0, ptr %13, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  store i32 0, ptr %18, align 4, !tbaa !12
  br label %164

164:                                              ; preds = %246, %163
  %165 = load i32, ptr %18, align 4, !tbaa !12
  %166 = load i8, ptr %5, align 1, !tbaa !9
  %167 = zext i8 %166 to i32
  %168 = sdiv i32 %167, 2
  %169 = icmp slt i32 %165, %168
  br i1 %169, label %175, label %170

170:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %249

171:                                              ; preds = %158
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %9, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %10, align 4
  call void @_ZdaPvm(ptr noundef %154, i64 noundef %153) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %272

175:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #10
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = load i32, ptr %12, align 4, !tbaa !12
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds %"class.std::complex", ptr %176, i64 %178
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  %180 = load i32, ptr %18, align 4, !tbaa !12
  %181 = call { double, double } @_ZSt3powIdESt7complexIT_ERKS2_i(ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef %180)
  %182 = getelementptr inbounds %"class.std::complex", ptr %21, i32 0, i32 0
  %183 = getelementptr inbounds { double, double }, ptr %182, i32 0, i32 0
  %184 = extractvalue { double, double } %181, 0
  store double %184, ptr %183, align 8
  %185 = getelementptr inbounds { double, double }, ptr %182, i32 0, i32 1
  %186 = extractvalue { double, double } %181, 1
  store double %186, ptr %185, align 8
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  %188 = load i32, ptr %13, align 4, !tbaa !12
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds %"class.std::complex", ptr %187, i64 %189
  %191 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %190)
  %192 = getelementptr inbounds %"class.std::complex", ptr %20, i32 0, i32 0
  %193 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 0
  %194 = extractvalue { double, double } %191, 0
  store double %194, ptr %193, align 8
  %195 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 1
  %196 = extractvalue { double, double } %191, 1
  store double %196, ptr %195, align 8
  %197 = call { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %179, ptr noundef nonnull align 8 dereferenceable(16) %20)
  %198 = getelementptr inbounds %"class.std::complex", ptr %19, i32 0, i32 0
  %199 = getelementptr inbounds { double, double }, ptr %198, i32 0, i32 0
  %200 = extractvalue { double, double } %197, 0
  store double %200, ptr %199, align 8
  %201 = getelementptr inbounds { double, double }, ptr %198, i32 0, i32 1
  %202 = extractvalue { double, double } %197, 1
  store double %202, ptr %201, align 8
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = load i32, ptr %18, align 4, !tbaa !12
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds %"class.std::complex", ptr %203, i64 %205
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %206, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #10
  %207 = load ptr, ptr %15, align 8, !tbaa !5
  %208 = load i32, ptr %12, align 4, !tbaa !12
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds %"class.std::complex", ptr %207, i64 %209
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #10
  %211 = load i32, ptr %18, align 4, !tbaa !12
  %212 = call { double, double } @_ZSt3powIdESt7complexIT_ERKS2_i(ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef %211)
  %213 = getelementptr inbounds %"class.std::complex", ptr %24, i32 0, i32 0
  %214 = getelementptr inbounds { double, double }, ptr %213, i32 0, i32 0
  %215 = extractvalue { double, double } %212, 0
  store double %215, ptr %214, align 8
  %216 = getelementptr inbounds { double, double }, ptr %213, i32 0, i32 1
  %217 = extractvalue { double, double } %212, 1
  store double %217, ptr %216, align 8
  %218 = load ptr, ptr %16, align 8, !tbaa !5
  %219 = load i32, ptr %13, align 4, !tbaa !12
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds %"class.std::complex", ptr %218, i64 %220
  %222 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %221)
  %223 = getelementptr inbounds %"class.std::complex", ptr %23, i32 0, i32 0
  %224 = getelementptr inbounds { double, double }, ptr %223, i32 0, i32 0
  %225 = extractvalue { double, double } %222, 0
  store double %225, ptr %224, align 8
  %226 = getelementptr inbounds { double, double }, ptr %223, i32 0, i32 1
  %227 = extractvalue { double, double } %222, 1
  store double %227, ptr %226, align 8
  %228 = call { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %210, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %229 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  %230 = getelementptr inbounds { double, double }, ptr %229, i32 0, i32 0
  %231 = extractvalue { double, double } %228, 0
  store double %231, ptr %230, align 8
  %232 = getelementptr inbounds { double, double }, ptr %229, i32 0, i32 1
  %233 = extractvalue { double, double } %228, 1
  store double %233, ptr %232, align 8
  %234 = load ptr, ptr %17, align 8, !tbaa !5
  %235 = load i32, ptr %18, align 4, !tbaa !12
  %236 = load i8, ptr %5, align 1, !tbaa !9
  %237 = zext i8 %236 to i32
  %238 = sdiv i32 %237, 2
  %239 = add nsw i32 %235, %238
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds %"class.std::complex", ptr %234, i64 %240
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %241, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  %242 = load i32, ptr %12, align 4, !tbaa !12
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %12, align 4, !tbaa !12
  %244 = load i32, ptr %13, align 4, !tbaa !12
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %13, align 4, !tbaa !12
  br label %246

246:                                              ; preds = %175
  %247 = load i32, ptr %18, align 4, !tbaa !12
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %18, align 4, !tbaa !12
  br label %164, !llvm.loop !17

249:                                              ; preds = %170
  %250 = load i8, ptr %5, align 1, !tbaa !9
  %251 = zext i8 %250 to i32
  %252 = icmp ne i32 %251, 2
  br i1 %252, label %253, label %262

253:                                              ; preds = %249
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = icmp eq ptr %254, null
  br i1 %255, label %257, label %256

256:                                              ; preds = %253
  call void @_ZdaPv(ptr noundef %254) #12
  br label %257

257:                                              ; preds = %256, %253
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  %259 = icmp eq ptr %258, null
  br i1 %259, label %261, label %260

260:                                              ; preds = %257
  call void @_ZdaPv(ptr noundef %258) #12
  br label %261

261:                                              ; preds = %260, %257
  br label %262

262:                                              ; preds = %261, %249
  %263 = load ptr, ptr %15, align 8, !tbaa !5
  %264 = icmp eq ptr %263, null
  br i1 %264, label %266, label %265

265:                                              ; preds = %262
  call void @_ZdaPv(ptr noundef %263) #12
  br label %266

266:                                              ; preds = %265, %262
  %267 = load ptr, ptr %16, align 8, !tbaa !5
  %268 = icmp eq ptr %267, null
  br i1 %268, label %270, label %269

269:                                              ; preds = %266
  call void @_ZdaPv(ptr noundef %267) #12
  br label %270

270:                                              ; preds = %269, %266
  %271 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %271, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  br label %274

272:                                              ; preds = %171, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %273

273:                                              ; preds = %272, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  br label %276

274:                                              ; preds = %270, %28
  %275 = load ptr, ptr %3, align 8
  ret ptr %275

276:                                              ; preds = %273
  %277 = load ptr, ptr %9, align 8
  %278 = load i32, ptr %10, align 4
  %279 = insertvalue { ptr, i32 } poison, ptr %277, 0
  %280 = insertvalue { ptr, i32 } %279, i32 %278, 1
  resume { ptr, i32 } %280
}

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

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

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

; Function Attrs: nounwind
declare double @sin(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 #3 align 2

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #6

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

; 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 { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #8

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #6

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 = { 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 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nobuiltin allocsize(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 = { nobuiltin 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { 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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{i64 0, i64 16, !9}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::complex" = type { { double, double } }

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN17numerical_methods27InverseFastFourierTransformEPSt7complexIdEh(ptr noundef readonly %0, i8 noundef zeroext %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::complex", align 8
  %4 = alloca %"class.std::complex", align 8
  %5 = alloca %"class.std::complex", align 8
  %6 = alloca %"class.std::complex", align 8
  %7 = alloca %"class.std::complex", align 8
  %8 = icmp eq i8 %1, 1
  br i1 %8, label %94, label %9

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  %10 = uitofp i8 %1 to double
  %11 = fdiv double 0x401921FB54442D18, %10
  %12 = tail call double @cos(double noundef %11) #10
  %13 = tail call double @sin(double noundef %11) #10
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef %12, double noundef %13)
  %14 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %15 = fdiv double %14, %10
  call void @_ZNSt7complexIdE4realEd(ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef %15)
  %16 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %17 = fdiv double %16, %10
  call void @_ZNSt7complexIdE4imagEd(ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef %17)
  %18 = lshr i8 %1, 1
  %19 = zext nneg i8 %18 to i64
  %20 = shl nuw nsw i64 %19, 4
  %21 = call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #11
  %22 = icmp eq i8 %1, 0
  br i1 %22, label %.loopexit68.thread, label %24

.loopexit68.thread:                               ; preds = %9
  %23 = call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #11
  br label %._crit_edge

24:                                               ; preds = %9
  %25 = getelementptr inbounds %"class.std::complex", ptr %21, i64 %19
  br label %26

26:                                               ; preds = %26, %24
  %27 = phi ptr [ %21, %24 ], [ %28, %26 ]
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %27, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %29 = icmp eq ptr %28, %25
  br i1 %29, label %30, label %26

30:                                               ; preds = %26
  %31 = call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #11
  %32 = getelementptr inbounds %"class.std::complex", ptr %31, i64 %19
  br label %33

33:                                               ; preds = %33, %30
  %34 = phi ptr [ %31, %30 ], [ %35, %33 ]
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %34, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %36 = icmp eq ptr %35, %32
  br i1 %36, label %.loopexit68, label %33

.loopexit68:                                      ; preds = %33
  br i1 %22, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.loopexit68
  %wide.trip.count = zext i8 %1 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %50, %.loopexit68.thread, %.loopexit68
  %37 = phi ptr [ %23, %.loopexit68.thread ], [ %31, %.loopexit68 ], [ %31, %50 ]
  %38 = call noundef ptr @_ZN17numerical_methods27InverseFastFourierTransformEPSt7complexIdEh(ptr noundef nonnull %21, i8 noundef zeroext %18)
  %39 = call noundef ptr @_ZN17numerical_methods27InverseFastFourierTransformEPSt7complexIdEh(ptr noundef nonnull %37, i8 noundef zeroext %18)
  %40 = zext i8 %1 to i64
  %41 = shl nuw nsw i64 %40, 4
  %42 = call noalias noundef nonnull ptr @_Znam(i64 noundef %41) #11
  br i1 %22, label %._crit_edge77.thread, label %53

.lr.ph:                                           ; preds = %.lr.ph.preheader, %50
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %50 ]
  %.05571 = phi i32 [ 0, %.lr.ph.preheader ], [ %.1, %50 ]
  %.05670 = phi i32 [ 0, %.lr.ph.preheader ], [ %.157, %50 ]
  %43 = and i64 %indvars.iv, 1
  %44 = icmp eq i64 %43, 0
  %45 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %indvars.iv
  br i1 %44, label %46, label %48

46:                                               ; preds = %.lr.ph
  %47 = add nsw i32 %.05571, 1
  br label %50

48:                                               ; preds = %.lr.ph
  %49 = add nsw i32 %.05670, 1
  br label %50

50:                                               ; preds = %46, %48
  %.05571.sink = phi i32 [ %.05571, %46 ], [ %.05670, %48 ]
  %.sink91 = phi ptr [ %21, %46 ], [ %31, %48 ]
  %.157 = phi i32 [ %.05670, %46 ], [ %49, %48 ]
  %.1 = phi i32 [ %47, %46 ], [ %.05571, %48 ]
  %51 = sext i32 %.05571.sink to i64
  %52 = getelementptr inbounds %"class.std::complex", ptr %.sink91, i64 %51
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %45, i64 16, i1 false)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !5

53:                                               ; preds = %._crit_edge
  %54 = getelementptr inbounds %"class.std::complex", ptr %42, i64 %40
  br label %55

55:                                               ; preds = %55, %53
  %56 = phi ptr [ %42, %53 ], [ %57, %55 ]
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %56, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %58 = icmp eq ptr %57, %54
  br i1 %58, label %.loopexit, label %55

.loopexit:                                        ; preds = %55
  br i1 %22, label %._crit_edge77.thread, label %.lr.ph76

.lr.ph76:                                         ; preds = %.loopexit
  %59 = getelementptr inbounds i8, ptr %5, i64 8
  %60 = getelementptr inbounds i8, ptr %4, i64 8
  %61 = getelementptr inbounds i8, ptr %7, i64 8
  %62 = getelementptr inbounds i8, ptr %6, i64 8
  %63 = call i8 @llvm.umax.i8(i8 %18, i8 1)
  %wide.trip.count88 = zext nneg i8 %63 to i64
  %invariant.gep = getelementptr inbounds %"class.std::complex", ptr %42, i64 %19
  br label %64

._crit_edge77:                                    ; preds = %64
  %.not = icmp eq i8 %1, 2
  br i1 %.not, label %87, label %._crit_edge77.thread

64:                                               ; preds = %.lr.ph76, %64
  %indvars.iv81 = phi i64 [ 0, %.lr.ph76 ], [ %indvars.iv.next82, %64 ]
  %65 = getelementptr inbounds %"class.std::complex", ptr %38, i64 %indvars.iv81
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  %66 = trunc nuw nsw i64 %indvars.iv81 to i32
  %67 = call { double, double } @_ZSt3powIdESt7complexIT_ERKS2_i(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %66)
  %68 = extractvalue { double, double } %67, 0
  store double %68, ptr %5, align 8
  %69 = extractvalue { double, double } %67, 1
  store double %69, ptr %59, align 8
  %70 = getelementptr inbounds %"class.std::complex", ptr %39, i64 %indvars.iv81
  %71 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %70)
  %72 = extractvalue { double, double } %71, 0
  store double %72, ptr %4, align 8
  %73 = extractvalue { double, double } %71, 1
  store double %73, ptr %60, align 8
  %74 = call { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %75 = extractvalue { double, double } %74, 0
  %76 = extractvalue { double, double } %74, 1
  %77 = getelementptr inbounds %"class.std::complex", ptr %42, i64 %indvars.iv81
  store double %75, ptr %77, align 8
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %77, i64 8
  store double %76, ptr %.sroa.42.0..sroa_idx, align 8, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #10
  %78 = call { double, double } @_ZSt3powIdESt7complexIT_ERKS2_i(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %66)
  %79 = extractvalue { double, double } %78, 0
  store double %79, ptr %7, align 8
  %80 = extractvalue { double, double } %78, 1
  store double %80, ptr %61, align 8
  %81 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %70)
  %82 = extractvalue { double, double } %81, 0
  store double %82, ptr %6, align 8
  %83 = extractvalue { double, double } %81, 1
  store double %83, ptr %62, align 8
  %84 = call { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %85 = extractvalue { double, double } %84, 0
  %86 = extractvalue { double, double } %84, 1
  %gep = getelementptr inbounds %"class.std::complex", ptr %invariant.gep, i64 %indvars.iv81
  store double %85, ptr %gep, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %gep, i64 8
  store double %86, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %exitcond89.not = icmp eq i64 %indvars.iv.next82, %wide.trip.count88
  br i1 %exitcond89.not, label %._crit_edge77, label %64, !llvm.loop !10

._crit_edge77.thread:                             ; preds = %._crit_edge, %.loopexit, %._crit_edge77
  call void @_ZdaPv(ptr noundef nonnull %21) #12
  call void @_ZdaPv(ptr noundef nonnull %37) #12
  br label %87

87:                                               ; preds = %._crit_edge77.thread, %._crit_edge77
  %88 = icmp eq ptr %38, null
  br i1 %88, label %90, label %89

89:                                               ; preds = %87
  call void @_ZdaPv(ptr noundef nonnull %38) #12
  br label %90

90:                                               ; preds = %89, %87
  %91 = icmp eq ptr %39, null
  br i1 %91, label %93, label %92

92:                                               ; preds = %90
  call void @_ZdaPv(ptr noundef nonnull %39) #12
  br label %93

93:                                               ; preds = %92, %90
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  br label %94

94:                                               ; preds = %2, %93
  %.0 = phi ptr [ %42, %93 ], [ %0, %2 ]
  ret ptr %.0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(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 #3 align 2

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

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

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

; 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 { double, double } @_ZStplIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind 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 #7

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #8

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.umax.i8(i8, i8) #9

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 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 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 #4 = { nobuiltin allocsize(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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 #8 = { nobuiltin 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !6}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass