; LLVM IR from kkumatani/distant_speech_recognition :: btk20_src/matrix/linpack_c.ll (Z5cqrdcPSt7complexIfEiiiS1_Pii)

; 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 { { float, float } }

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #5

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8)) #7

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8)) #8

declare void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef, <2 x float>, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #5

declare <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #5

declare noundef float @_Z6scnrm2iPSt7complexIfEi(i32 noundef, ptr noundef, i32 noundef) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #8

declare noundef i32 @_Z6i4_minii(i32 noundef, i32 noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIfiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef, i32 noundef) #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z6r4_maxff(float noundef, float noundef) #1

declare noundef float @_Z5cabs1St7complexIfE(<2 x float>) #5

declare void @_Z5cscaliSt7complexIfEPS0_i(i32 noundef, <2 x float>, ptr noundef, i32 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5cqrdcPSt7complexIfEiiiS1_Pii(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #10 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %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 float, align 4
  %23 = alloca i8, align 1
  %24 = alloca %"class.std::complex", align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i8, align 1
  %28 = alloca %"class.std::complex", align 4
  %29 = alloca float, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca %"class.std::complex", align 4
  %34 = alloca %"class.std::complex", align 4
  %35 = alloca %"class.std::complex", align 4
  %36 = alloca %"class.std::complex", align 4
  %37 = alloca %"class.std::complex", align 4
  %38 = alloca %"class.std::complex", align 4
  %39 = alloca %"class.std::complex", align 4
  %40 = alloca %"class.std::complex", align 4
  %41 = alloca %"class.std::complex", align 4
  %42 = alloca %"class.std::complex", align 4
  %43 = alloca %"class.std::complex", align 4
  %44 = alloca %"class.std::complex", align 4
  %45 = alloca %"class.std::complex", align 4
  %46 = alloca %"class.std::complex", align 4
  %47 = alloca %"class.std::complex", align 4
  %48 = alloca %"class.std::complex", align 4
  %49 = alloca %"class.std::complex", align 4
  %50 = alloca %"class.std::complex", align 4
  %51 = alloca %"class.std::complex", align 4
  %52 = alloca %"class.std::complex", align 4
  %53 = alloca %"class.std::complex", align 4
  %54 = alloca %"class.std::complex", align 4
  %55 = alloca %"class.std::complex", align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #11
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #11
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %28, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #11
  store i32 1, ptr %25, align 4, !tbaa !9
  store i32 0, ptr %26, align 4, !tbaa !9
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %57, i64 8)
  %59 = extractvalue { i64, i1 } %58, 1
  %60 = extractvalue { i64, i1 } %58, 0
  %61 = select i1 %59, i64 -1, i64 %60
  %62 = call noalias noundef nonnull ptr @_Znam(i64 noundef %61) #12
  %63 = icmp eq i64 %57, 0
  br i1 %63, label %71, label %64

64:                                               ; preds = %7
  %65 = getelementptr inbounds %"class.std::complex", ptr %62, i64 %57
  br label %66

66:                                               ; preds = %68, %64
  %67 = phi ptr [ %62, %64 ], [ %69, %68 ]
  invoke void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %67, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %68 unwind label %106

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

71:                                               ; preds = %68, %7
  store ptr %62, ptr %30, align 8, !tbaa !5
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %249

74:                                               ; preds = %71
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %163, %74
  %76 = load i32, ptr %16, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = icmp sle i32 %76, %77
  br i1 %78, label %79, label %166

79:                                               ; preds = %75
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = sub nsw i32 %81, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds i32, ptr %80, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = icmp slt i32 0, %85
  %87 = zext i1 %86 to i8
  store i8 %87, ptr %27, align 1, !tbaa !11
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %88, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = icmp slt i32 %93, 0
  %95 = zext i1 %94 to i8
  store i8 %95, ptr %23, align 1, !tbaa !11
  %96 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %110

98:                                               ; preds = %79
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = sub nsw i32 0, %99
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load i32, ptr %16, align 4, !tbaa !9
  %103 = sub nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr %101, i64 %104
  store i32 %100, ptr %105, align 4, !tbaa !9
  br label %117

106:                                              ; preds = %66
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %31, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %32, align 4
  call void @_ZdaPvm(ptr noundef %62, i64 noundef %61) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #11
  br label %733

110:                                              ; preds = %79
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = load i32, ptr %16, align 4, !tbaa !9
  %114 = sub nsw i32 %113, 1
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i32, ptr %112, i64 %115
  store i32 %111, ptr %116, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %110, %98
  %118 = load i8, ptr %27, align 1, !tbaa !11, !range !13, !noundef !14
  %119 = trunc i8 %118 to i1
  br i1 %119, label %120, label %162

120:                                              ; preds = %117
  %121 = load i32, ptr %16, align 4, !tbaa !9
  %122 = load i32, ptr %25, align 4, !tbaa !9
  %123 = icmp ne i32 %121, %122
  br i1 %123, label %124, label %142

124:                                              ; preds = %120
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %"class.std::complex", ptr %126, i64 0
  %128 = load i32, ptr %25, align 4, !tbaa !9
  %129 = sub nsw i32 %128, 1
  %130 = load i32, ptr %9, align 4, !tbaa !9
  %131 = mul nsw i32 %129, %130
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds %"class.std::complex", ptr %127, i64 %132
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %"class.std::complex", ptr %134, i64 0
  %136 = load i32, ptr %16, align 4, !tbaa !9
  %137 = sub nsw i32 %136, 1
  %138 = load i32, ptr %9, align 4, !tbaa !9
  %139 = mul nsw i32 %137, %138
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds %"class.std::complex", ptr %135, i64 %140
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %125, ptr noundef %133, i32 noundef 1, ptr noundef %141, i32 noundef 1)
  br label %142

142:                                              ; preds = %124, %120
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = load i32, ptr %25, align 4, !tbaa !9
  %145 = sub nsw i32 %144, 1
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds i32, ptr %143, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = load i32, ptr %16, align 4, !tbaa !9
  %151 = sub nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds i32, ptr %149, i64 %152
  store i32 %148, ptr %153, align 4, !tbaa !9
  %154 = load i32, ptr %16, align 4, !tbaa !9
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load i32, ptr %25, align 4, !tbaa !9
  %157 = sub nsw i32 %156, 1
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds i32, ptr %155, i64 %158
  store i32 %154, ptr %159, align 4, !tbaa !9
  %160 = load i32, ptr %25, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %25, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %142, %117
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %16, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %16, align 4, !tbaa !9
  br label %75, !llvm.loop !15

166:                                              ; preds = %75
  %167 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %167, ptr %26, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %245, %166
  %169 = load i32, ptr %17, align 4, !tbaa !9
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = icmp sle i32 %169, %170
  br i1 %171, label %172, label %248

172:                                              ; preds = %168
  %173 = load i32, ptr %11, align 4, !tbaa !9
  %174 = load i32, ptr %17, align 4, !tbaa !9
  %175 = sub nsw i32 %173, %174
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %16, align 4, !tbaa !9
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = load i32, ptr %16, align 4, !tbaa !9
  %179 = sub nsw i32 %178, 1
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds i32, ptr %177, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = icmp slt i32 %182, 0
  br i1 %183, label %184, label %244

184:                                              ; preds = %172
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = load i32, ptr %16, align 4, !tbaa !9
  %187 = sub nsw i32 %186, 1
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds i32, ptr %185, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %191 = sub nsw i32 0, %190
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = sub nsw i32 %193, 1
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds i32, ptr %192, i64 %195
  store i32 %191, ptr %196, align 4, !tbaa !9
  %197 = load i32, ptr %16, align 4, !tbaa !9
  %198 = load i32, ptr %26, align 4, !tbaa !9
  %199 = icmp ne i32 %197, %198
  br i1 %199, label %200, label %241

200:                                              ; preds = %184
  %201 = load i32, ptr %10, align 4, !tbaa !9
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = getelementptr inbounds %"class.std::complex", ptr %202, i64 0
  %204 = load i32, ptr %26, align 4, !tbaa !9
  %205 = sub nsw i32 %204, 1
  %206 = load i32, ptr %9, align 4, !tbaa !9
  %207 = mul nsw i32 %205, %206
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %"class.std::complex", ptr %203, i64 %208
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %"class.std::complex", ptr %210, i64 0
  %212 = load i32, ptr %16, align 4, !tbaa !9
  %213 = sub nsw i32 %212, 1
  %214 = load i32, ptr %9, align 4, !tbaa !9
  %215 = mul nsw i32 %213, %214
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds %"class.std::complex", ptr %211, i64 %216
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %201, ptr noundef %209, i32 noundef 1, ptr noundef %217, i32 noundef 1)
  %218 = load ptr, ptr %13, align 8, !tbaa !5
  %219 = load i32, ptr %26, align 4, !tbaa !9
  %220 = sub nsw i32 %219, 1
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds i32, ptr %218, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !9
  store i32 %223, ptr %15, align 4, !tbaa !9
  %224 = load ptr, ptr %13, align 8, !tbaa !5
  %225 = load i32, ptr %16, align 4, !tbaa !9
  %226 = sub nsw i32 %225, 1
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds i32, ptr %224, i64 %227
  %229 = load i32, ptr %228, align 4, !tbaa !9
  %230 = load ptr, ptr %13, align 8, !tbaa !5
  %231 = load i32, ptr %26, align 4, !tbaa !9
  %232 = sub nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds i32, ptr %230, i64 %233
  store i32 %229, ptr %234, align 4, !tbaa !9
  %235 = load i32, ptr %15, align 4, !tbaa !9
  %236 = load ptr, ptr %13, align 8, !tbaa !5
  %237 = load i32, ptr %16, align 4, !tbaa !9
  %238 = sub nsw i32 %237, 1
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds i32, ptr %236, i64 %239
  store i32 %235, ptr %240, align 4, !tbaa !9
  br label %241

241:                                              ; preds = %200, %184
  %242 = load i32, ptr %26, align 4, !tbaa !9
  %243 = sub nsw i32 %242, 1
  store i32 %243, ptr %26, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %241, %172
  br label %245

245:                                              ; preds = %244
  %246 = load i32, ptr %17, align 4, !tbaa !9
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %17, align 4, !tbaa !9
  br label %168, !llvm.loop !17

248:                                              ; preds = %168
  br label %249

249:                                              ; preds = %248, %71
  %250 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %250, ptr %16, align 4, !tbaa !9
  br label %251

251:                                              ; preds = %281, %249
  %252 = load i32, ptr %16, align 4, !tbaa !9
  %253 = load i32, ptr %26, align 4, !tbaa !9
  %254 = icmp sle i32 %252, %253
  br i1 %254, label %255, label %284

255:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #11
  %256 = load i32, ptr %10, align 4, !tbaa !9
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = getelementptr inbounds %"class.std::complex", ptr %257, i64 0
  %259 = load i32, ptr %16, align 4, !tbaa !9
  %260 = sub nsw i32 %259, 1
  %261 = load i32, ptr %9, align 4, !tbaa !9
  %262 = mul nsw i32 %260, %261
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %"class.std::complex", ptr %258, i64 %263
  %265 = call noundef float @_Z6scnrm2iPSt7complexIfEi(i32 noundef %256, ptr noundef %264, i32 noundef 1)
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %33, float noundef %265, float noundef 0.000000e+00)
  %266 = load ptr, ptr %12, align 8, !tbaa !5
  %267 = load i32, ptr %16, align 4, !tbaa !9
  %268 = sub nsw i32 %267, 1
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds %"class.std::complex", ptr %266, i64 %269
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %270, ptr align 4 %33, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  %271 = load ptr, ptr %12, align 8, !tbaa !5
  %272 = load i32, ptr %16, align 4, !tbaa !9
  %273 = sub nsw i32 %272, 1
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds %"class.std::complex", ptr %271, i64 %274
  %276 = load ptr, ptr %30, align 8, !tbaa !5
  %277 = load i32, ptr %16, align 4, !tbaa !9
  %278 = sub nsw i32 %277, 1
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds %"class.std::complex", ptr %276, i64 %279
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %280, ptr align 4 %275, i64 8, i1 false), !tbaa.struct !18
  br label %281

281:                                              ; preds = %255
  %282 = load i32, ptr %16, align 4, !tbaa !9
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %16, align 4, !tbaa !9
  br label %251, !llvm.loop !20

284:                                              ; preds = %251
  %285 = load i32, ptr %10, align 4, !tbaa !9
  %286 = load i32, ptr %11, align 4, !tbaa !9
  %287 = call noundef i32 @_Z6i4_minii(i32 noundef %285, i32 noundef %286)
  store i32 %287, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %288

288:                                              ; preds = %725, %284
  %289 = load i32, ptr %18, align 4, !tbaa !9
  %290 = load i32, ptr %20, align 4, !tbaa !9
  %291 = icmp sle i32 %289, %290
  br i1 %291, label %292, label %728

292:                                              ; preds = %288
  %293 = load i32, ptr %25, align 4, !tbaa !9
  %294 = load i32, ptr %18, align 4, !tbaa !9
  %295 = icmp sle i32 %293, %294
  br i1 %295, label %296, label %394

296:                                              ; preds = %292
  %297 = load i32, ptr %18, align 4, !tbaa !9
  %298 = load i32, ptr %26, align 4, !tbaa !9
  %299 = icmp slt i32 %297, %298
  br i1 %299, label %300, label %394

300:                                              ; preds = %296
  store float 0.000000e+00, ptr %22, align 4, !tbaa !21
  %301 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %301, ptr %21, align 4, !tbaa !9
  %302 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %302, ptr %16, align 4, !tbaa !9
  br label %303

303:                                              ; preds = %325, %300
  %304 = load i32, ptr %16, align 4, !tbaa !9
  %305 = load i32, ptr %26, align 4, !tbaa !9
  %306 = icmp sle i32 %304, %305
  br i1 %306, label %307, label %328

307:                                              ; preds = %303
  %308 = load float, ptr %22, align 4, !tbaa !21
  %309 = load ptr, ptr %12, align 8, !tbaa !5
  %310 = load i32, ptr %16, align 4, !tbaa !9
  %311 = sub nsw i32 %310, 1
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds %"class.std::complex", ptr %309, i64 %312
  %314 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %313)
  %315 = fcmp olt float %308, %314
  br i1 %315, label %316, label %324

316:                                              ; preds = %307
  %317 = load ptr, ptr %12, align 8, !tbaa !5
  %318 = load i32, ptr %16, align 4, !tbaa !9
  %319 = sub nsw i32 %318, 1
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds %"class.std::complex", ptr %317, i64 %320
  %322 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %321)
  store float %322, ptr %22, align 4, !tbaa !21
  %323 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %323, ptr %21, align 4, !tbaa !9
  br label %324

324:                                              ; preds = %316, %307
  br label %325

325:                                              ; preds = %324
  %326 = load i32, ptr %16, align 4, !tbaa !9
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %16, align 4, !tbaa !9
  br label %303, !llvm.loop !23

328:                                              ; preds = %303
  %329 = load i32, ptr %21, align 4, !tbaa !9
  %330 = load i32, ptr %18, align 4, !tbaa !9
  %331 = icmp ne i32 %329, %330
  br i1 %331, label %332, label %393

332:                                              ; preds = %328
  %333 = load i32, ptr %10, align 4, !tbaa !9
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = getelementptr inbounds %"class.std::complex", ptr %334, i64 0
  %336 = load i32, ptr %18, align 4, !tbaa !9
  %337 = sub nsw i32 %336, 1
  %338 = load i32, ptr %9, align 4, !tbaa !9
  %339 = mul nsw i32 %337, %338
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds %"class.std::complex", ptr %335, i64 %340
  %342 = load ptr, ptr %8, align 8, !tbaa !5
  %343 = getelementptr inbounds %"class.std::complex", ptr %342, i64 0
  %344 = load i32, ptr %21, align 4, !tbaa !9
  %345 = sub nsw i32 %344, 1
  %346 = load i32, ptr %9, align 4, !tbaa !9
  %347 = mul nsw i32 %345, %346
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds %"class.std::complex", ptr %343, i64 %348
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %333, ptr noundef %341, i32 noundef 1, ptr noundef %349, i32 noundef 1)
  %350 = load ptr, ptr %12, align 8, !tbaa !5
  %351 = load i32, ptr %18, align 4, !tbaa !9
  %352 = sub nsw i32 %351, 1
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds %"class.std::complex", ptr %350, i64 %353
  %355 = load ptr, ptr %12, align 8, !tbaa !5
  %356 = load i32, ptr %21, align 4, !tbaa !9
  %357 = sub nsw i32 %356, 1
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds %"class.std::complex", ptr %355, i64 %358
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %359, ptr align 4 %354, i64 8, i1 false), !tbaa.struct !18
  %360 = load ptr, ptr %30, align 8, !tbaa !5
  %361 = load i32, ptr %18, align 4, !tbaa !9
  %362 = sub nsw i32 %361, 1
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds %"class.std::complex", ptr %360, i64 %363
  %365 = load ptr, ptr %30, align 8, !tbaa !5
  %366 = load i32, ptr %21, align 4, !tbaa !9
  %367 = sub nsw i32 %366, 1
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds %"class.std::complex", ptr %365, i64 %368
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %369, ptr align 4 %364, i64 8, i1 false), !tbaa.struct !18
  %370 = load ptr, ptr %13, align 8, !tbaa !5
  %371 = load i32, ptr %21, align 4, !tbaa !9
  %372 = sub nsw i32 %371, 1
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds i32, ptr %370, i64 %373
  %375 = load i32, ptr %374, align 4, !tbaa !9
  store i32 %375, ptr %15, align 4, !tbaa !9
  %376 = load ptr, ptr %13, align 8, !tbaa !5
  %377 = load i32, ptr %18, align 4, !tbaa !9
  %378 = sub nsw i32 %377, 1
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds i32, ptr %376, i64 %379
  %381 = load i32, ptr %380, align 4, !tbaa !9
  %382 = load ptr, ptr %13, align 8, !tbaa !5
  %383 = load i32, ptr %21, align 4, !tbaa !9
  %384 = sub nsw i32 %383, 1
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds i32, ptr %382, i64 %385
  store i32 %381, ptr %386, align 4, !tbaa !9
  %387 = load i32, ptr %15, align 4, !tbaa !9
  %388 = load ptr, ptr %13, align 8, !tbaa !5
  %389 = load i32, ptr %18, align 4, !tbaa !9
  %390 = sub nsw i32 %389, 1
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds i32, ptr %388, i64 %391
  store i32 %387, ptr %392, align 4, !tbaa !9
  br label %393

393:                                              ; preds = %332, %328
  br label %394

394:                                              ; preds = %393, %296, %292
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #11
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %34, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %395 = load ptr, ptr %12, align 8, !tbaa !5
  %396 = load i32, ptr %18, align 4, !tbaa !9
  %397 = sub nsw i32 %396, 1
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds %"class.std::complex", ptr %395, i64 %398
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %399, ptr align 4 %34, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #11
  %400 = load i32, ptr %18, align 4, !tbaa !9
  %401 = load i32, ptr %10, align 4, !tbaa !9
  %402 = icmp ne i32 %400, %401
  br i1 %402, label %403, label %724

403:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #11
  %404 = load i32, ptr %10, align 4, !tbaa !9
  %405 = load i32, ptr %18, align 4, !tbaa !9
  %406 = sub nsw i32 %404, %405
  %407 = add nsw i32 %406, 1
  %408 = load ptr, ptr %8, align 8, !tbaa !5
  %409 = load i32, ptr %18, align 4, !tbaa !9
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds %"class.std::complex", ptr %408, i64 %410
  %412 = getelementptr inbounds %"class.std::complex", ptr %411, i64 -1
  %413 = load i32, ptr %18, align 4, !tbaa !9
  %414 = sub nsw i32 %413, 1
  %415 = load i32, ptr %9, align 4, !tbaa !9
  %416 = mul nsw i32 %414, %415
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds %"class.std::complex", ptr %412, i64 %417
  %419 = call noundef float @_Z6scnrm2iPSt7complexIfEi(i32 noundef %407, ptr noundef %418, i32 noundef 1)
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %35, float noundef %419, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %35, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !18
  %420 = getelementptr inbounds %"class.std::complex", ptr %36, i32 0, i32 0
  %421 = load <2 x float>, ptr %420, align 4
  %422 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %421)
  %423 = fpext float %422 to double
  %424 = fcmp une double %423, 0.000000e+00
  br i1 %424, label %425, label %723

425:                                              ; preds = %403
  %426 = load ptr, ptr %8, align 8, !tbaa !5
  %427 = load i32, ptr %18, align 4, !tbaa !9
  %428 = sub nsw i32 %427, 1
  %429 = load i32, ptr %18, align 4, !tbaa !9
  %430 = sub nsw i32 %429, 1
  %431 = load i32, ptr %9, align 4, !tbaa !9
  %432 = mul nsw i32 %430, %431
  %433 = add nsw i32 %428, %432
  %434 = sext i32 %433 to i64
  %435 = getelementptr inbounds %"class.std::complex", ptr %426, i64 %434
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %435, i64 8, i1 false), !tbaa.struct !18
  %436 = getelementptr inbounds %"class.std::complex", ptr %37, i32 0, i32 0
  %437 = load <2 x float>, ptr %436, align 4
  %438 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %437)
  %439 = fpext float %438 to double
  %440 = fcmp une double %439, 0.000000e+00
  br i1 %440, label %441, label %458

441:                                              ; preds = %425
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !18
  %442 = load ptr, ptr %8, align 8, !tbaa !5
  %443 = load i32, ptr %18, align 4, !tbaa !9
  %444 = sub nsw i32 %443, 1
  %445 = load i32, ptr %18, align 4, !tbaa !9
  %446 = sub nsw i32 %445, 1
  %447 = load i32, ptr %9, align 4, !tbaa !9
  %448 = mul nsw i32 %446, %447
  %449 = add nsw i32 %444, %448
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds %"class.std::complex", ptr %442, i64 %450
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %451, i64 8, i1 false), !tbaa.struct !18
  %452 = getelementptr inbounds %"class.std::complex", ptr %39, i32 0, i32 0
  %453 = load <2 x float>, ptr %452, align 4
  %454 = getelementptr inbounds %"class.std::complex", ptr %40, i32 0, i32 0
  %455 = load <2 x float>, ptr %454, align 4
  %456 = call <2 x float> @_Z6csign2St7complexIfES0_(<2 x float> %453, <2 x float> %455)
  %457 = getelementptr inbounds %"class.std::complex", ptr %38, i32 0, i32 0
  store <2 x float> %456, ptr %457, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %38, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #11
  br label %458

458:                                              ; preds = %441, %425
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #11
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %42, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %459 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef nonnull align 4 dereferenceable(8) %24)
  %460 = getelementptr inbounds %"class.std::complex", ptr %41, i32 0, i32 0
  store <2 x float> %459, ptr %460, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %41, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  %461 = load i32, ptr %10, align 4, !tbaa !9
  %462 = load i32, ptr %18, align 4, !tbaa !9
  %463 = sub nsw i32 %461, %462
  %464 = add nsw i32 %463, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %28, i64 8, i1 false), !tbaa.struct !18
  %465 = load ptr, ptr %8, align 8, !tbaa !5
  %466 = load i32, ptr %18, align 4, !tbaa !9
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds %"class.std::complex", ptr %465, i64 %467
  %469 = getelementptr inbounds %"class.std::complex", ptr %468, i64 -1
  %470 = load i32, ptr %18, align 4, !tbaa !9
  %471 = sub nsw i32 %470, 1
  %472 = load i32, ptr %9, align 4, !tbaa !9
  %473 = mul nsw i32 %471, %472
  %474 = sext i32 %473 to i64
  %475 = getelementptr inbounds %"class.std::complex", ptr %469, i64 %474
  %476 = getelementptr inbounds %"class.std::complex", ptr %43, i32 0, i32 0
  %477 = load <2 x float>, ptr %476, align 4
  call void @_Z5cscaliSt7complexIfEPS0_i(i32 noundef %464, <2 x float> %477, ptr noundef %475, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #11
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %45, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %478 = load ptr, ptr %8, align 8, !tbaa !5
  %479 = load i32, ptr %18, align 4, !tbaa !9
  %480 = sub nsw i32 %479, 1
  %481 = load i32, ptr %18, align 4, !tbaa !9
  %482 = sub nsw i32 %481, 1
  %483 = load i32, ptr %9, align 4, !tbaa !9
  %484 = mul nsw i32 %482, %483
  %485 = add nsw i32 %480, %484
  %486 = sext i32 %485 to i64
  %487 = getelementptr inbounds %"class.std::complex", ptr %478, i64 %486
  %488 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %45, ptr noundef nonnull align 4 dereferenceable(8) %487)
  %489 = getelementptr inbounds %"class.std::complex", ptr %44, i32 0, i32 0
  store <2 x float> %488, ptr %489, align 4
  %490 = load ptr, ptr %8, align 8, !tbaa !5
  %491 = load i32, ptr %18, align 4, !tbaa !9
  %492 = sub nsw i32 %491, 1
  %493 = load i32, ptr %18, align 4, !tbaa !9
  %494 = sub nsw i32 %493, 1
  %495 = load i32, ptr %9, align 4, !tbaa !9
  %496 = mul nsw i32 %494, %495
  %497 = add nsw i32 %492, %496
  %498 = sext i32 %497 to i64
  %499 = getelementptr inbounds %"class.std::complex", ptr %490, i64 %498
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %499, ptr align 4 %44, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #11
  %500 = load i32, ptr %18, align 4, !tbaa !9
  %501 = add nsw i32 %500, 1
  store i32 %501, ptr %19, align 4, !tbaa !9
  %502 = load i32, ptr %18, align 4, !tbaa !9
  %503 = add nsw i32 %502, 1
  store i32 %503, ptr %16, align 4, !tbaa !9
  br label %504

504:                                              ; preds = %692, %458
  %505 = load i32, ptr %16, align 4, !tbaa !9
  %506 = load i32, ptr %11, align 4, !tbaa !9
  %507 = icmp sle i32 %505, %506
  br i1 %507, label %508, label %695

508:                                              ; preds = %504
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #11
  %509 = load i32, ptr %10, align 4, !tbaa !9
  %510 = load i32, ptr %18, align 4, !tbaa !9
  %511 = sub nsw i32 %509, %510
  %512 = add nsw i32 %511, 1
  %513 = load ptr, ptr %8, align 8, !tbaa !5
  %514 = load i32, ptr %18, align 4, !tbaa !9
  %515 = sext i32 %514 to i64
  %516 = getelementptr inbounds %"class.std::complex", ptr %513, i64 %515
  %517 = getelementptr inbounds %"class.std::complex", ptr %516, i64 -1
  %518 = load i32, ptr %18, align 4, !tbaa !9
  %519 = sub nsw i32 %518, 1
  %520 = load i32, ptr %9, align 4, !tbaa !9
  %521 = mul nsw i32 %519, %520
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds %"class.std::complex", ptr %517, i64 %522
  %524 = load ptr, ptr %8, align 8, !tbaa !5
  %525 = load i32, ptr %18, align 4, !tbaa !9
  %526 = sext i32 %525 to i64
  %527 = getelementptr inbounds %"class.std::complex", ptr %524, i64 %526
  %528 = getelementptr inbounds %"class.std::complex", ptr %527, i64 -1
  %529 = load i32, ptr %16, align 4, !tbaa !9
  %530 = sub nsw i32 %529, 1
  %531 = load i32, ptr %9, align 4, !tbaa !9
  %532 = mul nsw i32 %530, %531
  %533 = sext i32 %532 to i64
  %534 = getelementptr inbounds %"class.std::complex", ptr %528, i64 %533
  %535 = call <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef %512, ptr noundef %523, i32 noundef 1, ptr noundef %534, i32 noundef 1)
  %536 = getelementptr inbounds %"class.std::complex", ptr %48, i32 0, i32 0
  store <2 x float> %535, ptr %536, align 4
  %537 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %48)
  %538 = getelementptr inbounds %"class.std::complex", ptr %47, i32 0, i32 0
  store <2 x float> %537, ptr %538, align 4
  %539 = load ptr, ptr %8, align 8, !tbaa !5
  %540 = load i32, ptr %18, align 4, !tbaa !9
  %541 = sub nsw i32 %540, 1
  %542 = load i32, ptr %18, align 4, !tbaa !9
  %543 = sub nsw i32 %542, 1
  %544 = load i32, ptr %9, align 4, !tbaa !9
  %545 = mul nsw i32 %543, %544
  %546 = add nsw i32 %541, %545
  %547 = sext i32 %546 to i64
  %548 = getelementptr inbounds %"class.std::complex", ptr %539, i64 %547
  %549 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %47, ptr noundef nonnull align 4 dereferenceable(8) %548)
  %550 = getelementptr inbounds %"class.std::complex", ptr %46, i32 0, i32 0
  store <2 x float> %549, ptr %550, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %46, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  %551 = load i32, ptr %10, align 4, !tbaa !9
  %552 = load i32, ptr %18, align 4, !tbaa !9
  %553 = sub nsw i32 %551, %552
  %554 = add nsw i32 %553, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %28, i64 8, i1 false), !tbaa.struct !18
  %555 = load ptr, ptr %8, align 8, !tbaa !5
  %556 = load i32, ptr %18, align 4, !tbaa !9
  %557 = sext i32 %556 to i64
  %558 = getelementptr inbounds %"class.std::complex", ptr %555, i64 %557
  %559 = getelementptr inbounds %"class.std::complex", ptr %558, i64 -1
  %560 = load i32, ptr %18, align 4, !tbaa !9
  %561 = sub nsw i32 %560, 1
  %562 = load i32, ptr %9, align 4, !tbaa !9
  %563 = mul nsw i32 %561, %562
  %564 = sext i32 %563 to i64
  %565 = getelementptr inbounds %"class.std::complex", ptr %559, i64 %564
  %566 = load ptr, ptr %8, align 8, !tbaa !5
  %567 = load i32, ptr %18, align 4, !tbaa !9
  %568 = sext i32 %567 to i64
  %569 = getelementptr inbounds %"class.std::complex", ptr %566, i64 %568
  %570 = getelementptr inbounds %"class.std::complex", ptr %569, i64 -1
  %571 = load i32, ptr %16, align 4, !tbaa !9
  %572 = sub nsw i32 %571, 1
  %573 = load i32, ptr %9, align 4, !tbaa !9
  %574 = mul nsw i32 %572, %573
  %575 = sext i32 %574 to i64
  %576 = getelementptr inbounds %"class.std::complex", ptr %570, i64 %575
  %577 = getelementptr inbounds %"class.std::complex", ptr %49, i32 0, i32 0
  %578 = load <2 x float>, ptr %577, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %554, <2 x float> %578, ptr noundef %565, i32 noundef 1, ptr noundef %576, i32 noundef 1)
  %579 = load i32, ptr %16, align 4, !tbaa !9
  %580 = load i32, ptr %25, align 4, !tbaa !9
  %581 = icmp slt i32 %579, %580
  br i1 %581, label %586, label %582

582:                                              ; preds = %508
  %583 = load i32, ptr %26, align 4, !tbaa !9
  %584 = load i32, ptr %16, align 4, !tbaa !9
  %585 = icmp slt i32 %583, %584
  br i1 %585, label %586, label %587

586:                                              ; preds = %582, %508
  br label %692

587:                                              ; preds = %582
  %588 = load ptr, ptr %12, align 8, !tbaa !5
  %589 = load i32, ptr %16, align 4, !tbaa !9
  %590 = sub nsw i32 %589, 1
  %591 = sext i32 %590 to i64
  %592 = getelementptr inbounds %"class.std::complex", ptr %588, i64 %591
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %592, i64 8, i1 false), !tbaa.struct !18
  %593 = getelementptr inbounds %"class.std::complex", ptr %50, i32 0, i32 0
  %594 = load <2 x float>, ptr %593, align 4
  %595 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %594)
  %596 = fpext float %595 to double
  %597 = fcmp oeq double %596, 0.000000e+00
  br i1 %597, label %598, label %599

598:                                              ; preds = %587
  br label %692

599:                                              ; preds = %587
  %600 = load ptr, ptr %8, align 8, !tbaa !5
  %601 = load i32, ptr %18, align 4, !tbaa !9
  %602 = sub nsw i32 %601, 1
  %603 = load i32, ptr %16, align 4, !tbaa !9
  %604 = sub nsw i32 %603, 1
  %605 = load i32, ptr %9, align 4, !tbaa !9
  %606 = mul nsw i32 %604, %605
  %607 = add nsw i32 %602, %606
  %608 = sext i32 %607 to i64
  %609 = getelementptr inbounds %"class.std::complex", ptr %600, i64 %608
  %610 = call noundef float @_ZSt3absIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %609)
  %611 = load ptr, ptr %12, align 8, !tbaa !5
  %612 = load i32, ptr %16, align 4, !tbaa !9
  %613 = sub nsw i32 %612, 1
  %614 = sext i32 %613 to i64
  %615 = getelementptr inbounds %"class.std::complex", ptr %611, i64 %614
  %616 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %615)
  %617 = fdiv float %610, %616
  %618 = call noundef double @_ZSt3powIfiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %617, i32 noundef 2)
  %619 = fsub double 1.000000e+00, %618
  %620 = fptrunc double %619 to float
  store float %620, ptr %29, align 4, !tbaa !21
  %621 = load float, ptr %29, align 4, !tbaa !21
  %622 = call noundef float @_Z6r4_maxff(float noundef %621, float noundef 0.000000e+00)
  store float %622, ptr %29, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #11
  %623 = load float, ptr %29, align 4, !tbaa !21
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %51, float noundef %623, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %51, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #11
  %624 = load float, ptr %29, align 4, !tbaa !21
  %625 = fpext float %624 to double
  %626 = fmul double 5.000000e-02, %625
  %627 = load ptr, ptr %12, align 8, !tbaa !5
  %628 = load i32, ptr %16, align 4, !tbaa !9
  %629 = sub nsw i32 %628, 1
  %630 = sext i32 %629 to i64
  %631 = getelementptr inbounds %"class.std::complex", ptr %627, i64 %630
  %632 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %631)
  %633 = load ptr, ptr %30, align 8, !tbaa !5
  %634 = load i32, ptr %16, align 4, !tbaa !9
  %635 = sub nsw i32 %634, 1
  %636 = sext i32 %635 to i64
  %637 = getelementptr inbounds %"class.std::complex", ptr %633, i64 %636
  %638 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %637)
  %639 = fdiv float %632, %638
  %640 = call noundef double @_ZSt3powIfiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %639, i32 noundef 2)
  %641 = call double @llvm.fmuladd.f64(double %626, double %640, double 1.000000e+00)
  %642 = fptrunc double %641 to float
  store float %642, ptr %29, align 4, !tbaa !21
  %643 = load float, ptr %29, align 4, !tbaa !21
  %644 = fpext float %643 to double
  %645 = fcmp une double %644, 1.000000e+00
  br i1 %645, label %646, label %661

646:                                              ; preds = %599
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #11
  %647 = load ptr, ptr %12, align 8, !tbaa !5
  %648 = load i32, ptr %16, align 4, !tbaa !9
  %649 = sub nsw i32 %648, 1
  %650 = sext i32 %649 to i64
  %651 = getelementptr inbounds %"class.std::complex", ptr %647, i64 %650
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #11
  %652 = call <2 x float> @_ZSt4sqrtIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %28)
  %653 = getelementptr inbounds %"class.std::complex", ptr %53, i32 0, i32 0
  store <2 x float> %652, ptr %653, align 4
  %654 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %651, ptr noundef nonnull align 4 dereferenceable(8) %53)
  %655 = getelementptr inbounds %"class.std::complex", ptr %52, i32 0, i32 0
  store <2 x float> %654, ptr %655, align 4
  %656 = load ptr, ptr %12, align 8, !tbaa !5
  %657 = load i32, ptr %16, align 4, !tbaa !9
  %658 = sub nsw i32 %657, 1
  %659 = sext i32 %658 to i64
  %660 = getelementptr inbounds %"class.std::complex", ptr %656, i64 %659
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %660, ptr align 4 %52, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #11
  br label %691

661:                                              ; preds = %599
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #11
  %662 = load i32, ptr %10, align 4, !tbaa !9
  %663 = load i32, ptr %18, align 4, !tbaa !9
  %664 = sub nsw i32 %662, %663
  %665 = load ptr, ptr %8, align 8, !tbaa !5
  %666 = load i32, ptr %18, align 4, !tbaa !9
  %667 = sext i32 %666 to i64
  %668 = getelementptr inbounds %"class.std::complex", ptr %665, i64 %667
  %669 = load i32, ptr %16, align 4, !tbaa !9
  %670 = sub nsw i32 %669, 1
  %671 = load i32, ptr %9, align 4, !tbaa !9
  %672 = mul nsw i32 %670, %671
  %673 = sext i32 %672 to i64
  %674 = getelementptr inbounds %"class.std::complex", ptr %668, i64 %673
  %675 = call noundef float @_Z6scnrm2iPSt7complexIfEi(i32 noundef %664, ptr noundef %674, i32 noundef 1)
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %54, float noundef %675, float noundef 0.000000e+00)
  %676 = load ptr, ptr %12, align 8, !tbaa !5
  %677 = load i32, ptr %16, align 4, !tbaa !9
  %678 = sub nsw i32 %677, 1
  %679 = sext i32 %678 to i64
  %680 = getelementptr inbounds %"class.std::complex", ptr %676, i64 %679
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %680, ptr align 4 %54, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #11
  %681 = load ptr, ptr %12, align 8, !tbaa !5
  %682 = load i32, ptr %16, align 4, !tbaa !9
  %683 = sub nsw i32 %682, 1
  %684 = sext i32 %683 to i64
  %685 = getelementptr inbounds %"class.std::complex", ptr %681, i64 %684
  %686 = load ptr, ptr %30, align 8, !tbaa !5
  %687 = load i32, ptr %16, align 4, !tbaa !9
  %688 = sub nsw i32 %687, 1
  %689 = sext i32 %688 to i64
  %690 = getelementptr inbounds %"class.std::complex", ptr %686, i64 %689
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %690, ptr align 4 %685, i64 8, i1 false), !tbaa.struct !18
  br label %691

691:                                              ; preds = %661, %646
  br label %692

692:                                              ; preds = %691, %598, %586
  %693 = load i32, ptr %16, align 4, !tbaa !9
  %694 = add nsw i32 %693, 1
  store i32 %694, ptr %16, align 4, !tbaa !9
  br label %504, !llvm.loop !24

695:                                              ; preds = %504
  %696 = load ptr, ptr %8, align 8, !tbaa !5
  %697 = load i32, ptr %18, align 4, !tbaa !9
  %698 = sub nsw i32 %697, 1
  %699 = load i32, ptr %18, align 4, !tbaa !9
  %700 = sub nsw i32 %699, 1
  %701 = load i32, ptr %9, align 4, !tbaa !9
  %702 = mul nsw i32 %700, %701
  %703 = add nsw i32 %698, %702
  %704 = sext i32 %703 to i64
  %705 = getelementptr inbounds %"class.std::complex", ptr %696, i64 %704
  %706 = load ptr, ptr %12, align 8, !tbaa !5
  %707 = load i32, ptr %18, align 4, !tbaa !9
  %708 = sub nsw i32 %707, 1
  %709 = sext i32 %708 to i64
  %710 = getelementptr inbounds %"class.std::complex", ptr %706, i64 %709
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %710, ptr align 4 %705, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #11
  %711 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %24)
  %712 = getelementptr inbounds %"class.std::complex", ptr %55, i32 0, i32 0
  store <2 x float> %711, ptr %712, align 4
  %713 = load ptr, ptr %8, align 8, !tbaa !5
  %714 = load i32, ptr %18, align 4, !tbaa !9
  %715 = sub nsw i32 %714, 1
  %716 = load i32, ptr %18, align 4, !tbaa !9
  %717 = sub nsw i32 %716, 1
  %718 = load i32, ptr %9, align 4, !tbaa !9
  %719 = mul nsw i32 %717, %718
  %720 = add nsw i32 %715, %719
  %721 = sext i32 %720 to i64
  %722 = getelementptr inbounds %"class.std::complex", ptr %713, i64 %721
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %722, ptr align 4 %55, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #11
  br label %723

723:                                              ; preds = %695, %403
  br label %724

724:                                              ; preds = %723, %394
  br label %725

725:                                              ; preds = %724
  %726 = load i32, ptr %18, align 4, !tbaa !9
  %727 = add nsw i32 %726, 1
  store i32 %727, ptr %18, align 4, !tbaa !9
  br label %288, !llvm.loop !25

728:                                              ; preds = %288
  %729 = load ptr, ptr %30, align 8, !tbaa !5
  %730 = icmp eq ptr %729, null
  br i1 %730, label %732, label %731

731:                                              ; preds = %728
  call void @_ZdaPv(ptr noundef %729) #13
  br label %732

732:                                              ; preds = %731, %728
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #11
  ret void

733:                                              ; preds = %106
  %734 = load ptr, ptr %31, align 8
  %735 = load i32, ptr %32, align 4
  %736 = insertvalue { ptr, i32 } poison, ptr %734, 0
  %737 = insertvalue { ptr, i32 } %736, i32 %735, 1
  resume { ptr, i32 } %737
}

declare <2 x float> @_Z6csign2St7complexIfES0_(<2 x float>, <2 x float>) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZSt4sqrtIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8)) #8

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

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

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

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

declare i32 @__gxx_personality_v0(...)

declare void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; 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 uwtable
declare dso_local noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

declare void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef, <2 x float>, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare noundef float @_Z6scnrm2iPSt7complexIfEi(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZSt3absIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

declare noundef i32 @_Z6i4_minii(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIfiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z6r4_maxff(float noundef, float noundef) local_unnamed_addr #1

declare noundef float @_Z5cabs1St7complexIfE(<2 x float>) local_unnamed_addr #3

declare void @_Z5cscaliSt7complexIfEPS0_i(i32 noundef, <2 x float>, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5cqrdcPSt7complexIfEiiiS1_Pii(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr nocapture noundef %5, i32 noundef %6) local_unnamed_addr #8 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::complex", align 8
  %9 = alloca %"class.std::complex", align 8
  %10 = alloca %"class.std::complex", align 8
  %11 = alloca %"class.std::complex", align 8
  %12 = alloca %"class.std::complex", align 8
  %13 = alloca %"class.std::complex", align 4
  %14 = alloca %"class.std::complex", align 4
  %15 = alloca %"class.std::complex", align 8
  %16 = alloca %"class.std::complex", align 8
  %17 = alloca %"class.std::complex", align 8
  %18 = alloca %"class.std::complex", align 8
  %19 = alloca %"class.std::complex", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %20 = sext i32 %3 to i64
  %21 = icmp slt i32 %3, 0
  %22 = shl nsw i64 %20, 3
  %23 = select i1 %21, i64 -1, i64 %22
  %24 = call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #11
  %25 = icmp eq i32 %3, 0
  br i1 %25, label %.loopexit275.thread, label %26

26:                                               ; preds = %7
  %27 = getelementptr inbounds %"class.std::complex", ptr %24, i64 %20
  br label %28

28:                                               ; preds = %28, %26
  %29 = phi ptr [ %24, %26 ], [ %30, %28 ]
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = icmp eq ptr %30, %27
  br i1 %31, label %.loopexit275, label %28

.loopexit275:                                     ; preds = %28
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %._crit_edge, label %.preheader274

.loopexit275.thread:                              ; preds = %7
  %.not332 = icmp eq i32 %6, 0
  br i1 %.not332, label %._crit_edge, label %.loopexit

.preheader274:                                    ; preds = %.loopexit275
  %invariant.gep = getelementptr i8, ptr %5, i64 -4
  %.not260276 = icmp slt i32 %3, 1
  br i1 %.not260276, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader274
  %32 = sext i32 %1 to i64
  %33 = add nuw i32 %3, 1
  %wide.trip.count = zext i32 %33 to i64
  br label %.lr.ph

.preheader273:                                    ; preds = %55
  br i1 %.not260276, label %.loopexit, label %.lr.ph282.preheader

.lr.ph282.preheader:                              ; preds = %.preheader273
  %34 = sext i32 %1 to i64
  %35 = add nuw i32 %3, 1
  %wide.trip.count309 = zext i32 %35 to i64
  br label %.lr.ph282

.lr.ph:                                           ; preds = %.lr.ph.preheader, %55
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %55 ]
  %.0250277 = phi i32 [ 1, %.lr.ph.preheader ], [ %.1251, %55 ]
  %indvars305 = trunc i64 %indvars.iv to i32
  %36 = add nsw i64 %indvars.iv, -1
  %37 = getelementptr inbounds i32, ptr %5, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = icmp sgt i32 %38, 0
  %40 = icmp slt i32 %38, 0
  %41 = sub nsw i32 0, %indvars305
  %storemerge = select i1 %40, i32 %41, i32 %indvars305
  store i32 %storemerge, ptr %37, align 4, !tbaa !5
  br i1 %39, label %42, label %55

42:                                               ; preds = %.lr.ph
  %43 = zext i32 %.0250277 to i64
  %.not271 = icmp eq i64 %indvars.iv, %43
  br i1 %.not271, label %51, label %44

44:                                               ; preds = %42
  %45 = add nsw i32 %.0250277, -1
  %46 = mul nsw i32 %45, %1
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %47
  %49 = mul nsw i64 %36, %32
  %50 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %49
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %2, ptr noundef %48, i32 noundef 1, ptr noundef %50, i32 noundef 1)
  br label %51

51:                                               ; preds = %44, %42
  %52 = sext i32 %.0250277 to i64
  %gep = getelementptr i32, ptr %invariant.gep, i64 %52
  %53 = load i32, ptr %gep, align 4, !tbaa !5
  store i32 %53, ptr %37, align 4, !tbaa !5
  store i32 %indvars305, ptr %gep, align 4, !tbaa !5
  %54 = add nsw i32 %.0250277, 1
  br label %55

55:                                               ; preds = %.lr.ph, %51
  %.1251 = phi i32 [ %54, %51 ], [ %.0250277, %.lr.ph ]
  %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 %.preheader273, label %.lr.ph, !llvm.loop !9

.lr.ph282:                                        ; preds = %.lr.ph282.preheader, %._crit_edge330
  %indvars.iv306 = phi i64 [ 1, %.lr.ph282.preheader ], [ %indvars.iv.next307, %._crit_edge330 ]
  %.0253280 = phi i32 [ %3, %.lr.ph282.preheader ], [ %.1254, %._crit_edge330 ]
  %56 = sub nsw i64 %20, %indvars.iv306
  %57 = getelementptr inbounds i32, ptr %5, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp slt i32 %58, 0
  br i1 %59, label %60, label %._crit_edge330

60:                                               ; preds = %.lr.ph282
  %61 = sub nsw i32 0, %58
  store i32 %61, ptr %57, align 4, !tbaa !5
  %62 = trunc i64 %56 to i32
  %63 = add i32 %62, 1
  %.not270 = icmp eq i32 %63, %.0253280
  %.pre331 = add nsw i32 %.0253280, -1
  br i1 %.not270, label %._crit_edge330, label %64

64:                                               ; preds = %60
  %65 = mul nsw i32 %.pre331, %1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %66
  %68 = mul nsw i64 %56, %34
  %69 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %68
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %2, ptr noundef %67, i32 noundef 1, ptr noundef %69, i32 noundef 1)
  %70 = sext i32 %.pre331 to i64
  %71 = getelementptr inbounds i32, ptr %5, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = load i32, ptr %57, align 4, !tbaa !5
  store i32 %73, ptr %71, align 4, !tbaa !5
  store i32 %72, ptr %57, align 4, !tbaa !5
  br label %._crit_edge330

._crit_edge330:                                   ; preds = %60, %64, %.lr.ph282
  %.1254 = phi i32 [ %.0253280, %.lr.ph282 ], [ %.pre331, %64 ], [ %.pre331, %60 ]
  %indvars.iv.next307 = add nuw nsw i64 %indvars.iv306, 1
  %exitcond310.not = icmp eq i64 %indvars.iv.next307, %wide.trip.count309
  br i1 %exitcond310.not, label %.loopexit, label %.lr.ph282, !llvm.loop !11

.loopexit:                                        ; preds = %._crit_edge330, %.preheader274, %.loopexit275.thread, %.preheader273
  %.2255 = phi i32 [ %3, %.preheader273 ], [ 0, %.loopexit275.thread ], [ %3, %.preheader274 ], [ %.1254, %._crit_edge330 ]
  %.2252 = phi i32 [ %.1251, %.preheader273 ], [ 1, %.loopexit275.thread ], [ 1, %.preheader274 ], [ %.1251, %._crit_edge330 ]
  %.not262284 = icmp sgt i32 %.2252, %.2255
  br i1 %.not262284, label %._crit_edge, label %.lr.ph286.preheader

.lr.ph286.preheader:                              ; preds = %.loopexit
  %74 = sext i32 %.2252 to i64
  %75 = sext i32 %1 to i64
  %76 = add i32 %.2255, 1
  br label %.lr.ph286

.lr.ph286:                                        ; preds = %.lr.ph286.preheader, %.lr.ph286
  %indvars.iv311 = phi i64 [ %74, %.lr.ph286.preheader ], [ %indvars.iv.next312, %.lr.ph286 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  %77 = add nsw i64 %indvars.iv311, -1
  %78 = mul nsw i64 %77, %75
  %79 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %78
  %80 = call noundef float @_Z6scnrm2iPSt7complexIfEi(i32 noundef %2, ptr noundef %79, i32 noundef 1)
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %80, float noundef 0.000000e+00)
  %81 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %77
  %82 = load i64, ptr %10, align 8, !tbaa !12
  store i64 %82, ptr %81, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  %83 = getelementptr inbounds %"class.std::complex", ptr %24, i64 %77
  store i64 %82, ptr %83, align 4, !tbaa !12
  %indvars.iv.next312 = add nsw i64 %indvars.iv311, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next312 to i32
  %exitcond314.not = icmp eq i32 %76, %lftr.wideiv
  br i1 %exitcond314.not, label %._crit_edge, label %.lr.ph286, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph286, %.loopexit275.thread, %.loopexit275, %.loopexit
  %.2252343 = phi i32 [ %.2252, %.loopexit ], [ 1, %.loopexit275 ], [ 1, %.loopexit275.thread ], [ %.2252, %.lr.ph286 ]
  %.2255342 = phi i32 [ %.2255, %.loopexit ], [ 0, %.loopexit275 ], [ 0, %.loopexit275.thread ], [ %.2255, %.lr.ph286 ]
  %84 = call noundef i32 @_Z6i4_minii(i32 noundef %2, i32 noundef %3)
  %.not263299 = icmp slt i32 %84, 1
  br i1 %.not263299, label %._crit_edge304, label %.lr.ph303

.lr.ph303:                                        ; preds = %._crit_edge
  %invariant.gep287 = getelementptr i8, ptr %4, i64 -8
  %85 = add i32 %.2255342, 1
  %86 = sext i32 %.2255342 to i64
  %87 = sext i32 %1 to i64
  %88 = sext i32 %.2252343 to i64
  %89 = zext i32 %2 to i64
  %90 = zext i32 %2 to i64
  %91 = add nuw i32 %84, 1
  %wide.trip.count328 = zext i32 %91 to i64
  %wide.trip.count320 = zext i32 %85 to i64
  %wide.trip.count325 = zext i32 %3 to i64
  br label %92

92:                                               ; preds = %.lr.ph303, %189
  %indvars.iv315 = phi i64 [ 1, %.lr.ph303 ], [ %indvars.iv.next316, %189 ]
  %.not264 = icmp sge i64 %indvars.iv315, %88
  %93 = icmp slt i64 %indvars.iv315, %86
  %or.cond = and i1 %.not264, %93
  br i1 %or.cond, label %.preheader.preheader, label %122

.preheader.preheader:                             ; preds = %92
  %94 = trunc nuw nsw i64 %indvars.iv315 to i32
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %100
  %indvars.iv317 = phi i64 [ %indvars.iv315, %.preheader.preheader ], [ %indvars.iv.next318, %100 ]
  %.0246290 = phi i32 [ %94, %.preheader.preheader ], [ %.1247, %100 ]
  %.0248289 = phi float [ 0.000000e+00, %.preheader.preheader ], [ %.1249, %100 ]
  %gep288 = getelementptr %"class.std::complex", ptr %invariant.gep287, i64 %indvars.iv317
  %95 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %gep288)
  %96 = fcmp olt float %.0248289, %95
  br i1 %96, label %97, label %100

97:                                               ; preds = %.preheader
  %98 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %gep288)
  %99 = trunc nuw nsw i64 %indvars.iv317 to i32
  br label %100

100:                                              ; preds = %.preheader, %97
  %.1249 = phi float [ %98, %97 ], [ %.0248289, %.preheader ]
  %.1247 = phi i32 [ %99, %97 ], [ %.0246290, %.preheader ]
  %indvars.iv.next318 = add nuw nsw i64 %indvars.iv317, 1
  %exitcond321.not = icmp eq i64 %indvars.iv.next318, %wide.trip.count320
  br i1 %exitcond321.not, label %101, label %.preheader, !llvm.loop !14

101:                                              ; preds = %100
  %102 = zext i32 %.1247 to i64
  %.not266 = icmp eq i64 %indvars.iv315, %102
  br i1 %.not266, label %122, label %103

103:                                              ; preds = %101
  %104 = add nsw i64 %indvars.iv315, -1
  %105 = mul nsw i64 %104, %87
  %106 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %105
  %107 = add nsw i32 %.1247, -1
  %108 = mul nsw i32 %107, %1
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %109
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %2, ptr noundef %106, i32 noundef 1, ptr noundef %110, i32 noundef 1)
  %111 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %104
  %112 = sext i32 %107 to i64
  %113 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %112
  %114 = load i64, ptr %111, align 4, !tbaa !12
  store i64 %114, ptr %113, align 4, !tbaa !12
  %115 = getelementptr inbounds %"class.std::complex", ptr %24, i64 %104
  %116 = getelementptr inbounds %"class.std::complex", ptr %24, i64 %112
  %117 = load i64, ptr %115, align 4, !tbaa !12
  store i64 %117, ptr %116, align 4, !tbaa !12
  %118 = getelementptr inbounds i32, ptr %5, i64 %112
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = getelementptr inbounds i32, ptr %5, i64 %104
  %121 = load i32, ptr %120, align 4, !tbaa !5
  store i32 %121, ptr %118, align 4, !tbaa !5
  store i32 %119, ptr %120, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %101, %103, %92
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %123 = add nsw i64 %indvars.iv315, -1
  %124 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %123
  %125 = load i64, ptr %11, align 8, !tbaa !12
  store i64 %125, ptr %124, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  %.not267 = icmp eq i64 %indvars.iv315, %90
  br i1 %.not267, label %189, label %126

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #10
  %127 = sub nsw i64 %89, %indvars.iv315
  %128 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %indvars.iv315
  %129 = getelementptr inbounds i8, ptr %128, i64 -8
  %130 = mul nsw i64 %123, %87
  %131 = getelementptr inbounds %"class.std::complex", ptr %129, i64 %130
  %132 = trunc i64 %127 to i32
  %133 = add i32 %132, 1
  %134 = call noundef float @_Z6scnrm2iPSt7complexIfEi(i32 noundef %133, ptr noundef nonnull %131, i32 noundef 1)
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %134, float noundef 0.000000e+00)
  %135 = load i64, ptr %12, align 8, !tbaa !12
  store i64 %135, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  %.sroa.012.0.copyload.cast = bitcast i64 %135 to <2 x float>
  %136 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.012.0.copyload.cast)
  %137 = fcmp une float %136, 0.000000e+00
  br i1 %137, label %138, label %189

138:                                              ; preds = %126
  %139 = getelementptr %"class.std::complex", ptr %0, i64 %130
  %140 = getelementptr %"class.std::complex", ptr %139, i64 %123
  %.sroa.011.0.copyload = load <2 x float>, ptr %140, align 4, !tbaa !12
  %141 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.011.0.copyload)
  %142 = fcmp une float %141, 0.000000e+00
  br i1 %142, label %143, label %145

143:                                              ; preds = %138
  %.sroa.09.0.copyload = load <2 x float>, ptr %8, align 8, !tbaa !12
  %.sroa.08.0.copyload = load <2 x float>, ptr %140, align 4, !tbaa !12
  %144 = call <2 x float> @_Z6csign2St7complexIfES0_(<2 x float> %.sroa.09.0.copyload, <2 x float> %.sroa.08.0.copyload)
  store <2 x float> %144, ptr %8, align 8, !tbaa !12
  br label %145

145:                                              ; preds = %143, %138
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #10
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %146 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %146, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  call void @_Z5cscaliSt7complexIfEPS0_i(i32 noundef %133, <2 x float> %146, ptr noundef nonnull %131, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #10
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %147 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %140)
  store <2 x float> %147, ptr %140, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  %.not268.not293 = icmp slt i64 %indvars.iv315, %20
  %148 = bitcast <2 x float> %147 to i64
  br i1 %.not268.not293, label %.lr.ph297.preheader, label %._crit_edge298

.lr.ph297.preheader:                              ; preds = %145
  %invariant.gep344 = getelementptr %"class.std::complex", ptr %0, i64 %123
  %149 = trunc i64 %127 to i32
  br label %.lr.ph297

.lr.ph297:                                        ; preds = %.lr.ph297.preheader, %186
  %indvars.iv322 = phi i64 [ %indvars.iv315, %.lr.ph297.preheader ], [ %indvars.iv.next323, %186 ]
  %indvars.iv.next323 = add nuw nsw i64 %indvars.iv322, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #10
  %150 = mul nsw i64 %indvars.iv322, %87
  %151 = getelementptr inbounds %"class.std::complex", ptr %129, i64 %150
  %152 = call <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef %133, ptr noundef nonnull %131, i32 noundef 1, ptr noundef nonnull %151, i32 noundef 1)
  store <2 x float> %152, ptr %16, align 8
  %153 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %153, ptr %15, align 8
  %154 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %140)
  store <2 x float> %154, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %133, <2 x float> %154, ptr noundef nonnull %131, i32 noundef 1, ptr noundef nonnull %151, i32 noundef 1)
  %155 = icmp sge i64 %indvars.iv.next323, %88
  %.not269 = icmp slt i64 %indvars.iv322, %86
  %or.cond272 = and i1 %.not269, %155
  br i1 %or.cond272, label %156, label %186

156:                                              ; preds = %.lr.ph297
  %157 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %indvars.iv322
  %.sroa.02.0.copyload = load <2 x float>, ptr %157, align 4, !tbaa !12
  %158 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.02.0.copyload)
  %159 = fcmp oeq float %158, 0.000000e+00
  br i1 %159, label %186, label %160

160:                                              ; preds = %156
  %gep345 = getelementptr %"class.std::complex", ptr %invariant.gep344, i64 %150
  %161 = call noundef float @_ZSt3absIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %gep345)
  %162 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %157)
  %163 = fdiv float %161, %162
  %164 = call noundef double @_ZSt3powIfiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %163, i32 noundef 2)
  %165 = fsub double 1.000000e+00, %164
  %166 = fptrunc double %165 to float
  %167 = call noundef float @_Z6r4_maxff(float noundef %166, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #10
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %167, float noundef 0.000000e+00)
  %168 = load i64, ptr %17, align 8, !tbaa !12
  store i64 %168, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  %169 = fpext float %167 to double
  %170 = fmul double %169, 5.000000e-02
  %171 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %157)
  %172 = getelementptr inbounds %"class.std::complex", ptr %24, i64 %indvars.iv322
  %173 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %172)
  %174 = fdiv float %171, %173
  %175 = call noundef double @_ZSt3powIfiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %174, i32 noundef 2)
  %176 = call double @llvm.fmuladd.f64(double %170, double %175, double 1.000000e+00)
  %177 = fptrunc double %176 to float
  %178 = fcmp une float %177, 1.000000e+00
  br i1 %178, label %179, label %182

179:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  %180 = call <2 x float> @_ZSt4sqrtIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %180, ptr %18, align 8
  %181 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %157, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %181, ptr %157, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  br label %186

182:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #10
  %183 = getelementptr inbounds %"class.std::complex", ptr %128, i64 %150
  %184 = call noundef float @_Z6scnrm2iPSt7complexIfEi(i32 noundef %149, ptr noundef nonnull %183, i32 noundef 1)
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %184, float noundef 0.000000e+00)
  %185 = load i64, ptr %19, align 8, !tbaa !12
  store i64 %185, ptr %157, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  store i64 %185, ptr %172, align 4, !tbaa !12
  br label %186

186:                                              ; preds = %179, %182, %156, %.lr.ph297
  %exitcond326.not = icmp eq i64 %indvars.iv.next323, %wide.trip.count325
  br i1 %exitcond326.not, label %._crit_edge298.loopexit, label %.lr.ph297, !llvm.loop !15

._crit_edge298.loopexit:                          ; preds = %186
  %.pre = load i64, ptr %140, align 4, !tbaa !12
  br label %._crit_edge298

._crit_edge298:                                   ; preds = %._crit_edge298.loopexit, %145
  %187 = phi i64 [ %.pre, %._crit_edge298.loopexit ], [ %148, %145 ]
  store i64 %187, ptr %124, align 4, !tbaa !12
  %188 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %188, ptr %140, align 4, !tbaa !12
  br label %189

189:                                              ; preds = %122, %._crit_edge298, %126
  %indvars.iv.next316 = add nuw nsw i64 %indvars.iv315, 1
  %exitcond329.not = icmp eq i64 %indvars.iv.next316, %wide.trip.count328
  br i1 %exitcond329.not, label %._crit_edge304, label %92, !llvm.loop !16

._crit_edge304:                                   ; preds = %189, %._crit_edge
  call void @_ZdaPv(ptr noundef nonnull %24) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  ret void
}

declare <2 x float> @_Z6csign2St7complexIfES0_(<2 x float>, <2 x float>) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZSt4sqrtIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

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 = { 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 #3 = { "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 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 = { 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 #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { mustprogress 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 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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