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

; 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

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

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

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

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

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

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

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

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

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

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

declare noundef i32 @_Z6icamaxiPSt7complexIfEi(i32 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #7

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5chpfaPSt7complexIfEiPi(ptr noundef %0, i32 noundef %1, ptr noundef %2) #8 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca %"class.std::complex", align 4
  %9 = alloca %"class.std::complex", align 4
  %10 = alloca float, align 4
  %11 = alloca %"class.std::complex", align 4
  %12 = alloca %"class.std::complex", align 4
  %13 = alloca float, align 4
  %14 = alloca %"class.std::complex", 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 i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"class.std::complex", align 4
  %39 = alloca %"class.std::complex", align 4
  %40 = alloca float, align 4
  %41 = alloca i8, align 1
  %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 float, 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
  %56 = alloca %"class.std::complex", align 4
  %57 = alloca %"class.std::complex", align 4
  %58 = alloca %"class.std::complex", align 4
  %59 = alloca %"class.std::complex", align 4
  %60 = alloca %"class.std::complex", align 4
  %61 = alloca %"class.std::complex", align 4
  %62 = alloca %"class.std::complex", align 4
  %63 = alloca %"class.std::complex", align 4
  %64 = alloca %"class.std::complex", align 4
  %65 = alloca %"class.std::complex", align 4
  %66 = alloca %"class.std::complex", align 4
  %67 = alloca %"class.std::complex", align 4
  %68 = alloca %"class.std::complex", align 4
  %69 = alloca %"class.std::complex", align 4
  %70 = alloca %"class.std::complex", align 4
  %71 = alloca %"class.std::complex", align 4
  %72 = alloca %"class.std::complex", align 4
  %73 = alloca %"class.std::complex", align 4
  %74 = alloca %"class.std::complex", align 4
  %75 = alloca %"class.std::complex", align 4
  %76 = alloca %"class.std::complex", align 4
  %77 = alloca %"class.std::complex", align 4
  %78 = alloca %"class.std::complex", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  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 %9) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %38, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %39, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %42, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %79 = call double @sqrt(double noundef 1.700000e+01) #9
  %80 = fadd double 1.000000e+00, %79
  %81 = fdiv double %80, 8.000000e+00
  %82 = fptrunc double %81 to float
  store float %82, ptr %10, align 4, !tbaa !11
  store i32 0, ptr %24, align 4, !tbaa !9
  %83 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %83, ptr %31, align 4, !tbaa !9
  %84 = load i32, ptr %5, align 4, !tbaa !9
  %85 = load i32, ptr %5, align 4, !tbaa !9
  %86 = sub nsw i32 %85, 1
  %87 = mul nsw i32 %84, %86
  %88 = sdiv i32 %87, 2
  store i32 %88, ptr %17, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %709, %263, %3
  %90 = load i32, ptr %31, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %89
  br label %713

93:                                               ; preds = %89
  %94 = load i32, ptr %31, align 4, !tbaa !9
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %108

96:                                               ; preds = %93
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds i32, ptr %97, i64 0
  store i32 1, ptr %98, align 4, !tbaa !9
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.std::complex", ptr %99, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %100, i64 8, i1 false), !tbaa.struct !13
  %101 = getelementptr inbounds %"class.std::complex", ptr %43, i32 0, i32 0
  %102 = load <2 x float>, ptr %101, align 4
  %103 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %102)
  %104 = fpext float %103 to double
  %105 = fcmp oeq double %104, 0.000000e+00
  br i1 %105, label %106, label %107

106:                                              ; preds = %96
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %106, %96
  br label %713

108:                                              ; preds = %93
  %109 = load i32, ptr %31, align 4, !tbaa !9
  %110 = sub nsw i32 %109, 1
  store i32 %110, ptr %33, align 4, !tbaa !9
  %111 = load i32, ptr %17, align 4, !tbaa !9
  %112 = load i32, ptr %31, align 4, !tbaa !9
  %113 = add nsw i32 %111, %112
  store i32 %113, ptr %32, align 4, !tbaa !9
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = load i32, ptr %32, align 4, !tbaa !9
  %116 = sub nsw i32 %115, 1
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds %"class.std::complex", ptr %114, i64 %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %118, i64 8, i1 false), !tbaa.struct !13
  %119 = getelementptr inbounds %"class.std::complex", ptr %44, i32 0, i32 0
  %120 = load <2 x float>, ptr %119, align 4
  %121 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %120)
  store float %121, ptr %7, align 4, !tbaa !11
  %122 = load i32, ptr %31, align 4, !tbaa !9
  %123 = sub nsw i32 %122, 1
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = load i32, ptr %17, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds %"class.std::complex", ptr %124, i64 %126
  %128 = call noundef i32 @_Z6icamaxiPSt7complexIfEi(i32 noundef %123, ptr noundef %127, i32 noundef 1)
  store i32 %128, ptr %20, align 4, !tbaa !9
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = load i32, ptr %20, align 4, !tbaa !9
  %131 = add nsw i32 %129, %130
  store i32 %131, ptr %23, align 4, !tbaa !9
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load i32, ptr %23, align 4, !tbaa !9
  %134 = sub nsw i32 %133, 1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds %"class.std::complex", ptr %132, i64 %135
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %136, i64 8, i1 false), !tbaa.struct !13
  %137 = getelementptr inbounds %"class.std::complex", ptr %45, i32 0, i32 0
  %138 = load <2 x float>, ptr %137, align 4
  %139 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %138)
  store float %139, ptr %13, align 4, !tbaa !11
  %140 = load float, ptr %10, align 4, !tbaa !11
  %141 = load float, ptr %13, align 4, !tbaa !11
  %142 = fmul float %140, %141
  %143 = load float, ptr %7, align 4, !tbaa !11
  %144 = fcmp ole float %142, %143
  br i1 %144, label %145, label %146

145:                                              ; preds = %108
  store i32 1, ptr %37, align 4, !tbaa !9
  store i8 0, ptr %41, align 1, !tbaa !15
  br label %238

146:                                              ; preds = %108
  store float 0.000000e+00, ptr %40, align 4, !tbaa !11
  %147 = load i32, ptr %20, align 4, !tbaa !9
  %148 = load i32, ptr %20, align 4, !tbaa !9
  %149 = sub nsw i32 %148, 1
  %150 = mul nsw i32 %147, %149
  %151 = sdiv i32 %150, 2
  store i32 %151, ptr %19, align 4, !tbaa !9
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = load i32, ptr %20, align 4, !tbaa !9
  %154 = mul nsw i32 2, %153
  %155 = add nsw i32 %152, %154
  store i32 %155, ptr %22, align 4, !tbaa !9
  %156 = load i32, ptr %20, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %25, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %176, %146
  %159 = load i32, ptr %25, align 4, !tbaa !9
  %160 = load i32, ptr %31, align 4, !tbaa !9
  %161 = icmp sle i32 %159, %160
  br i1 %161, label %162, label %179

162:                                              ; preds = %158
  %163 = load float, ptr %40, align 4, !tbaa !11
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = load i32, ptr %22, align 4, !tbaa !9
  %166 = sub nsw i32 %165, 1
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds %"class.std::complex", ptr %164, i64 %167
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %168, i64 8, i1 false), !tbaa.struct !13
  %169 = getelementptr inbounds %"class.std::complex", ptr %46, i32 0, i32 0
  %170 = load <2 x float>, ptr %169, align 4
  %171 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %170)
  %172 = call noundef float @_Z6r4_maxff(float noundef %163, float noundef %171)
  store float %172, ptr %40, align 4, !tbaa !11
  %173 = load i32, ptr %22, align 4, !tbaa !9
  %174 = load i32, ptr %25, align 4, !tbaa !9
  %175 = add nsw i32 %173, %174
  store i32 %175, ptr %22, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %162
  %177 = load i32, ptr %25, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %25, align 4, !tbaa !9
  br label %158, !llvm.loop !17

179:                                              ; preds = %158
  %180 = load i32, ptr %20, align 4, !tbaa !9
  %181 = icmp ne i32 %180, 1
  br i1 %181, label %182, label %203

182:                                              ; preds = %179
  %183 = load i32, ptr %20, align 4, !tbaa !9
  %184 = sub nsw i32 %183, 1
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = load i32, ptr %19, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds %"class.std::complex", ptr %185, i64 %187
  %189 = call noundef i32 @_Z6icamaxiPSt7complexIfEi(i32 noundef %184, ptr noundef %188, i32 noundef 1)
  store i32 %189, ptr %29, align 4, !tbaa !9
  %190 = load i32, ptr %29, align 4, !tbaa !9
  %191 = load i32, ptr %19, align 4, !tbaa !9
  %192 = add nsw i32 %190, %191
  store i32 %192, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = load i32, ptr %30, align 4, !tbaa !9
  %195 = sub nsw i32 %194, 1
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds %"class.std::complex", ptr %193, i64 %196
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %197, i64 8, i1 false), !tbaa.struct !13
  %198 = getelementptr inbounds %"class.std::complex", ptr %48, i32 0, i32 0
  %199 = load <2 x float>, ptr %198, align 4
  %200 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %199)
  store float %200, ptr %47, align 4, !tbaa !11
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %47)
  %202 = load float, ptr %201, align 4, !tbaa !11
  store float %202, ptr %40, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %203

203:                                              ; preds = %182, %179
  %204 = load i32, ptr %20, align 4, !tbaa !9
  %205 = load i32, ptr %19, align 4, !tbaa !9
  %206 = add nsw i32 %204, %205
  store i32 %206, ptr %21, align 4, !tbaa !9
  %207 = load float, ptr %10, align 4, !tbaa !11
  %208 = load float, ptr %40, align 4, !tbaa !11
  %209 = fmul float %207, %208
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = load i32, ptr %21, align 4, !tbaa !9
  %212 = sub nsw i32 %211, 1
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds %"class.std::complex", ptr %210, i64 %213
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %214, i64 8, i1 false), !tbaa.struct !13
  %215 = getelementptr inbounds %"class.std::complex", ptr %49, i32 0, i32 0
  %216 = load <2 x float>, ptr %215, align 4
  %217 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %216)
  %218 = fcmp ole float %209, %217
  br i1 %218, label %219, label %220

219:                                              ; preds = %203
  store i32 1, ptr %37, align 4, !tbaa !9
  store i8 1, ptr %41, align 1, !tbaa !15
  br label %237

220:                                              ; preds = %203
  %221 = load float, ptr %10, align 4, !tbaa !11
  %222 = load float, ptr %13, align 4, !tbaa !11
  %223 = fmul float %221, %222
  %224 = load float, ptr %13, align 4, !tbaa !11
  %225 = load float, ptr %40, align 4, !tbaa !11
  %226 = fdiv float %224, %225
  %227 = fmul float %223, %226
  %228 = load float, ptr %7, align 4, !tbaa !11
  %229 = fcmp ole float %227, %228
  br i1 %229, label %230, label %231

230:                                              ; preds = %220
  store i32 1, ptr %37, align 4, !tbaa !9
  store i8 0, ptr %41, align 1, !tbaa !15
  br label %236

231:                                              ; preds = %220
  store i32 2, ptr %37, align 4, !tbaa !9
  %232 = load i32, ptr %20, align 4, !tbaa !9
  %233 = load i32, ptr %33, align 4, !tbaa !9
  %234 = icmp ne i32 %232, %233
  %235 = zext i1 %234 to i8
  store i8 %235, ptr %41, align 1, !tbaa !15
  br label %236

236:                                              ; preds = %231, %230
  br label %237

237:                                              ; preds = %236, %219
  br label %238

238:                                              ; preds = %237, %145
  %239 = load float, ptr %7, align 4, !tbaa !11
  %240 = load float, ptr %13, align 4, !tbaa !11
  %241 = call noundef float @_Z6r4_maxff(float noundef %239, float noundef %240)
  %242 = fpext float %241 to double
  %243 = fcmp oeq double %242, 0.000000e+00
  br i1 %243, label %244, label %267

244:                                              ; preds = %238
  %245 = load i32, ptr %31, align 4, !tbaa !9
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = load i32, ptr %31, align 4, !tbaa !9
  %248 = sub nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds i32, ptr %246, i64 %249
  store i32 %245, ptr %250, align 4, !tbaa !9
  %251 = load i32, ptr %31, align 4, !tbaa !9
  store i32 %251, ptr %24, align 4, !tbaa !9
  %252 = load i32, ptr %17, align 4, !tbaa !9
  %253 = load i32, ptr %31, align 4, !tbaa !9
  %254 = sub nsw i32 %253, 1
  %255 = sub nsw i32 %252, %254
  store i32 %255, ptr %17, align 4, !tbaa !9
  %256 = load i32, ptr %37, align 4, !tbaa !9
  %257 = icmp eq i32 %256, 2
  br i1 %257, label %258, label %263

258:                                              ; preds = %244
  %259 = load i32, ptr %17, align 4, !tbaa !9
  %260 = load i32, ptr %31, align 4, !tbaa !9
  %261 = sub nsw i32 %260, 2
  %262 = sub nsw i32 %259, %261
  store i32 %262, ptr %17, align 4, !tbaa !9
  br label %263

263:                                              ; preds = %258, %244
  %264 = load i32, ptr %31, align 4, !tbaa !9
  %265 = load i32, ptr %37, align 4, !tbaa !9
  %266 = sub nsw i32 %264, %265
  store i32 %266, ptr %31, align 4, !tbaa !9
  br label %89, !llvm.loop !19

267:                                              ; preds = %238
  %268 = load i32, ptr %37, align 4, !tbaa !9
  %269 = icmp ne i32 %268, 2
  br i1 %269, label %270, label %419

270:                                              ; preds = %267
  %271 = load i8, ptr %41, align 1, !tbaa !15, !range !20, !noundef !21
  %272 = trunc i8 %271 to i1
  br i1 %272, label %273, label %332

273:                                              ; preds = %270
  %274 = load i32, ptr %20, align 4, !tbaa !9
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = load i32, ptr %19, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds %"class.std::complex", ptr %275, i64 %277
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  %280 = load i32, ptr %17, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds %"class.std::complex", ptr %279, i64 %281
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %274, ptr noundef %278, i32 noundef 1, ptr noundef %282, i32 noundef 1)
  %283 = load i32, ptr %17, align 4, !tbaa !9
  %284 = load i32, ptr %20, align 4, !tbaa !9
  %285 = add nsw i32 %283, %284
  store i32 %285, ptr %22, align 4, !tbaa !9
  %286 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %286, ptr %26, align 4, !tbaa !9
  br label %287

287:                                              ; preds = %328, %273
  %288 = load i32, ptr %26, align 4, !tbaa !9
  %289 = load i32, ptr %31, align 4, !tbaa !9
  %290 = icmp sle i32 %288, %289
  br i1 %290, label %291, label %331

291:                                              ; preds = %287
  %292 = load i32, ptr %31, align 4, !tbaa !9
  %293 = load i32, ptr %20, align 4, !tbaa !9
  %294 = add nsw i32 %292, %293
  %295 = load i32, ptr %26, align 4, !tbaa !9
  %296 = sub nsw i32 %294, %295
  store i32 %296, ptr %25, align 4, !tbaa !9
  %297 = load i32, ptr %17, align 4, !tbaa !9
  %298 = load i32, ptr %25, align 4, !tbaa !9
  %299 = add nsw i32 %297, %298
  store i32 %299, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #9
  %300 = load ptr, ptr %4, align 8, !tbaa !5
  %301 = load i32, ptr %27, align 4, !tbaa !9
  %302 = sub nsw i32 %301, 1
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds %"class.std::complex", ptr %300, i64 %303
  %305 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %304)
  %306 = getelementptr inbounds %"class.std::complex", ptr %50, i32 0, i32 0
  store <2 x float> %305, ptr %306, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %50, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #9
  %307 = load ptr, ptr %4, align 8, !tbaa !5
  %308 = load i32, ptr %22, align 4, !tbaa !9
  %309 = sub nsw i32 %308, 1
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds %"class.std::complex", ptr %307, i64 %310
  %312 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %311)
  %313 = getelementptr inbounds %"class.std::complex", ptr %51, i32 0, i32 0
  store <2 x float> %312, ptr %313, align 4
  %314 = load ptr, ptr %4, align 8, !tbaa !5
  %315 = load i32, ptr %27, align 4, !tbaa !9
  %316 = sub nsw i32 %315, 1
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds %"class.std::complex", ptr %314, i64 %317
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %318, ptr align 4 %51, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  %319 = load ptr, ptr %4, align 8, !tbaa !5
  %320 = load i32, ptr %22, align 4, !tbaa !9
  %321 = sub nsw i32 %320, 1
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds %"class.std::complex", ptr %319, i64 %322
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %323, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !13
  %324 = load i32, ptr %22, align 4, !tbaa !9
  %325 = load i32, ptr %25, align 4, !tbaa !9
  %326 = sub nsw i32 %325, 1
  %327 = sub nsw i32 %324, %326
  store i32 %327, ptr %22, align 4, !tbaa !9
  br label %328

328:                                              ; preds = %291
  %329 = load i32, ptr %26, align 4, !tbaa !9
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %26, align 4, !tbaa !9
  br label %287, !llvm.loop !22

331:                                              ; preds = %287
  br label %332

332:                                              ; preds = %331, %270
  %333 = load i32, ptr %17, align 4, !tbaa !9
  %334 = load i32, ptr %31, align 4, !tbaa !9
  %335 = sub nsw i32 %334, 1
  %336 = sub nsw i32 %333, %335
  store i32 %336, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %26, align 4, !tbaa !9
  br label %337

337:                                              ; preds = %398, %332
  %338 = load i32, ptr %26, align 4, !tbaa !9
  %339 = load i32, ptr %33, align 4, !tbaa !9
  %340 = icmp sle i32 %338, %339
  br i1 %340, label %341, label %401

341:                                              ; preds = %337
  %342 = load i32, ptr %31, align 4, !tbaa !9
  %343 = load i32, ptr %26, align 4, !tbaa !9
  %344 = sub nsw i32 %342, %343
  store i32 %344, ptr %25, align 4, !tbaa !9
  %345 = load i32, ptr %17, align 4, !tbaa !9
  %346 = load i32, ptr %25, align 4, !tbaa !9
  %347 = add nsw i32 %345, %346
  store i32 %347, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #9
  %348 = load ptr, ptr %4, align 8, !tbaa !5
  %349 = load i32, ptr %27, align 4, !tbaa !9
  %350 = sub nsw i32 %349, 1
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds %"class.std::complex", ptr %348, i64 %351
  %353 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %352)
  %354 = getelementptr inbounds %"class.std::complex", ptr %53, i32 0, i32 0
  store <2 x float> %353, ptr %354, align 4
  %355 = load ptr, ptr %4, align 8, !tbaa !5
  %356 = load i32, ptr %32, 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
  %360 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(8) %359)
  %361 = getelementptr inbounds %"class.std::complex", ptr %52, i32 0, i32 0
  store <2 x float> %360, ptr %361, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %52, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #9
  %362 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %38)
  %363 = getelementptr inbounds %"class.std::complex", ptr %54, i32 0, i32 0
  store <2 x float> %362, ptr %363, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %54, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #9
  %364 = load i32, ptr %25, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !13
  %365 = load ptr, ptr %4, align 8, !tbaa !5
  %366 = load i32, ptr %17, align 4, !tbaa !9
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds %"class.std::complex", ptr %365, i64 %367
  %369 = load ptr, ptr %4, align 8, !tbaa !5
  %370 = load i32, ptr %15, align 4, !tbaa !9
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds %"class.std::complex", ptr %369, i64 %371
  %373 = getelementptr inbounds %"class.std::complex", ptr %55, i32 0, i32 0
  %374 = load <2 x float>, ptr %373, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %364, <2 x float> %374, ptr noundef %368, i32 noundef 1, ptr noundef %372, i32 noundef 1)
  %375 = load i32, ptr %15, align 4, !tbaa !9
  %376 = load i32, ptr %25, align 4, !tbaa !9
  %377 = add nsw i32 %375, %376
  store i32 %377, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #9
  %378 = load ptr, ptr %4, align 8, !tbaa !5
  %379 = load i32, ptr %16, align 4, !tbaa !9
  %380 = sub nsw i32 %379, 1
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds %"class.std::complex", ptr %378, i64 %381
  %383 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %382)
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %56, float noundef %383, float noundef 0.000000e+00)
  %384 = load ptr, ptr %4, align 8, !tbaa !5
  %385 = load i32, ptr %16, align 4, !tbaa !9
  %386 = sub nsw i32 %385, 1
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds %"class.std::complex", ptr %384, i64 %387
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %388, ptr align 4 %56, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #9
  %389 = load ptr, ptr %4, align 8, !tbaa !5
  %390 = load i32, ptr %27, align 4, !tbaa !9
  %391 = sub nsw i32 %390, 1
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds %"class.std::complex", ptr %389, i64 %392
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %393, ptr align 4 %38, i64 8, i1 false), !tbaa.struct !13
  %394 = load i32, ptr %15, align 4, !tbaa !9
  %395 = load i32, ptr %25, align 4, !tbaa !9
  %396 = sub nsw i32 %395, 1
  %397 = sub nsw i32 %394, %396
  store i32 %397, ptr %15, align 4, !tbaa !9
  br label %398

398:                                              ; preds = %341
  %399 = load i32, ptr %26, align 4, !tbaa !9
  %400 = add nsw i32 %399, 1
  store i32 %400, ptr %26, align 4, !tbaa !9
  br label %337, !llvm.loop !23

401:                                              ; preds = %337
  %402 = load i8, ptr %41, align 1, !tbaa !15, !range !20, !noundef !21
  %403 = trunc i8 %402 to i1
  br i1 %403, label %404, label %411

404:                                              ; preds = %401
  %405 = load i32, ptr %20, align 4, !tbaa !9
  %406 = load ptr, ptr %6, align 8, !tbaa !5
  %407 = load i32, ptr %31, align 4, !tbaa !9
  %408 = sub nsw i32 %407, 1
  %409 = sext i32 %408 to i64
  %410 = getelementptr inbounds i32, ptr %406, i64 %409
  store i32 %405, ptr %410, align 4, !tbaa !9
  br label %418

411:                                              ; preds = %401
  %412 = load i32, ptr %31, align 4, !tbaa !9
  %413 = load ptr, ptr %6, align 8, !tbaa !5
  %414 = load i32, ptr %31, align 4, !tbaa !9
  %415 = sub nsw i32 %414, 1
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds i32, ptr %413, i64 %416
  store i32 %412, ptr %417, align 4, !tbaa !9
  br label %418

418:                                              ; preds = %411, %404
  br label %697

419:                                              ; preds = %267
  %420 = load i32, ptr %17, align 4, !tbaa !9
  %421 = load i32, ptr %31, align 4, !tbaa !9
  %422 = add nsw i32 %420, %421
  %423 = sub nsw i32 %422, 1
  store i32 %423, ptr %34, align 4, !tbaa !9
  %424 = load i32, ptr %17, align 4, !tbaa !9
  %425 = load i32, ptr %31, align 4, !tbaa !9
  %426 = sub nsw i32 %425, 1
  %427 = sub nsw i32 %424, %426
  store i32 %427, ptr %18, align 4, !tbaa !9
  %428 = load i8, ptr %41, align 1, !tbaa !15, !range !20, !noundef !21
  %429 = trunc i8 %428 to i1
  br i1 %429, label %430, label %509

430:                                              ; preds = %419
  %431 = load i32, ptr %20, align 4, !tbaa !9
  %432 = load ptr, ptr %4, align 8, !tbaa !5
  %433 = load i32, ptr %19, align 4, !tbaa !9
  %434 = sext i32 %433 to i64
  %435 = getelementptr inbounds %"class.std::complex", ptr %432, i64 %434
  %436 = load ptr, ptr %4, align 8, !tbaa !5
  %437 = load i32, ptr %18, align 4, !tbaa !9
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds %"class.std::complex", ptr %436, i64 %438
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %431, ptr noundef %435, i32 noundef 1, ptr noundef %439, i32 noundef 1)
  %440 = load i32, ptr %18, align 4, !tbaa !9
  %441 = load i32, ptr %20, align 4, !tbaa !9
  %442 = add nsw i32 %440, %441
  store i32 %442, ptr %22, align 4, !tbaa !9
  %443 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %443, ptr %26, align 4, !tbaa !9
  br label %444

444:                                              ; preds = %485, %430
  %445 = load i32, ptr %26, align 4, !tbaa !9
  %446 = load i32, ptr %33, align 4, !tbaa !9
  %447 = icmp sle i32 %445, %446
  br i1 %447, label %448, label %488

448:                                              ; preds = %444
  %449 = load i32, ptr %33, align 4, !tbaa !9
  %450 = load i32, ptr %20, align 4, !tbaa !9
  %451 = add nsw i32 %449, %450
  %452 = load i32, ptr %26, align 4, !tbaa !9
  %453 = sub nsw i32 %451, %452
  store i32 %453, ptr %25, align 4, !tbaa !9
  %454 = load i32, ptr %18, align 4, !tbaa !9
  %455 = load i32, ptr %25, align 4, !tbaa !9
  %456 = add nsw i32 %454, %455
  store i32 %456, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #9
  %457 = load ptr, ptr %4, align 8, !tbaa !5
  %458 = load i32, ptr %28, align 4, !tbaa !9
  %459 = sub nsw i32 %458, 1
  %460 = sext i32 %459 to i64
  %461 = getelementptr inbounds %"class.std::complex", ptr %457, i64 %460
  %462 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %461)
  %463 = getelementptr inbounds %"class.std::complex", ptr %57, i32 0, i32 0
  store <2 x float> %462, ptr %463, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %57, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #9
  %464 = load ptr, ptr %4, align 8, !tbaa !5
  %465 = load i32, ptr %22, align 4, !tbaa !9
  %466 = sub nsw i32 %465, 1
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds %"class.std::complex", ptr %464, i64 %467
  %469 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %468)
  %470 = getelementptr inbounds %"class.std::complex", ptr %58, i32 0, i32 0
  store <2 x float> %469, ptr %470, align 4
  %471 = load ptr, ptr %4, align 8, !tbaa !5
  %472 = load i32, ptr %28, align 4, !tbaa !9
  %473 = sub nsw i32 %472, 1
  %474 = sext i32 %473 to i64
  %475 = getelementptr inbounds %"class.std::complex", ptr %471, i64 %474
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %475, ptr align 4 %58, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #9
  %476 = load ptr, ptr %4, align 8, !tbaa !5
  %477 = load i32, ptr %22, align 4, !tbaa !9
  %478 = sub nsw i32 %477, 1
  %479 = sext i32 %478 to i64
  %480 = getelementptr inbounds %"class.std::complex", ptr %476, i64 %479
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %480, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !13
  %481 = load i32, ptr %22, align 4, !tbaa !9
  %482 = load i32, ptr %25, align 4, !tbaa !9
  %483 = sub nsw i32 %482, 1
  %484 = sub nsw i32 %481, %483
  store i32 %484, ptr %22, align 4, !tbaa !9
  br label %485

485:                                              ; preds = %448
  %486 = load i32, ptr %26, align 4, !tbaa !9
  %487 = add nsw i32 %486, 1
  store i32 %487, ptr %26, align 4, !tbaa !9
  br label %444, !llvm.loop !24

488:                                              ; preds = %444
  %489 = load ptr, ptr %4, align 8, !tbaa !5
  %490 = load i32, ptr %34, align 4, !tbaa !9
  %491 = sub nsw i32 %490, 1
  %492 = sext i32 %491 to i64
  %493 = getelementptr inbounds %"class.std::complex", ptr %489, i64 %492
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %493, i64 8, i1 false), !tbaa.struct !13
  %494 = load ptr, ptr %4, align 8, !tbaa !5
  %495 = load i32, ptr %23, align 4, !tbaa !9
  %496 = sub nsw i32 %495, 1
  %497 = sext i32 %496 to i64
  %498 = getelementptr inbounds %"class.std::complex", ptr %494, i64 %497
  %499 = load ptr, ptr %4, align 8, !tbaa !5
  %500 = load i32, ptr %34, align 4, !tbaa !9
  %501 = sub nsw i32 %500, 1
  %502 = sext i32 %501 to i64
  %503 = getelementptr inbounds %"class.std::complex", ptr %499, i64 %502
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %503, ptr align 4 %498, i64 8, i1 false), !tbaa.struct !13
  %504 = load ptr, ptr %4, align 8, !tbaa !5
  %505 = load i32, ptr %23, align 4, !tbaa !9
  %506 = sub nsw i32 %505, 1
  %507 = sext i32 %506 to i64
  %508 = getelementptr inbounds %"class.std::complex", ptr %504, i64 %507
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %508, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !13
  br label %509

509:                                              ; preds = %488, %419
  %510 = load i32, ptr %31, align 4, !tbaa !9
  %511 = sub nsw i32 %510, 2
  store i32 %511, ptr %36, align 4, !tbaa !9
  %512 = load i32, ptr %36, align 4, !tbaa !9
  %513 = icmp ne i32 %512, 0
  br i1 %513, label %514, label %666

514:                                              ; preds = %509
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #9
  %515 = load ptr, ptr %4, align 8, !tbaa !5
  %516 = load i32, ptr %32, align 4, !tbaa !9
  %517 = sub nsw i32 %516, 1
  %518 = sext i32 %517 to i64
  %519 = getelementptr inbounds %"class.std::complex", ptr %515, i64 %518
  %520 = load ptr, ptr %4, align 8, !tbaa !5
  %521 = load i32, ptr %34, align 4, !tbaa !9
  %522 = sub nsw i32 %521, 1
  %523 = sext i32 %522 to i64
  %524 = getelementptr inbounds %"class.std::complex", ptr %520, i64 %523
  %525 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %519, ptr noundef nonnull align 4 dereferenceable(8) %524)
  %526 = getelementptr inbounds %"class.std::complex", ptr %59, i32 0, i32 0
  store <2 x float> %525, ptr %526, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %59, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #9
  %527 = load i32, ptr %18, align 4, !tbaa !9
  %528 = load i32, ptr %31, align 4, !tbaa !9
  %529 = add nsw i32 %527, %528
  %530 = sub nsw i32 %529, 1
  store i32 %530, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #9
  %531 = load ptr, ptr %4, align 8, !tbaa !5
  %532 = load i32, ptr %35, align 4, !tbaa !9
  %533 = sub nsw i32 %532, 1
  %534 = sext i32 %533 to i64
  %535 = getelementptr inbounds %"class.std::complex", ptr %531, i64 %534
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #9
  %536 = load ptr, ptr %4, align 8, !tbaa !5
  %537 = load i32, ptr %34, align 4, !tbaa !9
  %538 = sub nsw i32 %537, 1
  %539 = sext i32 %538 to i64
  %540 = getelementptr inbounds %"class.std::complex", ptr %536, i64 %539
  %541 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %540)
  %542 = getelementptr inbounds %"class.std::complex", ptr %61, i32 0, i32 0
  store <2 x float> %541, ptr %542, align 4
  %543 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %535, ptr noundef nonnull align 4 dereferenceable(8) %61)
  %544 = getelementptr inbounds %"class.std::complex", ptr %60, i32 0, i32 0
  store <2 x float> %543, ptr %544, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %60, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %63, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #9
  %545 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %546 = getelementptr inbounds %"class.std::complex", ptr %64, i32 0, i32 0
  store <2 x float> %545, ptr %546, align 4
  %547 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %63, ptr noundef nonnull align 4 dereferenceable(8) %64)
  %548 = getelementptr inbounds %"class.std::complex", ptr %62, i32 0, i32 0
  store <2 x float> %547, ptr %548, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #9
  %549 = load i32, ptr %17, align 4, !tbaa !9
  %550 = load i32, ptr %31, align 4, !tbaa !9
  %551 = sub nsw i32 %550, 1
  %552 = sub nsw i32 %549, %551
  %553 = load i32, ptr %31, align 4, !tbaa !9
  %554 = sub nsw i32 %553, 2
  %555 = sub nsw i32 %552, %554
  store i32 %555, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %26, align 4, !tbaa !9
  br label %556

556:                                              ; preds = %662, %514
  %557 = load i32, ptr %26, align 4, !tbaa !9
  %558 = load i32, ptr %36, align 4, !tbaa !9
  %559 = icmp sle i32 %557, %558
  br i1 %559, label %560, label %665

560:                                              ; preds = %556
  %561 = load i32, ptr %33, align 4, !tbaa !9
  %562 = load i32, ptr %26, align 4, !tbaa !9
  %563 = sub nsw i32 %561, %562
  store i32 %563, ptr %25, align 4, !tbaa !9
  %564 = load i32, ptr %17, align 4, !tbaa !9
  %565 = load i32, ptr %25, align 4, !tbaa !9
  %566 = add nsw i32 %564, %565
  store i32 %566, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #9
  %567 = load ptr, ptr %4, align 8, !tbaa !5
  %568 = load i32, ptr %27, align 4, !tbaa !9
  %569 = sub nsw i32 %568, 1
  %570 = sext i32 %569 to i64
  %571 = getelementptr inbounds %"class.std::complex", ptr %567, i64 %570
  %572 = load ptr, ptr %4, align 8, !tbaa !5
  %573 = load i32, ptr %34, align 4, !tbaa !9
  %574 = sub nsw i32 %573, 1
  %575 = sext i32 %574 to i64
  %576 = getelementptr inbounds %"class.std::complex", ptr %572, i64 %575
  %577 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %571, ptr noundef nonnull align 4 dereferenceable(8) %576)
  %578 = getelementptr inbounds %"class.std::complex", ptr %65, i32 0, i32 0
  store <2 x float> %577, ptr %578, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %65, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #9
  %579 = load i32, ptr %18, align 4, !tbaa !9
  %580 = load i32, ptr %25, align 4, !tbaa !9
  %581 = add nsw i32 %579, %580
  store i32 %581, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #9
  %582 = load ptr, ptr %4, align 8, !tbaa !5
  %583 = load i32, ptr %28, align 4, !tbaa !9
  %584 = sub nsw i32 %583, 1
  %585 = sext i32 %584 to i64
  %586 = getelementptr inbounds %"class.std::complex", ptr %582, i64 %585
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #9
  %587 = load ptr, ptr %4, align 8, !tbaa !5
  %588 = load i32, ptr %34, align 4, !tbaa !9
  %589 = sub nsw i32 %588, 1
  %590 = sext i32 %589 to i64
  %591 = getelementptr inbounds %"class.std::complex", ptr %587, i64 %590
  %592 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %591)
  %593 = getelementptr inbounds %"class.std::complex", ptr %67, i32 0, i32 0
  store <2 x float> %592, ptr %593, align 4
  %594 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %586, ptr noundef nonnull align 4 dereferenceable(8) %67)
  %595 = getelementptr inbounds %"class.std::complex", ptr %66, i32 0, i32 0
  store <2 x float> %594, ptr %595, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %66, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #9
  %596 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %597 = getelementptr inbounds %"class.std::complex", ptr %70, i32 0, i32 0
  store <2 x float> %596, ptr %597, align 4
  %598 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %70, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %599 = getelementptr inbounds %"class.std::complex", ptr %69, i32 0, i32 0
  store <2 x float> %598, ptr %599, align 4
  %600 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %69, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %601 = getelementptr inbounds %"class.std::complex", ptr %68, i32 0, i32 0
  store <2 x float> %600, ptr %601, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %68, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #9
  %602 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %603 = getelementptr inbounds %"class.std::complex", ptr %73, i32 0, i32 0
  store <2 x float> %602, ptr %603, align 4
  %604 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %73, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %605 = getelementptr inbounds %"class.std::complex", ptr %72, i32 0, i32 0
  store <2 x float> %604, ptr %605, align 4
  %606 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %72, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %607 = getelementptr inbounds %"class.std::complex", ptr %71, i32 0, i32 0
  store <2 x float> %606, ptr %607, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %71, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #9
  %608 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %38)
  %609 = getelementptr inbounds %"class.std::complex", ptr %74, i32 0, i32 0
  store <2 x float> %608, ptr %609, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %74, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #9
  %610 = load i32, ptr %25, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !13
  %611 = load ptr, ptr %4, align 8, !tbaa !5
  %612 = load i32, ptr %17, align 4, !tbaa !9
  %613 = sext i32 %612 to i64
  %614 = getelementptr inbounds %"class.std::complex", ptr %611, i64 %613
  %615 = load ptr, ptr %4, align 8, !tbaa !5
  %616 = load i32, ptr %15, align 4, !tbaa !9
  %617 = sext i32 %616 to i64
  %618 = getelementptr inbounds %"class.std::complex", ptr %615, i64 %617
  %619 = getelementptr inbounds %"class.std::complex", ptr %75, i32 0, i32 0
  %620 = load <2 x float>, ptr %619, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %610, <2 x float> %620, ptr noundef %614, i32 noundef 1, ptr noundef %618, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #9
  %621 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %39)
  %622 = getelementptr inbounds %"class.std::complex", ptr %76, i32 0, i32 0
  store <2 x float> %621, ptr %622, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %76, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #9
  %623 = load i32, ptr %25, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !13
  %624 = load ptr, ptr %4, align 8, !tbaa !5
  %625 = load i32, ptr %18, align 4, !tbaa !9
  %626 = sext i32 %625 to i64
  %627 = getelementptr inbounds %"class.std::complex", ptr %624, i64 %626
  %628 = load ptr, ptr %4, align 8, !tbaa !5
  %629 = load i32, ptr %15, align 4, !tbaa !9
  %630 = sext i32 %629 to i64
  %631 = getelementptr inbounds %"class.std::complex", ptr %628, i64 %630
  %632 = getelementptr inbounds %"class.std::complex", ptr %77, i32 0, i32 0
  %633 = load <2 x float>, ptr %632, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %623, <2 x float> %633, ptr noundef %627, i32 noundef 1, ptr noundef %631, i32 noundef 1)
  %634 = load ptr, ptr %4, align 8, !tbaa !5
  %635 = load i32, ptr %27, align 4, !tbaa !9
  %636 = sub nsw i32 %635, 1
  %637 = sext i32 %636 to i64
  %638 = getelementptr inbounds %"class.std::complex", ptr %634, i64 %637
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %638, ptr align 4 %38, i64 8, i1 false), !tbaa.struct !13
  %639 = load ptr, ptr %4, align 8, !tbaa !5
  %640 = load i32, ptr %28, align 4, !tbaa !9
  %641 = sub nsw i32 %640, 1
  %642 = sext i32 %641 to i64
  %643 = getelementptr inbounds %"class.std::complex", ptr %639, i64 %642
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %643, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !13
  %644 = load i32, ptr %15, align 4, !tbaa !9
  %645 = load i32, ptr %25, align 4, !tbaa !9
  %646 = add nsw i32 %644, %645
  store i32 %646, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #9
  %647 = load ptr, ptr %4, 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
  %652 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %651)
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %78, float noundef %652, float noundef 0.000000e+00)
  %653 = load ptr, ptr %4, align 8, !tbaa !5
  %654 = load i32, ptr %16, align 4, !tbaa !9
  %655 = sub nsw i32 %654, 1
  %656 = sext i32 %655 to i64
  %657 = getelementptr inbounds %"class.std::complex", ptr %653, i64 %656
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %657, ptr align 4 %78, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #9
  %658 = load i32, ptr %15, align 4, !tbaa !9
  %659 = load i32, ptr %25, align 4, !tbaa !9
  %660 = sub nsw i32 %659, 1
  %661 = sub nsw i32 %658, %660
  store i32 %661, ptr %15, align 4, !tbaa !9
  br label %662

662:                                              ; preds = %560
  %663 = load i32, ptr %26, align 4, !tbaa !9
  %664 = add nsw i32 %663, 1
  store i32 %664, ptr %26, align 4, !tbaa !9
  br label %556, !llvm.loop !25

665:                                              ; preds = %556
  br label %666

666:                                              ; preds = %665, %509
  %667 = load i8, ptr %41, align 1, !tbaa !15, !range !20, !noundef !21
  %668 = trunc i8 %667 to i1
  br i1 %668, label %669, label %677

669:                                              ; preds = %666
  %670 = load i32, ptr %20, align 4, !tbaa !9
  %671 = sub nsw i32 0, %670
  %672 = load ptr, ptr %6, align 8, !tbaa !5
  %673 = load i32, ptr %31, align 4, !tbaa !9
  %674 = sub nsw i32 %673, 1
  %675 = sext i32 %674 to i64
  %676 = getelementptr inbounds i32, ptr %672, i64 %675
  store i32 %671, ptr %676, align 4, !tbaa !9
  br label %685

677:                                              ; preds = %666
  %678 = load i32, ptr %31, align 4, !tbaa !9
  %679 = sub nsw i32 1, %678
  %680 = load ptr, ptr %6, align 8, !tbaa !5
  %681 = load i32, ptr %31, align 4, !tbaa !9
  %682 = sub nsw i32 %681, 1
  %683 = sext i32 %682 to i64
  %684 = getelementptr inbounds i32, ptr %680, i64 %683
  store i32 %679, ptr %684, align 4, !tbaa !9
  br label %685

685:                                              ; preds = %677, %669
  %686 = load ptr, ptr %6, align 8, !tbaa !5
  %687 = load i32, ptr %31, align 4, !tbaa !9
  %688 = sub nsw i32 %687, 1
  %689 = sext i32 %688 to i64
  %690 = getelementptr inbounds i32, ptr %686, i64 %689
  %691 = load i32, ptr %690, align 4, !tbaa !9
  %692 = load ptr, ptr %6, align 8, !tbaa !5
  %693 = load i32, ptr %31, align 4, !tbaa !9
  %694 = sub nsw i32 %693, 2
  %695 = sext i32 %694 to i64
  %696 = getelementptr inbounds i32, ptr %692, i64 %695
  store i32 %691, ptr %696, align 4, !tbaa !9
  br label %697

697:                                              ; preds = %685, %418
  %698 = load i32, ptr %17, align 4, !tbaa !9
  %699 = load i32, ptr %31, align 4, !tbaa !9
  %700 = sub nsw i32 %699, 1
  %701 = sub nsw i32 %698, %700
  store i32 %701, ptr %17, align 4, !tbaa !9
  %702 = load i32, ptr %37, align 4, !tbaa !9
  %703 = icmp eq i32 %702, 2
  br i1 %703, label %704, label %709

704:                                              ; preds = %697
  %705 = load i32, ptr %17, align 4, !tbaa !9
  %706 = load i32, ptr %31, align 4, !tbaa !9
  %707 = sub nsw i32 %706, 2
  %708 = sub nsw i32 %705, %707
  store i32 %708, ptr %17, align 4, !tbaa !9
  br label %709

709:                                              ; preds = %704, %697
  %710 = load i32, ptr %31, align 4, !tbaa !9
  %711 = load i32, ptr %37, align 4, !tbaa !9
  %712 = sub nsw i32 %710, %711
  store i32 %712, ptr %31, align 4, !tbaa !9
  br label %89, !llvm.loop !19

713:                                              ; preds = %107, %92
  %714 = load i32, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  ret i32 %714
}

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


; 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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8)) 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: 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 #3

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

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

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

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

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

declare noundef i32 @_Z6icamaxiPSt7complexIfEi(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5chpfaPSt7complexIfEiPi(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #6 {
  %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 = alloca %"class.std::complex", align 8
  %9 = alloca %"class.std::complex", align 8
  %10 = alloca %"class.std::complex", align 8
  %11 = alloca float, align 4
  %12 = alloca %"class.std::complex", align 8
  %13 = alloca float, align 4
  %14 = alloca %"class.std::complex", align 8
  %15 = alloca %"class.std::complex", align 8
  %16 = alloca %"class.std::complex", align 8
  %17 = alloca %"class.std::complex", align 4
  %18 = alloca %"class.std::complex", align 8
  %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
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  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) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %25 = add nsw i32 %1, -1
  %26 = mul nsw i32 %25, %1
  %27 = sdiv i32 %26, 2
  %invariant.gep392 = getelementptr i8, ptr %0, i64 -8
  %invariant.gep400 = getelementptr i8, ptr %0, i64 -16
  br label %.outer

.outer:                                           ; preds = %95, %3
  %.0276.ph = phi i32 [ %.pre-phi440, %95 ], [ %1, %3 ]
  %.0270.ph = phi i32 [ %.0276, %95 ], [ 0, %3 ]
  %.0263.ph = phi i32 [ %96, %95 ], [ %27, %3 ]
  br label %.thread313

.thread313:                                       ; preds = %.thread313.backedge, %.outer
  %.0276 = phi i32 [ %.0276.ph, %.outer ], [ %.0276.be, %.thread313.backedge ]
  %.0263 = phi i32 [ %.0263.ph, %.outer ], [ %.0263.be, %.thread313.backedge ]
  switch i32 %.0276, label %32 [
    i32 0, label %.loopexit337
    i32 1, label %28
  ]

28:                                               ; preds = %.thread313
  store i32 1, ptr %2, align 4, !tbaa !5
  %.sroa.023.0.copyload = load <2 x float>, ptr %0, align 4, !tbaa !9
  %29 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.023.0.copyload)
  %30 = fcmp oeq float %29, 0.000000e+00
  br i1 %30, label %31, label %.loopexit337

31:                                               ; preds = %28
  br label %.loopexit337

32:                                               ; preds = %.thread313
  %33 = add i32 %.0276, -1
  %34 = add nsw i32 %.0263, %.0276
  %35 = sext i32 %34 to i64
  %gep393 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %35
  %.sroa.022.0.copyload = load <2 x float>, ptr %gep393, align 4, !tbaa !9
  %36 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.022.0.copyload)
  %37 = sext i32 %.0263 to i64
  %38 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %37
  %39 = call noundef i32 @_Z6icamaxiPSt7complexIfEi(i32 noundef %33, ptr noundef %38, i32 noundef 1)
  %40 = add nsw i32 %39, %.0263
  %41 = sext i32 %40 to i64
  %gep395 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %41
  %.sroa.021.0.copyload = load <2 x float>, ptr %gep395, align 4, !tbaa !9
  %42 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.021.0.copyload)
  %43 = fmul float %42, 0x3FE47E0F60000000
  %44 = fcmp ugt float %43, %36
  br i1 %44, label %45, label %80

45:                                               ; preds = %32
  store float 0.000000e+00, ptr %11, align 4, !tbaa !10
  %46 = add nsw i32 %39, -1
  %47 = mul nsw i32 %46, %39
  %48 = sdiv i32 %47, 2
  %.not.not349 = icmp slt i32 %39, %.0276
  br i1 %.not.not349, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %45
  %49 = shl nsw i32 %39, 1
  %50 = add nsw i32 %48, %49
  %51 = zext i32 %39 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %52 = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %55, %.lr.ph ]
  %indvars.iv = phi i64 [ %51, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.0267351 = phi i32 [ %50, %.lr.ph.preheader ], [ %57, %.lr.ph ]
  %indvars.iv.next = add i64 %indvars.iv, 1
  %53 = sext i32 %.0267351 to i64
  %gep = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %53
  %.sroa.020.0.copyload = load <2 x float>, ptr %gep, align 4, !tbaa !9
  %54 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.020.0.copyload)
  %55 = call noundef float @_Z6r4_maxff(float noundef %52, float noundef %54)
  store float %55, ptr %11, align 4, !tbaa !10
  %56 = trunc i64 %indvars.iv.next to i32
  %57 = add nsw i32 %.0267351, %56
  %exitcond.not = icmp eq i32 %.0276, %56
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %45
  %58 = phi float [ 0.000000e+00, %45 ], [ %55, %.lr.ph ]
  %.not = icmp eq i32 %39, 1
  br i1 %.not, label %68, label %59

59:                                               ; preds = %._crit_edge
  %60 = sext i32 %48 to i64
  %61 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %60
  %62 = call noundef i32 @_Z6icamaxiPSt7complexIfEi(i32 noundef %46, ptr noundef %61, i32 noundef 1)
  %63 = add nsw i32 %62, %48
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %64 = sext i32 %63 to i64
  %gep397 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %64
  %.sroa.019.0.copyload = load <2 x float>, ptr %gep397, align 4, !tbaa !9
  %65 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.019.0.copyload)
  store float %65, ptr %13, align 4, !tbaa !10
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %67 = load float, ptr %66, align 4, !tbaa !10
  store float %67, ptr %11, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  br label %68

68:                                               ; preds = %59, %._crit_edge
  %69 = phi float [ %67, %59 ], [ %58, %._crit_edge ]
  %70 = add nsw i32 %48, %39
  %71 = fmul float %69, 0x3FE47E0F60000000
  %72 = sext i32 %70 to i64
  %gep399 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %72
  %.sroa.018.0.copyload = load <2 x float>, ptr %gep399, align 4, !tbaa !9
  %73 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.018.0.copyload)
  %74 = fcmp ugt float %71, %73
  br i1 %74, label %75, label %.thread443

75:                                               ; preds = %68
  %76 = load float, ptr %11, align 4, !tbaa !10
  %77 = fdiv float %42, %76
  %78 = fmul float %43, %77
  %79 = fcmp ugt float %78, %36
  br i1 %79, label %.thread, label %80

80:                                               ; preds = %75, %32
  %81 = call noundef float @_Z6r4_maxff(float noundef %36, float noundef %42)
  %82 = fcmp oeq float %81, 0.000000e+00
  br i1 %82, label %87, label %.loopexit336

.thread443:                                       ; preds = %68
  %83 = call noundef float @_Z6r4_maxff(float noundef %36, float noundef %42)
  %84 = fcmp oeq float %83, 0.000000e+00
  br i1 %84, label %87, label %97

.thread:                                          ; preds = %75
  %.not327 = icmp eq i32 %39, %33
  %85 = call noundef float @_Z6r4_maxff(float noundef %36, float noundef %42)
  %86 = fcmp oeq float %85, 0.000000e+00
  br i1 %86, label %90, label %131

87:                                               ; preds = %.thread443, %80
  %88 = sext i32 %33 to i64
  %89 = getelementptr inbounds i32, ptr %2, i64 %88
  store i32 %.0276, ptr %89, align 4, !tbaa !5
  br label %95

90:                                               ; preds = %.thread
  %91 = sext i32 %33 to i64
  %92 = getelementptr inbounds i32, ptr %2, i64 %91
  store i32 %.0276, ptr %92, align 4, !tbaa !5
  %93 = add i32 %.0276, -2
  %94 = add i32 %93, %33
  br label %95

95:                                               ; preds = %87, %90
  %.pre-phi440 = phi i32 [ %33, %87 ], [ %93, %90 ]
  %.pn328 = phi i32 [ %33, %87 ], [ %94, %90 ]
  %96 = sub i32 %.0263, %.pn328
  br label %.outer, !llvm.loop !14

97:                                               ; preds = %.thread443
  %98 = sext i32 %48 to i64
  %99 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %98
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %39, ptr noundef %99, i32 noundef 1, ptr noundef nonnull %38, i32 noundef 1)
  %.not288356 = icmp sgt i32 %39, %.0276
  br i1 %.not288356, label %.loopexit336, label %.lr.ph360

.lr.ph360:                                        ; preds = %97
  %100 = add nsw i32 %39, %.0276
  %101 = zext i32 %39 to i64
  %102 = add i32 %.0276, 1
  br label %103

103:                                              ; preds = %.lr.ph360, %103
  %indvars.iv421 = phi i64 [ %101, %.lr.ph360 ], [ %indvars.iv.next422, %103 ]
  %.1268358 = phi i32 [ %40, %.lr.ph360 ], [ %112, %103 ]
  %104 = trunc i64 %indvars.iv421 to i32
  %105 = sub i32 %100, %104
  %106 = add nsw i32 %105, %.0263
  %107 = sext i32 %106 to i64
  %gep353 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %107
  %108 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep353)
  store <2 x float> %108, ptr %12, align 8, !tbaa !9
  %109 = sext i32 %.1268358 to i64
  %gep355 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %109
  %110 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep355)
  store <2 x float> %110, ptr %gep353, align 4, !tbaa !9
  %111 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %111, ptr %gep355, align 4, !tbaa !9
  %reass.sub = sub i32 %.1268358, %105
  %112 = add i32 %reass.sub, 1
  %indvars.iv.next422 = add i64 %indvars.iv421, 1
  %lftr.wideiv424 = trunc i64 %indvars.iv.next422 to i32
  %exitcond425.not = icmp eq i32 %102, %lftr.wideiv424
  br i1 %exitcond425.not, label %.loopexit336, label %103, !llvm.loop !15

.loopexit336:                                     ; preds = %103, %80, %97
  %.0278446454 = phi i1 [ true, %97 ], [ false, %80 ], [ true, %103 ]
  %113 = sub i32 %.0263, %33
  %.not289.not365 = icmp sgt i32 %.0276, 1
  br i1 %.not289.not365, label %.lr.ph369.preheader, label %._crit_edge370

.lr.ph369.preheader:                              ; preds = %.loopexit336
  %114 = zext nneg i32 %.0276 to i64
  %wide.trip.count = zext nneg i32 %.0276 to i64
  %invariant.gep = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %37
  br label %.lr.ph369

.lr.ph369:                                        ; preds = %.lr.ph369.preheader, %.lr.ph369
  %indvars.iv426 = phi i64 [ 1, %.lr.ph369.preheader ], [ %indvars.iv.next427, %.lr.ph369 ]
  %.0367 = phi i32 [ %113, %.lr.ph369.preheader ], [ %126, %.lr.ph369 ]
  %115 = sub nsw i64 %114, %indvars.iv426
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %gep467 = getelementptr %"class.std::complex", ptr %invariant.gep, i64 %115
  %116 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep467)
  store <2 x float> %116, ptr %14, align 8
  %117 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %gep393)
  store <2 x float> %117, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %118 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %118, ptr %12, align 8, !tbaa !9
  %119 = sext i32 %.0367 to i64
  %120 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %119
  %121 = trunc nsw i64 %115 to i32
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %121, <2 x float> %118, ptr noundef nonnull %38, i32 noundef 1, ptr noundef %120, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %122 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %115
  %gep364 = getelementptr %"class.std::complex", ptr %122, i64 %119
  %123 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %gep364)
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %123, float noundef 0.000000e+00)
  %124 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %124, ptr %gep364, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %125 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %125, ptr %gep467, align 4, !tbaa !9
  %reass.sub406 = sub i32 %.0367, %121
  %126 = add i32 %reass.sub406, 1
  %indvars.iv.next427 = add nuw nsw i64 %indvars.iv426, 1
  %exitcond429.not = icmp eq i64 %indvars.iv.next427, %wide.trip.count
  br i1 %exitcond429.not, label %._crit_edge370, label %.lr.ph369, !llvm.loop !16

._crit_edge370:                                   ; preds = %.lr.ph369, %.loopexit336
  %127 = sext i32 %33 to i64
  %128 = getelementptr inbounds i32, ptr %2, i64 %127
  br i1 %.0278446454, label %129, label %130

129:                                              ; preds = %._crit_edge370
  store i32 %39, ptr %128, align 4, !tbaa !5
  br label %.thread313.backedge

130:                                              ; preds = %._crit_edge370
  store i32 %.0276, ptr %128, align 4, !tbaa !5
  br label %.thread313.backedge

.thread313.backedge:                              ; preds = %130, %129, %.loopexit
  %.0276.be = phi i32 [ %33, %130 ], [ %33, %129 ], [ %154, %.loopexit ]
  %.0263.be = phi i32 [ %113, %130 ], [ %113, %129 ], [ %.pre, %.loopexit ]
  br label %.thread313, !llvm.loop !14

131:                                              ; preds = %.thread
  %132 = sub nsw i32 %.0263, %33
  br i1 %.not327, label %153, label %133

133:                                              ; preds = %131
  %134 = sext i32 %48 to i64
  %135 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %134
  %136 = sext i32 %132 to i64
  %137 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %136
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %39, ptr noundef %135, i32 noundef 1, ptr noundef %137, i32 noundef 1)
  br i1 %.not.not349, label %.lr.ph379, label %._crit_edge380

.lr.ph379:                                        ; preds = %133
  %138 = add nsw i32 %39, %132
  %139 = add nsw i32 %39, %33
  %140 = zext i32 %39 to i64
  br label %141

141:                                              ; preds = %.lr.ph379, %141
  %indvars.iv430 = phi i64 [ %140, %.lr.ph379 ], [ %indvars.iv.next431, %141 ]
  %.2269377 = phi i32 [ %138, %.lr.ph379 ], [ %150, %141 ]
  %142 = trunc i64 %indvars.iv430 to i32
  %143 = sub i32 %139, %142
  %144 = add nsw i32 %143, %132
  %145 = sext i32 %144 to i64
  %gep372 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %145
  %146 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep372)
  store <2 x float> %146, ptr %12, align 8, !tbaa !9
  %147 = sext i32 %.2269377 to i64
  %gep374 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %147
  %148 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep374)
  store <2 x float> %148, ptr %gep372, align 4, !tbaa !9
  %149 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %149, ptr %gep374, align 4, !tbaa !9
  %reass.sub407 = sub i32 %.2269377, %143
  %150 = add i32 %reass.sub407, 1
  %indvars.iv.next431 = add i64 %indvars.iv430, 1
  %lftr.wideiv433 = trunc i64 %indvars.iv.next431 to i32
  %exitcond434.not = icmp eq i32 %.0276, %lftr.wideiv433
  br i1 %exitcond434.not, label %._crit_edge380, label %141, !llvm.loop !17

._crit_edge380:                                   ; preds = %141, %133
  %gep401 = getelementptr %"class.std::complex", ptr %invariant.gep400, i64 %35
  %151 = load i64, ptr %gep401, align 4, !tbaa !9
  store i64 %151, ptr %12, align 8, !tbaa !9
  %152 = load i64, ptr %gep395, align 4, !tbaa !9
  store i64 %152, ptr %gep401, align 4, !tbaa !9
  store i64 %151, ptr %gep395, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %._crit_edge380, %131
  %154 = add i32 %.0276, -2
  %.not286 = icmp eq i32 %154, 0
  br i1 %.not286, label %.loopexit, label %155

155:                                              ; preds = %153
  %gep403 = getelementptr %"class.std::complex", ptr %invariant.gep400, i64 %35
  %156 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %gep393, ptr noundef nonnull align 4 dereferenceable(8) %gep403)
  store <2 x float> %156, ptr %4, align 8, !tbaa !9
  %157 = add nsw i32 %132, %.0276
  %158 = sext i32 %157 to i64
  %gep405 = getelementptr %"class.std::complex", ptr %invariant.gep400, i64 %158
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %159 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep403)
  store <2 x float> %159, ptr %16, align 8
  %160 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %gep405, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %160, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %161 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %161, ptr %18, align 8
  %162 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %162, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  %.not287387 = icmp slt i32 %.0276, 3
  br i1 %.not287387, label %.loopexit, label %.lr.ph391

.lr.ph391:                                        ; preds = %155
  %163 = sub nsw i32 %132, %154
  %164 = sext i32 %132 to i64
  %165 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %164
  %166 = zext nneg i32 %33 to i64
  %wide.trip.count438 = zext nneg i32 %33 to i64
  %invariant.gep468 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %37
  %invariant.gep470 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %164
  br label %167

167:                                              ; preds = %.lr.ph391, %167
  %indvars.iv435 = phi i64 [ 1, %.lr.ph391 ], [ %indvars.iv.next436, %167 ]
  %.1389 = phi i32 [ %163, %.lr.ph391 ], [ %188, %167 ]
  %168 = sub nsw i64 %166, %indvars.iv435
  %gep469 = getelementptr %"class.std::complex", ptr %invariant.gep468, i64 %168
  %169 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %gep469, ptr noundef nonnull align 4 dereferenceable(8) %gep403)
  store <2 x float> %169, ptr %6, align 8, !tbaa !9
  %gep471 = getelementptr %"class.std::complex", ptr %invariant.gep470, i64 %168
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %170 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep403)
  store <2 x float> %170, ptr %19, align 8
  %171 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %gep471, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %171, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %172 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %172, ptr %21, align 8
  %173 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %173, ptr %20, align 8
  %174 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %174, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  %175 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %175, ptr %23, align 8
  %176 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %176, ptr %22, align 8
  %177 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %177, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  %178 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %178, ptr %12, align 8, !tbaa !9
  %179 = sext i32 %.1389 to i64
  %180 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %179
  %181 = trunc nsw i64 %168 to i32
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %181, <2 x float> %178, ptr noundef nonnull %38, i32 noundef 1, ptr noundef %180, i32 noundef 1)
  %182 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %182, ptr %12, align 8, !tbaa !9
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %181, <2 x float> %182, ptr noundef %165, i32 noundef 1, ptr noundef %180, i32 noundef 1)
  %183 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %183, ptr %gep469, align 4, !tbaa !9
  %184 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %184, ptr %gep471, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  %185 = getelementptr %"class.std::complex", ptr %invariant.gep392, i64 %168
  %gep386 = getelementptr %"class.std::complex", ptr %185, i64 %179
  %186 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %gep386)
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef %186, float noundef 0.000000e+00)
  %187 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %187, ptr %gep386, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  %reass.sub408 = sub i32 %.1389, %181
  %188 = add i32 %reass.sub408, 1
  %indvars.iv.next436 = add nuw nsw i64 %indvars.iv435, 1
  %exitcond439.not = icmp eq i64 %indvars.iv.next436, %wide.trip.count438
  br i1 %exitcond439.not, label %.loopexit, label %167, !llvm.loop !18

.loopexit:                                        ; preds = %167, %155, %153
  %189 = sext i32 %33 to i64
  %190 = getelementptr inbounds i32, ptr %2, i64 %189
  %191 = sub nsw i32 1, %.0276
  %192 = sub nsw i32 0, %39
  %.sink = select i1 %.not327, i32 %191, i32 %192
  store i32 %.sink, ptr %190, align 4, !tbaa !5
  %193 = sext i32 %154 to i64
  %194 = getelementptr inbounds i32, ptr %2, i64 %193
  store i32 %.sink, ptr %194, align 4, !tbaa !5
  %195 = add i32 %154, %33
  %.pre = sub i32 %.0263, %195
  br label %.thread313.backedge

.loopexit337:                                     ; preds = %.thread313, %28, %31
  %.1271 = phi i32 [ 1, %31 ], [ %.0270.ph, %28 ], [ %.0270.ph, %.thread313 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  ret i32 %.1271
}

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="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 #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 = { 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 #6 = { 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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


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