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

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

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

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

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

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

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

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 @_Z5cgediPSt7complexIfEiiPiS1_i(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #8 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::complex", align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::complex", align 4
  %20 = alloca %"class.std::complex", align 4
  %21 = alloca %"class.std::complex", align 4
  %22 = alloca %"class.std::complex", align 4
  %23 = alloca %"class.std::complex", align 4
  %24 = alloca %"class.std::complex", align 4
  %25 = alloca %"class.std::complex", align 4
  %26 = alloca %"class.std::complex", align 4
  %27 = alloca %"class.std::complex", align 4
  %28 = alloca %"class.std::complex", align 4
  %29 = alloca %"class.std::complex", align 4
  %30 = alloca %"class.std::complex", align 4
  %31 = alloca %"class.std::complex", align 4
  %32 = alloca %"class.std::complex", align 4
  %33 = alloca %"class.std::complex", align 4
  %34 = alloca ptr, align 8
  %35 = alloca i32, 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
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  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 8, ptr %17) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %44 = load i32, ptr %12, align 4, !tbaa !9
  %45 = sdiv i32 %44, 10
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %146

47:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.std::complex", ptr %48, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.std::complex", ptr %50, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %142, %47
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = icmp sle i32 %53, %54
  br i1 %55, label %56, label %145

56:                                               ; preds = %52
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = sub nsw i32 %58, 1
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i32, ptr %57, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !9
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = icmp ne i32 %62, %63
  br i1 %64, label %65, label %72

65:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.std::complex", ptr %66, i64 0
  %68 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %67)
  %69 = getelementptr inbounds %"class.std::complex", ptr %21, i32 0, i32 0
  store <2 x float> %68, ptr %69, align 4
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.std::complex", ptr %70, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %21, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %72

72:                                               ; preds = %65, %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = sub nsw i32 %74, 1
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = sub nsw i32 %76, 1
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = mul nsw i32 %77, %78
  %80 = add nsw i32 %75, %79
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %"class.std::complex", ptr %73, i64 %81
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.std::complex", ptr %83, i64 0
  %85 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %82, ptr noundef nonnull align 4 dereferenceable(8) %84)
  %86 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  store <2 x float> %85, ptr %86, align 4
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.std::complex", ptr %87, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %88, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.std::complex", ptr %89, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %90, i64 8, i1 false), !tbaa.struct !11
  %91 = getelementptr inbounds %"class.std::complex", ptr %23, i32 0, i32 0
  %92 = load <2 x float>, ptr %91, align 4
  %93 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %92)
  %94 = fpext float %93 to double
  %95 = fcmp oeq double %94, 0.000000e+00
  br i1 %95, label %96, label %97

96:                                               ; preds = %72
  br label %145

97:                                               ; preds = %72
  br label %98

98:                                               ; preds = %106, %97
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.std::complex", ptr %99, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %100, i64 8, i1 false), !tbaa.struct !11
  %101 = getelementptr inbounds %"class.std::complex", ptr %24, 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 olt double %104, 1.000000e+00
  br i1 %105, label %106, label %119

106:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.std::complex", ptr %107, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %26, float noundef 1.000000e+01, float noundef 0.000000e+00)
  %109 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %108, ptr noundef nonnull align 4 dereferenceable(8) %26)
  %110 = getelementptr inbounds %"class.std::complex", ptr %25, i32 0, i32 0
  store <2 x float> %109, ptr %110, align 4
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.std::complex", ptr %111, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %112, ptr align 4 %25, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.std::complex", ptr %113, i64 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %28, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %115 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %114, ptr noundef nonnull align 4 dereferenceable(8) %28)
  %116 = getelementptr inbounds %"class.std::complex", ptr %27, i32 0, i32 0
  store <2 x float> %115, ptr %116, align 4
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.std::complex", ptr %117, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %118, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %98, !llvm.loop !13

119:                                              ; preds = %98
  br label %120

120:                                              ; preds = %128, %119
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.std::complex", ptr %121, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %122, i64 8, i1 false), !tbaa.struct !11
  %123 = getelementptr inbounds %"class.std::complex", ptr %29, i32 0, i32 0
  %124 = load <2 x float>, ptr %123, align 4
  %125 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %124)
  %126 = fpext float %125 to double
  %127 = fcmp ole double 1.000000e+01, %126
  br i1 %127, label %128, label %141

128:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.std::complex", ptr %129, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %31, float noundef 1.000000e+01, float noundef 0.000000e+00)
  %131 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %130, ptr noundef nonnull align 4 dereferenceable(8) %31)
  %132 = getelementptr inbounds %"class.std::complex", ptr %30, i32 0, i32 0
  store <2 x float> %131, ptr %132, align 4
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds %"class.std::complex", ptr %133, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %134, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.std::complex", ptr %135, i64 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %33, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %137 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %136, ptr noundef nonnull align 4 dereferenceable(8) %33)
  %138 = getelementptr inbounds %"class.std::complex", ptr %32, i32 0, i32 0
  store <2 x float> %137, ptr %138, align 4
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = getelementptr inbounds %"class.std::complex", ptr %139, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %140, ptr align 4 %32, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %120, !llvm.loop !15

141:                                              ; preds = %120
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %13, align 4, !tbaa !9
  br label %52, !llvm.loop !16

145:                                              ; preds = %96, %52
  br label %146

146:                                              ; preds = %145, %6
  %147 = load i32, ptr %12, align 4, !tbaa !9
  %148 = srem i32 %147, 10
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %389

150:                                              ; preds = %146
  %151 = load i32, ptr %9, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %152, i64 8)
  %154 = extractvalue { i64, i1 } %153, 1
  %155 = extractvalue { i64, i1 } %153, 0
  %156 = select i1 %154, i64 -1, i64 %155
  %157 = call noalias noundef nonnull ptr @_Znam(i64 noundef %156) #10
  %158 = icmp eq i64 %152, 0
  br i1 %158, label %166, label %159

159:                                              ; preds = %150
  %160 = getelementptr inbounds %"class.std::complex", ptr %157, i64 %152
  br label %161

161:                                              ; preds = %163, %159
  %162 = phi ptr [ %157, %159 ], [ %164, %163 ]
  invoke void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %162, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %163 unwind label %267

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

166:                                              ; preds = %163, %150
  store ptr %157, ptr %18, align 8, !tbaa !5
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %272, %166
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %9, align 4, !tbaa !9
  %170 = icmp sle i32 %168, %169
  br i1 %170, label %171, label %275

171:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %37, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = sub nsw i32 %173, 1
  %175 = load i32, ptr %15, align 4, !tbaa !9
  %176 = sub nsw i32 %175, 1
  %177 = load i32, ptr %8, align 4, !tbaa !9
  %178 = mul nsw i32 %176, %177
  %179 = add nsw i32 %174, %178
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds %"class.std::complex", ptr %172, i64 %180
  %182 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(8) %181)
  %183 = getelementptr inbounds %"class.std::complex", ptr %36, i32 0, i32 0
  store <2 x float> %182, ptr %183, align 4
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = sub nsw i32 %185, 1
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = sub nsw i32 %187, 1
  %189 = load i32, ptr %8, align 4, !tbaa !9
  %190 = mul nsw i32 %188, %189
  %191 = add nsw i32 %186, %190
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds %"class.std::complex", ptr %184, i64 %192
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %193, ptr align 4 %36, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = load i32, ptr %15, align 4, !tbaa !9
  %196 = sub nsw i32 %195, 1
  %197 = load i32, ptr %15, align 4, !tbaa !9
  %198 = sub nsw i32 %197, 1
  %199 = load i32, ptr %8, align 4, !tbaa !9
  %200 = mul nsw i32 %198, %199
  %201 = add nsw i32 %196, %200
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds %"class.std::complex", ptr %194, i64 %202
  %204 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %203)
  %205 = getelementptr inbounds %"class.std::complex", ptr %38, i32 0, i32 0
  store <2 x float> %204, ptr %205, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %38, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  %206 = load i32, ptr %15, align 4, !tbaa !9
  %207 = sub nsw i32 %206, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = getelementptr inbounds %"class.std::complex", ptr %208, i64 0
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = sub nsw i32 %210, 1
  %212 = load i32, ptr %8, align 4, !tbaa !9
  %213 = mul nsw i32 %211, %212
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds %"class.std::complex", ptr %209, i64 %214
  %216 = getelementptr inbounds %"class.std::complex", ptr %39, i32 0, i32 0
  %217 = load <2 x float>, ptr %216, align 4
  call void @_Z5cscaliSt7complexIfEPS0_i(i32 noundef %207, <2 x float> %217, ptr noundef %215, i32 noundef 1)
  %218 = load i32, ptr %15, align 4, !tbaa !9
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %14, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %264, %171
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = load i32, ptr %9, align 4, !tbaa !9
  %223 = icmp sle i32 %221, %222
  br i1 %223, label %224, label %271

224:                                              ; preds = %220
  %225 = load ptr, ptr %7, align 8, !tbaa !5
  %226 = load i32, ptr %15, align 4, !tbaa !9
  %227 = sub nsw i32 %226, 1
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = sub nsw i32 %228, 1
  %230 = load i32, ptr %8, align 4, !tbaa !9
  %231 = mul nsw i32 %229, %230
  %232 = add nsw i32 %227, %231
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds %"class.std::complex", ptr %225, i64 %233
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %234, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %40, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = load i32, ptr %15, align 4, !tbaa !9
  %237 = sub nsw i32 %236, 1
  %238 = load i32, ptr %14, align 4, !tbaa !9
  %239 = sub nsw i32 %238, 1
  %240 = load i32, ptr %8, align 4, !tbaa !9
  %241 = mul nsw i32 %239, %240
  %242 = add nsw i32 %237, %241
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds %"class.std::complex", ptr %235, i64 %243
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %244, ptr align 4 %40, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  %245 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  %246 = load ptr, ptr %7, align 8, !tbaa !5
  %247 = getelementptr inbounds %"class.std::complex", ptr %246, i64 0
  %248 = load i32, ptr %15, align 4, !tbaa !9
  %249 = sub nsw i32 %248, 1
  %250 = load i32, ptr %8, align 4, !tbaa !9
  %251 = mul nsw i32 %249, %250
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds %"class.std::complex", ptr %247, i64 %252
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = getelementptr inbounds %"class.std::complex", ptr %254, i64 0
  %256 = load i32, ptr %14, align 4, !tbaa !9
  %257 = sub nsw i32 %256, 1
  %258 = load i32, ptr %8, align 4, !tbaa !9
  %259 = mul nsw i32 %257, %258
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds %"class.std::complex", ptr %255, i64 %260
  %262 = getelementptr inbounds %"class.std::complex", ptr %41, i32 0, i32 0
  %263 = load <2 x float>, ptr %262, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %245, <2 x float> %263, ptr noundef %253, i32 noundef 1, ptr noundef %261, i32 noundef 1)
  br label %264

264:                                              ; preds = %224
  %265 = load i32, ptr %14, align 4, !tbaa !9
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %14, align 4, !tbaa !9
  br label %220, !llvm.loop !17

267:                                              ; preds = %161
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %34, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %35, align 4
  call void @_ZdaPvm(ptr noundef %157, i64 noundef %156) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %390

271:                                              ; preds = %220
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %15, align 4, !tbaa !9
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %15, align 4, !tbaa !9
  br label %167, !llvm.loop !18

275:                                              ; preds = %167
  %276 = load i32, ptr %9, align 4, !tbaa !9
  %277 = sub nsw i32 %276, 1
  store i32 %277, ptr %15, align 4, !tbaa !9
  br label %278

278:                                              ; preds = %381, %275
  %279 = load i32, ptr %15, align 4, !tbaa !9
  %280 = icmp sle i32 1, %279
  br i1 %280, label %281, label %384

281:                                              ; preds = %278
  %282 = load i32, ptr %15, align 4, !tbaa !9
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %13, align 4, !tbaa !9
  br label %284

284:                                              ; preds = %314, %281
  %285 = load i32, ptr %13, align 4, !tbaa !9
  %286 = load i32, ptr %9, align 4, !tbaa !9
  %287 = icmp sle i32 %285, %286
  br i1 %287, label %288, label %317

288:                                              ; preds = %284
  %289 = load ptr, ptr %7, align 8, !tbaa !5
  %290 = load i32, ptr %13, align 4, !tbaa !9
  %291 = sub nsw i32 %290, 1
  %292 = load i32, ptr %15, align 4, !tbaa !9
  %293 = sub nsw i32 %292, 1
  %294 = load i32, ptr %8, align 4, !tbaa !9
  %295 = mul nsw i32 %293, %294
  %296 = add nsw i32 %291, %295
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds %"class.std::complex", ptr %289, i64 %297
  %299 = load ptr, ptr %18, align 8, !tbaa !5
  %300 = load i32, ptr %13, align 4, !tbaa !9
  %301 = sub nsw i32 %300, 1
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds %"class.std::complex", ptr %299, i64 %302
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %303, ptr align 4 %298, i64 8, i1 false), !tbaa.struct !11
  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)
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = load i32, ptr %13, align 4, !tbaa !9
  %306 = sub nsw i32 %305, 1
  %307 = load i32, ptr %15, align 4, !tbaa !9
  %308 = sub nsw i32 %307, 1
  %309 = load i32, ptr %8, align 4, !tbaa !9
  %310 = mul nsw i32 %308, %309
  %311 = add nsw i32 %306, %310
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds %"class.std::complex", ptr %304, i64 %312
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %313, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br label %314

314:                                              ; preds = %288
  %315 = load i32, ptr %13, align 4, !tbaa !9
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %13, align 4, !tbaa !9
  br label %284, !llvm.loop !19

317:                                              ; preds = %284
  %318 = load i32, ptr %15, align 4, !tbaa !9
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %14, align 4, !tbaa !9
  br label %320

320:                                              ; preds = %349, %317
  %321 = load i32, ptr %14, align 4, !tbaa !9
  %322 = load i32, ptr %9, align 4, !tbaa !9
  %323 = icmp sle i32 %321, %322
  br i1 %323, label %324, label %352

324:                                              ; preds = %320
  %325 = load ptr, ptr %18, align 8, !tbaa !5
  %326 = load i32, ptr %14, align 4, !tbaa !9
  %327 = sub nsw i32 %326, 1
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds %"class.std::complex", ptr %325, i64 %328
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %329, i64 8, i1 false), !tbaa.struct !11
  %330 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  %331 = load ptr, ptr %7, align 8, !tbaa !5
  %332 = getelementptr inbounds %"class.std::complex", ptr %331, i64 0
  %333 = load i32, ptr %14, align 4, !tbaa !9
  %334 = sub nsw i32 %333, 1
  %335 = load i32, ptr %8, align 4, !tbaa !9
  %336 = mul nsw i32 %334, %335
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds %"class.std::complex", ptr %332, i64 %337
  %339 = load ptr, ptr %7, align 8, !tbaa !5
  %340 = getelementptr inbounds %"class.std::complex", ptr %339, i64 0
  %341 = load i32, ptr %15, align 4, !tbaa !9
  %342 = sub nsw i32 %341, 1
  %343 = load i32, ptr %8, align 4, !tbaa !9
  %344 = mul nsw i32 %342, %343
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds %"class.std::complex", ptr %340, i64 %345
  %347 = getelementptr inbounds %"class.std::complex", ptr %43, i32 0, i32 0
  %348 = load <2 x float>, ptr %347, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %330, <2 x float> %348, ptr noundef %338, i32 noundef 1, ptr noundef %346, i32 noundef 1)
  br label %349

349:                                              ; preds = %324
  %350 = load i32, ptr %14, align 4, !tbaa !9
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %14, align 4, !tbaa !9
  br label %320, !llvm.loop !20

352:                                              ; preds = %320
  %353 = load ptr, ptr %10, align 8, !tbaa !5
  %354 = load i32, ptr %15, align 4, !tbaa !9
  %355 = sub nsw i32 %354, 1
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds i32, ptr %353, i64 %356
  %358 = load i32, ptr %357, align 4, !tbaa !9
  store i32 %358, ptr %16, align 4, !tbaa !9
  %359 = load i32, ptr %16, align 4, !tbaa !9
  %360 = load i32, ptr %15, align 4, !tbaa !9
  %361 = icmp ne i32 %359, %360
  br i1 %361, label %362, label %380

362:                                              ; preds = %352
  %363 = load i32, ptr %9, align 4, !tbaa !9
  %364 = load ptr, ptr %7, align 8, !tbaa !5
  %365 = getelementptr inbounds %"class.std::complex", ptr %364, i64 0
  %366 = load i32, ptr %15, align 4, !tbaa !9
  %367 = sub nsw i32 %366, 1
  %368 = load i32, ptr %8, align 4, !tbaa !9
  %369 = mul nsw i32 %367, %368
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds %"class.std::complex", ptr %365, i64 %370
  %372 = load ptr, ptr %7, align 8, !tbaa !5
  %373 = getelementptr inbounds %"class.std::complex", ptr %372, i64 0
  %374 = load i32, ptr %16, align 4, !tbaa !9
  %375 = sub nsw i32 %374, 1
  %376 = load i32, ptr %8, align 4, !tbaa !9
  %377 = mul nsw i32 %375, %376
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds %"class.std::complex", ptr %373, i64 %378
  call void @_Z5cswapiPSt7complexIfEiS1_i(i32 noundef %363, ptr noundef %371, i32 noundef 1, ptr noundef %379, i32 noundef 1)
  br label %380

380:                                              ; preds = %362, %352
  br label %381

381:                                              ; preds = %380
  %382 = load i32, ptr %15, align 4, !tbaa !9
  %383 = add nsw i32 %382, -1
  store i32 %383, ptr %15, align 4, !tbaa !9
  br label %278, !llvm.loop !21

384:                                              ; preds = %278
  %385 = load ptr, ptr %18, align 8, !tbaa !5
  %386 = icmp eq ptr %385, null
  br i1 %386, label %388, label %387

387:                                              ; preds = %384
  call void @_ZdaPv(ptr noundef %385) #11
  br label %388

388:                                              ; preds = %387, %384
  br label %389

389:                                              ; preds = %388, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  ret void

390:                                              ; preds = %267
  %391 = load ptr, ptr %34, align 8
  %392 = load i32, ptr %35, align 4
  %393 = insertvalue { ptr, i32 } poison, ptr %391, 0
  %394 = insertvalue { ptr, i32 } %393, i32 %392, 1
  resume { ptr, i32 } %394
}

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 = { 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 #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 }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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 = !{i64 0, i64 8, !12}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}


; 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: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) 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 #5

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

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

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

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

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

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 @_Z5cgediPSt7complexIfEiiPiS1_i(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, ptr noundef %4, i32 noundef %5) local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %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 4
  %11 = alloca %"class.std::complex", align 4
  %12 = alloca %"class.std::complex", align 4
  %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
  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)
  %.off = add i32 %5, 9
  %.not = icmp ult i32 %.off, 19
  br i1 %.not, label %.loopexit143, label %17

17:                                               ; preds = %6
  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 1.000000e+00, float noundef 0.000000e+00)
  %18 = load i64, ptr %8, align 8, !tbaa !5
  store i64 %18, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  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)
  %19 = getelementptr inbounds i8, ptr %4, i64 8
  %20 = load i64, ptr %9, align 8, !tbaa !5
  store i64 %20, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %.not130147 = icmp slt i32 %2, 1
  br i1 %.not130147, label %.loopexit143, label %.lr.ph150

.lr.ph150:                                        ; preds = %17
  %21 = add i32 %1, 1
  %22 = add nuw i32 %2, 1
  %wide.trip.count = zext i32 %22 to i64
  br label %23

23:                                               ; preds = %.lr.ph150, %._crit_edge
  %indvars.iv = phi i64 [ 1, %.lr.ph150 ], [ %indvars.iv.next, %._crit_edge ]
  %24 = add nsw i64 %indvars.iv, -1
  %25 = getelementptr inbounds i32, ptr %3, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !8
  %27 = zext i32 %26 to i64
  %.not131 = icmp eq i64 %indvars.iv, %27
  br i1 %.not131, label %30, label %28

28:                                               ; preds = %23
  %29 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %29, ptr %4, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %28, %23
  %31 = trunc nuw nsw i64 %24 to i32
  %32 = mul i32 %21, %31
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %33
  %35 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %4)
  store <2 x float> %35, ptr %4, align 4, !tbaa !5
  %36 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %35)
  %37 = fcmp oeq float %36, 0.000000e+00
  br i1 %37, label %.loopexit143, label %.preheader142

.preheader142:                                    ; preds = %30
  %.sroa.010.0.copyload144 = load <2 x float>, ptr %4, align 4, !tbaa !5
  %38 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.010.0.copyload144)
  %39 = fcmp olt float %38, 1.000000e+00
  br i1 %39, label %.lr.ph, label %.preheader141

.preheader141:                                    ; preds = %.lr.ph, %.preheader142
  %.sroa.07.0.copyload145 = load <2 x float>, ptr %4, align 4, !tbaa !5
  %40 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.07.0.copyload145)
  %41 = fcmp ult float %40, 1.000000e+01
  br i1 %41, label %._crit_edge, label %.lr.ph146

.lr.ph:                                           ; preds = %.preheader142, %.lr.ph
  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 1.000000e+01, float noundef 0.000000e+00)
  %42 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %42, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %43 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %43, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %.sroa.010.0.copyload = load <2 x float>, ptr %4, align 4, !tbaa !5
  %44 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.010.0.copyload)
  %45 = fcmp olt float %44, 1.000000e+00
  br i1 %45, label %.lr.ph, label %.preheader141, !llvm.loop !10

.lr.ph146:                                        ; preds = %.preheader141, %.lr.ph146
  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 1.000000e+01, float noundef 0.000000e+00)
  %46 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %46, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %47 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %47, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  %.sroa.07.0.copyload = load <2 x float>, ptr %4, align 4, !tbaa !5
  %48 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.07.0.copyload)
  %49 = fcmp ult float %48, 1.000000e+01
  br i1 %49, label %._crit_edge, label %.lr.ph146, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph146, %.preheader141
  %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 %.loopexit143, label %23, !llvm.loop !13

.loopexit143:                                     ; preds = %30, %._crit_edge, %17, %6
  %50 = srem i32 %5, 10
  %.not132 = icmp eq i32 %50, 0
  br i1 %.not132, label %113, label %51

51:                                               ; preds = %.loopexit143
  %52 = sext i32 %2 to i64
  %53 = icmp slt i32 %2, 0
  %54 = shl nsw i64 %52, 3
  %55 = select i1 %53, i64 -1, i64 %54
  %56 = call noalias noundef nonnull ptr @_Znam(i64 noundef %55) #8
  %57 = icmp eq i32 %2, 0
  br i1 %57, label %._crit_edge170, label %58

58:                                               ; preds = %51
  %59 = getelementptr inbounds %"class.std::complex", ptr %56, i64 %52
  br label %60

60:                                               ; preds = %60, %58
  %61 = phi ptr [ %56, %58 ], [ %62, %60 ]
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %61, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = icmp eq ptr %62, %59
  br i1 %63, label %.loopexit140, label %60

.loopexit140:                                     ; preds = %60
  %.not133156 = icmp slt i32 %2, 1
  br i1 %.not133156, label %._crit_edge170, label %.lr.ph159.preheader

.lr.ph159.preheader:                              ; preds = %.loopexit140
  %64 = sext i32 %1 to i64
  %65 = add nuw i32 %2, 1
  %wide.trip.count181 = zext i32 %65 to i64
  br label %.lr.ph159

.loopexit:                                        ; preds = %.lr.ph155, %.lr.ph159
  %indvars.iv.next173 = add nuw i32 %indvars.iv172, 1
  %exitcond182.not = icmp eq i64 %indvars.iv.next179, %wide.trip.count181
  br i1 %exitcond182.not, label %.preheader139, label %.lr.ph159, !llvm.loop !14

.preheader139:                                    ; preds = %.loopexit
  %.not199 = icmp eq i32 %2, 1
  br i1 %.not199, label %._crit_edge170, label %.preheader138.preheader

.preheader138.preheader:                          ; preds = %.preheader139
  %66 = add nuw i32 %2, 1
  %67 = sext i32 %1 to i64
  br label %.preheader138

.lr.ph159:                                        ; preds = %.lr.ph159.preheader, %.loopexit
  %indvars.iv178 = phi i64 [ 1, %.lr.ph159.preheader ], [ %indvars.iv.next179, %.loopexit ]
  %indvars.iv172 = phi i32 [ 2, %.lr.ph159.preheader ], [ %indvars.iv.next173, %.loopexit ]
  %indvars180 = trunc i64 %indvars.iv178 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %68 = add nsw i64 %indvars.iv178, -1
  %69 = add nsw i32 %indvars180, -1
  %70 = mul nsw i64 %68, %64
  %71 = mul nsw i32 %69, %1
  %72 = sext i32 %71 to i64
  %73 = getelementptr %"class.std::complex", ptr %0, i64 %68
  %74 = getelementptr %"class.std::complex", ptr %73, i64 %72
  %75 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %74)
  store <2 x float> %75, ptr %74, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %76 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %74)
  store <2 x float> %76, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %70
  %78 = trunc nuw nsw i64 %68 to i32
  call void @_Z5cscaliSt7complexIfEPS0_i(i32 noundef %78, <2 x float> %76, ptr noundef %77, i32 noundef 1)
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %.not137152.not = icmp slt i64 %indvars.iv178, %52
  br i1 %.not137152.not, label %.lr.ph155.preheader, label %.loopexit

.lr.ph155.preheader:                              ; preds = %.lr.ph159
  %79 = sext i32 %indvars.iv172 to i64
  %invariant.gep = getelementptr %"class.std::complex", ptr %0, i64 %68
  br label %.lr.ph155

.lr.ph155:                                        ; preds = %.lr.ph155.preheader, %.lr.ph155
  %indvars.iv174 = phi i64 [ %79, %.lr.ph155.preheader ], [ %indvars.iv.next175, %.lr.ph155 ]
  %80 = add nsw i64 %indvars.iv174, -1
  %81 = mul nsw i64 %80, %64
  %gep = getelementptr %"class.std::complex", ptr %invariant.gep, i64 %81
  %82 = load i64, ptr %gep, align 4, !tbaa !5
  store i64 %82, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %83 = load i64, ptr %15, align 8, !tbaa !5
  store i64 %83, ptr %gep, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %.sroa.01.0.copyload = load <2 x float>, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %81
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %indvars180, <2 x float> %.sroa.01.0.copyload, ptr noundef nonnull %77, i32 noundef 1, ptr noundef %84, i32 noundef 1)
  %indvars.iv.next175 = add nsw i64 %indvars.iv174, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next175 to i32
  %exitcond177.not = icmp eq i32 %65, %lftr.wideiv
  br i1 %exitcond177.not, label %.loopexit, label %.lr.ph155, !llvm.loop !15

.preheader138:                                    ; preds = %.preheader138.preheader, %111
  %indvars.iv183 = phi i64 [ %52, %.preheader138.preheader ], [ %indvars.iv.next184, %111 ]
  %indvars.iv.next184 = add nsw i64 %indvars.iv183, -1
  %.not134160 = icmp sgt i64 %indvars.iv183, %52
  br i1 %.not134160, label %.preheader.._crit_edge166_crit_edge, label %.lr.ph162

.lr.ph162:                                        ; preds = %.preheader138
  %85 = add nsw i64 %indvars.iv183, -2
  %86 = mul nsw i64 %85, %67
  %invariant.gep197 = getelementptr %"class.std::complex", ptr %0, i64 %86
  br label %90

.preheader:                                       ; preds = %90
  br i1 %.not134160, label %.preheader.._crit_edge166_crit_edge, label %.lr.ph165

.preheader.._crit_edge166_crit_edge:              ; preds = %.preheader138, %.preheader
  %.pre = add nsw i64 %indvars.iv183, -2
  br label %._crit_edge166

.lr.ph165:                                        ; preds = %.preheader
  %87 = add nsw i64 %indvars.iv183, -2
  %88 = mul nsw i64 %87, %67
  %89 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %88
  br label %95

90:                                               ; preds = %.lr.ph162, %90
  %indvars.iv185 = phi i64 [ %indvars.iv183, %.lr.ph162 ], [ %indvars.iv.next186, %90 ]
  %91 = add nsw i64 %indvars.iv185, -1
  %gep198 = getelementptr %"class.std::complex", ptr %invariant.gep197, i64 %91
  %92 = getelementptr inbounds %"class.std::complex", ptr %56, i64 %91
  %93 = load i64, ptr %gep198, align 4, !tbaa !5
  store i64 %93, ptr %92, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %94 = load i64, ptr %16, align 8, !tbaa !5
  store i64 %94, ptr %gep198, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  %indvars.iv.next186 = add nsw i64 %indvars.iv185, 1
  %lftr.wideiv188 = trunc i64 %indvars.iv.next186 to i32
  %exitcond189.not = icmp eq i32 %66, %lftr.wideiv188
  br i1 %exitcond189.not, label %.preheader, label %90, !llvm.loop !16

95:                                               ; preds = %.lr.ph165, %95
  %indvars.iv190 = phi i64 [ %indvars.iv183, %.lr.ph165 ], [ %indvars.iv.next191, %95 ]
  %96 = add nsw i64 %indvars.iv190, -1
  %97 = getelementptr inbounds %"class.std::complex", ptr %56, i64 %96
  %98 = load i64, ptr %97, align 4, !tbaa !5
  store i64 %98, ptr %7, align 8, !tbaa !5
  %.sroa.0.0.copyload.cast = bitcast i64 %98 to <2 x float>
  %99 = mul nsw i64 %96, %67
  %100 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %99
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %2, <2 x float> %.sroa.0.0.copyload.cast, ptr noundef %100, i32 noundef 1, ptr noundef %89, i32 noundef 1)
  %indvars.iv.next191 = add nsw i64 %indvars.iv190, 1
  %lftr.wideiv193 = trunc i64 %indvars.iv.next191 to i32
  %exitcond194.not = icmp eq i32 %66, %lftr.wideiv193
  br i1 %exitcond194.not, label %._crit_edge166, label %95, !llvm.loop !17

._crit_edge166:                                   ; preds = %95, %.preheader.._crit_edge166_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader.._crit_edge166_crit_edge ], [ %87, %95 ]
  %101 = getelementptr inbounds i32, ptr %3, i64 %.pre-phi
  %102 = load i32, ptr %101, align 4, !tbaa !8
  %103 = zext i32 %102 to i64
  %.not136 = icmp eq i64 %indvars.iv.next184, %103
  br i1 %.not136, label %111, label %104

104:                                              ; preds = %._crit_edge166
  %105 = mul nsw i64 %.pre-phi, %67
  %106 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %105
  %107 = add nsw i32 %102, -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)
  br label %111

111:                                              ; preds = %._crit_edge166, %104
  %112 = icmp sgt i64 %indvars.iv183, 2
  br i1 %112, label %.preheader138, label %._crit_edge170, !llvm.loop !18

._crit_edge170:                                   ; preds = %111, %51, %.loopexit140, %.preheader139
  call void @_ZdaPv(ptr noundef nonnull %56) #9
  br label %113

113:                                              ; preds = %._crit_edge170, %.loopexit143
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  ret void
}

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 = { 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 = { 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 #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 }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}


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