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

; 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

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

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

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

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

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

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

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

declare noundef float @_Z6scasumiPSt7complexIfEi(i32 noundef, ptr noundef, i32 noundef) #7

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

declare <2 x float> @_Z6csign1St7complexIfES0_(<2 x float>, <2 x float>) #7

declare void @_Z6csscalifPSt7complexIfEi(i32 noundef, float noundef, ptr noundef, i32 noundef) #7

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z5ctrcoPSt7complexIfEiii(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #8 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::complex", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, 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 float, align 4
  %27 = alloca ptr, align 8
  %28 = alloca %"class.std::complex", align 4
  %29 = alloca ptr, align 8
  %30 = alloca i32, 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 %"class.std::complex", align 4
  %35 = alloca %"class.std::complex", align 4
  %36 = alloca %"class.std::complex", align 4
  %37 = alloca %"class.std::complex", align 4
  %38 = alloca %"class.std::complex", align 4
  %39 = alloca %"class.std::complex", align 4
  %40 = alloca %"class.std::complex", align 4
  %41 = alloca %"class.std::complex", align 4
  %42 = alloca %"class.std::complex", align 4
  %43 = alloca %"class.std::complex", align 4
  %44 = alloca %"class.std::complex", align 4
  %45 = alloca %"class.std::complex", align 4
  %46 = alloca %"class.std::complex", align 4
  %47 = alloca %"class.std::complex", align 4
  %48 = alloca %"class.std::complex", align 4
  %49 = alloca %"class.std::complex", align 4
  %50 = alloca %"class.std::complex", align 4
  %51 = alloca %"class.std::complex", align 4
  %52 = alloca %"class.std::complex", align 4
  %53 = alloca %"class.std::complex", align 4
  %54 = alloca %"class.std::complex", align 4
  %55 = alloca %"class.std::complex", align 4
  %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
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  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 4, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #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 4, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 1, 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 8, ptr %23) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %25, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 0
  %76 = zext i1 %75 to i8
  store i8 %76, ptr %18, align 1, !tbaa !11
  store float 0.000000e+00, ptr %22, align 4, !tbaa !13
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %108, %4
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = icmp sle i32 %78, %79
  br i1 %80, label %81, label %111

81:                                               ; preds = %77
  %82 = load i8, ptr %18, align 1, !tbaa !11, !range !15, !noundef !16
  %83 = trunc i8 %82 to i1
  br i1 %83, label %84, label %90

84:                                               ; preds = %81
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = sub nsw i32 %86, %87
  store i32 %88, ptr %17, align 4, !tbaa !9
  %89 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %89, ptr %11, align 4, !tbaa !9
  br label %92

90:                                               ; preds = %81
  %91 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %91, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %90, %84
  %93 = load float, ptr %22, align 4, !tbaa !13
  %94 = load i32, ptr %17, align 4, !tbaa !9
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %"class.std::complex", ptr %95, i64 %97
  %99 = getelementptr inbounds %"class.std::complex", ptr %98, i64 -1
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = sub nsw i32 %100, 1
  %102 = load i32, ptr %6, align 4, !tbaa !9
  %103 = mul nsw i32 %101, %102
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %"class.std::complex", ptr %99, i64 %104
  %106 = call noundef float @_Z6scasumiPSt7complexIfEi(i32 noundef %94, ptr noundef %105, i32 noundef 1)
  %107 = call noundef float @_Z6r4_maxff(float noundef %93, float noundef %106)
  store float %107, ptr %22, align 4, !tbaa !13
  br label %108

108:                                              ; preds = %92
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %12, align 4, !tbaa !9
  br label %77, !llvm.loop !17

111:                                              ; preds = %77
  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)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %28, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %113, i64 8)
  %115 = extractvalue { i64, i1 } %114, 1
  %116 = extractvalue { i64, i1 } %114, 0
  %117 = select i1 %115, i64 -1, i64 %116
  %118 = call noalias noundef nonnull ptr @_Znam(i64 noundef %117) #10
  %119 = icmp eq i64 %113, 0
  br i1 %119, label %127, label %120

120:                                              ; preds = %111
  %121 = getelementptr inbounds %"class.std::complex", ptr %118, i64 %113
  br label %122

122:                                              ; preds = %124, %120
  %123 = phi ptr [ %118, %120 ], [ %125, %124 ]
  invoke void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %123, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %124 unwind label %140

124:                                              ; preds = %122
  %125 = getelementptr inbounds %"class.std::complex", ptr %123, i64 1
  %126 = icmp eq ptr %125, %121
  br i1 %126, label %127, label %122

127:                                              ; preds = %124, %111
  store ptr %118, ptr %27, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %137, %127
  %129 = load i32, ptr %10, align 4, !tbaa !9
  %130 = load i32, ptr %7, align 4, !tbaa !9
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %132, label %144

132:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %31, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %133 = load ptr, ptr %27, align 8, !tbaa !5
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds %"class.std::complex", ptr %133, i64 %135
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %136, ptr align 4 %31, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %137

137:                                              ; preds = %132
  %138 = load i32, ptr %10, align 4, !tbaa !9
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %10, align 4, !tbaa !9
  br label %128, !llvm.loop !21

140:                                              ; preds = %122
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %29, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %30, align 4
  call void @_ZdaPvm(ptr noundef %118, i64 noundef %117) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, 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 1, 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 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, 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
  br label %639

144:                                              ; preds = %128
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %444, %144
  %146 = load i32, ptr %16, align 4, !tbaa !9
  %147 = load i32, ptr %7, align 4, !tbaa !9
  %148 = icmp sle i32 %146, %147
  br i1 %148, label %149, label %447

149:                                              ; preds = %145
  %150 = load i8, ptr %18, align 1, !tbaa !11, !range !15, !noundef !16
  %151 = trunc i8 %150 to i1
  br i1 %151, label %152, label %157

152:                                              ; preds = %149
  %153 = load i32, ptr %7, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  %155 = load i32, ptr %16, align 4, !tbaa !9
  %156 = sub nsw i32 %154, %155
  store i32 %156, ptr %15, align 4, !tbaa !9
  br label %159

157:                                              ; preds = %149
  %158 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %158, ptr %15, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %157, %152
  %160 = load ptr, ptr %27, align 8, !tbaa !5
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = sub nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds %"class.std::complex", ptr %160, i64 %163
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %164, i64 8, i1 false), !tbaa.struct !19
  %165 = getelementptr inbounds %"class.std::complex", ptr %32, i32 0, i32 0
  %166 = load <2 x float>, ptr %165, align 4
  %167 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %166)
  %168 = fpext float %167 to double
  %169 = fcmp une double %168, 0.000000e+00
  br i1 %169, label %170, label %184

170:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !19
  %171 = load ptr, ptr %27, align 8, !tbaa !5
  %172 = load i32, ptr %15, align 4, !tbaa !9
  %173 = sub nsw i32 %172, 1
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds %"class.std::complex", ptr %171, i64 %174
  %176 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %175)
  %177 = getelementptr inbounds %"class.std::complex", ptr %35, i32 0, i32 0
  store <2 x float> %176, ptr %177, align 4
  %178 = getelementptr inbounds %"class.std::complex", ptr %34, i32 0, i32 0
  %179 = load <2 x float>, ptr %178, align 4
  %180 = getelementptr inbounds %"class.std::complex", ptr %35, i32 0, i32 0
  %181 = load <2 x float>, ptr %180, align 4
  %182 = call <2 x float> @_Z6csign1St7complexIfES0_(<2 x float> %179, <2 x float> %181)
  %183 = getelementptr inbounds %"class.std::complex", ptr %33, i32 0, i32 0
  store <2 x float> %182, ptr %183, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %33, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %184

184:                                              ; preds = %170, %159
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = load i32, ptr %15, align 4, !tbaa !9
  %187 = sub nsw i32 %186, 1
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = sub nsw i32 %188, 1
  %190 = load i32, ptr %6, align 4, !tbaa !9
  %191 = mul nsw i32 %189, %190
  %192 = add nsw i32 %187, %191
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds %"class.std::complex", ptr %185, i64 %193
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %194, i64 8, i1 false), !tbaa.struct !19
  %195 = getelementptr inbounds %"class.std::complex", ptr %36, i32 0, i32 0
  %196 = load <2 x float>, ptr %195, align 4
  %197 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %196)
  %198 = load ptr, ptr %27, align 8, !tbaa !5
  %199 = load i32, ptr %15, align 4, !tbaa !9
  %200 = sub nsw i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds %"class.std::complex", ptr %198, i64 %201
  %203 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %202)
  %204 = getelementptr inbounds %"class.std::complex", ptr %37, i32 0, i32 0
  store <2 x float> %203, ptr %204, align 4
  %205 = getelementptr inbounds %"class.std::complex", ptr %37, i32 0, i32 0
  %206 = load <2 x float>, ptr %205, align 4
  %207 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %206)
  %208 = fcmp olt float %197, %207
  br i1 %208, label %209, label %240

209:                                              ; preds = %184
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = sub nsw i32 %211, 1
  %213 = load i32, ptr %15, align 4, !tbaa !9
  %214 = sub nsw i32 %213, 1
  %215 = load i32, ptr %6, align 4, !tbaa !9
  %216 = mul nsw i32 %214, %215
  %217 = add nsw i32 %212, %216
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds %"class.std::complex", ptr %210, i64 %218
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %219, i64 8, i1 false), !tbaa.struct !19
  %220 = getelementptr inbounds %"class.std::complex", ptr %38, i32 0, i32 0
  %221 = load <2 x float>, ptr %220, align 4
  %222 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %221)
  %223 = load ptr, ptr %27, align 8, !tbaa !5
  %224 = load i32, ptr %15, align 4, !tbaa !9
  %225 = sub nsw i32 %224, 1
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds %"class.std::complex", ptr %223, i64 %226
  %228 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %227)
  %229 = getelementptr inbounds %"class.std::complex", ptr %39, i32 0, i32 0
  store <2 x float> %228, ptr %229, align 4
  %230 = getelementptr inbounds %"class.std::complex", ptr %39, i32 0, i32 0
  %231 = load <2 x float>, ptr %230, align 4
  %232 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %231)
  %233 = fdiv float %222, %232
  store float %233, ptr %20, align 4, !tbaa !13
  %234 = load i32, ptr %7, align 4, !tbaa !9
  %235 = load float, ptr %20, align 4, !tbaa !13
  %236 = load ptr, ptr %27, align 8, !tbaa !5
  call void @_Z6csscalifPSt7complexIfEi(i32 noundef %234, float noundef %235, ptr noundef %236, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %237 = load float, ptr %20, align 4, !tbaa !13
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %41, float noundef %237, float noundef 0.000000e+00)
  %238 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %41, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %239 = getelementptr inbounds %"class.std::complex", ptr %40, i32 0, i32 0
  store <2 x float> %238, ptr %239, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %40, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %240

240:                                              ; preds = %209, %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %241 = load ptr, ptr %27, align 8, !tbaa !5
  %242 = load i32, ptr %15, align 4, !tbaa !9
  %243 = sub nsw i32 %242, 1
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds %"class.std::complex", ptr %241, i64 %244
  %246 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %245)
  %247 = getelementptr inbounds %"class.std::complex", ptr %42, i32 0, i32 0
  store <2 x float> %246, ptr %247, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #9
  %248 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %249 = getelementptr inbounds %"class.std::complex", ptr %44, i32 0, i32 0
  store <2 x float> %248, ptr %249, align 4
  %250 = load ptr, ptr %27, align 8, !tbaa !5
  %251 = load i32, ptr %15, align 4, !tbaa !9
  %252 = sub nsw i32 %251, 1
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds %"class.std::complex", ptr %250, i64 %253
  %255 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %254)
  %256 = getelementptr inbounds %"class.std::complex", ptr %43, i32 0, i32 0
  store <2 x float> %255, ptr %256, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %43, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !19
  %257 = getelementptr inbounds %"class.std::complex", ptr %45, i32 0, i32 0
  %258 = load <2 x float>, ptr %257, align 4
  %259 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %258)
  store float %259, ptr %20, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %25, i64 8, i1 false), !tbaa.struct !19
  %260 = getelementptr inbounds %"class.std::complex", ptr %46, i32 0, i32 0
  %261 = load <2 x float>, ptr %260, align 4
  %262 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %261)
  store float %262, ptr %21, align 4, !tbaa !13
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = load i32, ptr %15, align 4, !tbaa !9
  %265 = sub nsw i32 %264, 1
  %266 = load i32, ptr %15, align 4, !tbaa !9
  %267 = sub nsw i32 %266, 1
  %268 = load i32, ptr %6, align 4, !tbaa !9
  %269 = mul nsw i32 %267, %268
  %270 = add nsw i32 %265, %269
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds %"class.std::complex", ptr %263, i64 %271
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %272, i64 8, i1 false), !tbaa.struct !19
  %273 = getelementptr inbounds %"class.std::complex", ptr %47, i32 0, i32 0
  %274 = load <2 x float>, ptr %273, align 4
  %275 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %274)
  %276 = fpext float %275 to double
  %277 = fcmp une double %276, 0.000000e+00
  br i1 %277, label %278, label %307

278:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = load i32, ptr %15, align 4, !tbaa !9
  %281 = sub nsw i32 %280, 1
  %282 = load i32, ptr %15, align 4, !tbaa !9
  %283 = sub nsw i32 %282, 1
  %284 = load i32, ptr %6, align 4, !tbaa !9
  %285 = mul nsw i32 %283, %284
  %286 = add nsw i32 %281, %285
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds %"class.std::complex", ptr %279, i64 %287
  %289 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %288)
  %290 = getelementptr inbounds %"class.std::complex", ptr %49, i32 0, i32 0
  store <2 x float> %289, ptr %290, align 4
  %291 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %49)
  %292 = getelementptr inbounds %"class.std::complex", ptr %48, i32 0, i32 0
  store <2 x float> %291, ptr %292, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %48, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #9
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = load i32, ptr %15, align 4, !tbaa !9
  %295 = sub nsw i32 %294, 1
  %296 = load i32, ptr %15, align 4, !tbaa !9
  %297 = sub nsw i32 %296, 1
  %298 = load i32, ptr %6, align 4, !tbaa !9
  %299 = mul nsw i32 %297, %298
  %300 = add nsw i32 %295, %299
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds %"class.std::complex", ptr %293, i64 %301
  %303 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %302)
  %304 = getelementptr inbounds %"class.std::complex", ptr %51, i32 0, i32 0
  store <2 x float> %303, ptr %304, align 4
  %305 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %51)
  %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 %25, ptr align 4 %50, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  br label %308

307:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %52, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %52, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %53, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %53, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  br label %308

308:                                              ; preds = %307, %278
  %309 = load i32, ptr %16, align 4, !tbaa !9
  %310 = load i32, ptr %7, align 4, !tbaa !9
  %311 = icmp ne i32 %309, %310
  br i1 %311, label %312, label %438

312:                                              ; preds = %308
  %313 = load i8, ptr %18, align 1, !tbaa !11, !range !15, !noundef !16
  %314 = trunc i8 %313 to i1
  br i1 %314, label %315, label %318

315:                                              ; preds = %312
  store i32 1, ptr %13, align 4, !tbaa !9
  %316 = load i32, ptr %15, align 4, !tbaa !9
  %317 = sub nsw i32 %316, 1
  store i32 %317, ptr %14, align 4, !tbaa !9
  br label %322

318:                                              ; preds = %312
  %319 = load i32, ptr %15, align 4, !tbaa !9
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %13, align 4, !tbaa !9
  %321 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %321, ptr %14, align 4, !tbaa !9
  br label %322

322:                                              ; preds = %318, %315
  %323 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %323, ptr %12, align 4, !tbaa !9
  br label %324

324:                                              ; preds = %391, %322
  %325 = load i32, ptr %12, align 4, !tbaa !9
  %326 = load i32, ptr %14, align 4, !tbaa !9
  %327 = icmp sle i32 %325, %326
  br i1 %327, label %328, label %394

328:                                              ; preds = %324
  %329 = load float, ptr %21, align 4, !tbaa !13
  %330 = load ptr, ptr %27, align 8, !tbaa !5
  %331 = load i32, ptr %12, align 4, !tbaa !9
  %332 = sub nsw i32 %331, 1
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds %"class.std::complex", ptr %330, i64 %333
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #9
  %335 = load ptr, ptr %5, align 8, !tbaa !5
  %336 = load i32, ptr %15, align 4, !tbaa !9
  %337 = sub nsw i32 %336, 1
  %338 = load i32, ptr %12, align 4, !tbaa !9
  %339 = sub nsw i32 %338, 1
  %340 = load i32, ptr %6, align 4, !tbaa !9
  %341 = mul nsw i32 %339, %340
  %342 = add nsw i32 %337, %341
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds %"class.std::complex", ptr %335, i64 %343
  %345 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %344)
  %346 = getelementptr inbounds %"class.std::complex", ptr %56, i32 0, i32 0
  store <2 x float> %345, ptr %346, align 4
  %347 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %56)
  %348 = getelementptr inbounds %"class.std::complex", ptr %55, i32 0, i32 0
  store <2 x float> %347, ptr %348, align 4
  %349 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %334, ptr noundef nonnull align 4 dereferenceable(8) %55)
  %350 = getelementptr inbounds %"class.std::complex", ptr %54, i32 0, i32 0
  store <2 x float> %349, ptr %350, align 4
  %351 = getelementptr inbounds %"class.std::complex", ptr %54, i32 0, i32 0
  %352 = load <2 x float>, ptr %351, align 4
  %353 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %352)
  %354 = fadd float %329, %353
  store float %354, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #9
  %355 = load ptr, ptr %27, align 8, !tbaa !5
  %356 = load i32, ptr %12, align 4, !tbaa !9
  %357 = sub nsw i32 %356, 1
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds %"class.std::complex", ptr %355, i64 %358
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #9
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = load i32, ptr %15, align 4, !tbaa !9
  %362 = sub nsw i32 %361, 1
  %363 = load i32, ptr %12, align 4, !tbaa !9
  %364 = sub nsw i32 %363, 1
  %365 = load i32, ptr %6, align 4, !tbaa !9
  %366 = mul nsw i32 %364, %365
  %367 = add nsw i32 %362, %366
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds %"class.std::complex", ptr %360, i64 %368
  %370 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %369)
  %371 = getelementptr inbounds %"class.std::complex", ptr %59, i32 0, i32 0
  store <2 x float> %370, ptr %371, align 4
  %372 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %59)
  %373 = getelementptr inbounds %"class.std::complex", ptr %58, i32 0, i32 0
  store <2 x float> %372, ptr %373, align 4
  %374 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %359, ptr noundef nonnull align 4 dereferenceable(8) %58)
  %375 = getelementptr inbounds %"class.std::complex", ptr %57, i32 0, i32 0
  store <2 x float> %374, ptr %375, align 4
  %376 = load ptr, ptr %27, align 8, !tbaa !5
  %377 = load i32, ptr %12, align 4, !tbaa !9
  %378 = sub nsw i32 %377, 1
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds %"class.std::complex", ptr %376, i64 %379
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %380, ptr align 4 %57, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #9
  %381 = load float, ptr %20, align 4, !tbaa !13
  %382 = load ptr, ptr %27, align 8, !tbaa !5
  %383 = load i32, ptr %12, align 4, !tbaa !9
  %384 = sub nsw i32 %383, 1
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds %"class.std::complex", ptr %382, i64 %385
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %386, i64 8, i1 false), !tbaa.struct !19
  %387 = getelementptr inbounds %"class.std::complex", ptr %60, i32 0, i32 0
  %388 = load <2 x float>, ptr %387, align 4
  %389 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %388)
  %390 = fadd float %381, %389
  store float %390, ptr %20, align 4, !tbaa !13
  br label %391

391:                                              ; preds = %328
  %392 = load i32, ptr %12, align 4, !tbaa !9
  %393 = add nsw i32 %392, 1
  store i32 %393, ptr %12, align 4, !tbaa !9
  br label %324, !llvm.loop !22

394:                                              ; preds = %324
  %395 = load float, ptr %20, align 4, !tbaa !13
  %396 = load float, ptr %21, align 4, !tbaa !13
  %397 = fcmp olt float %395, %396
  br i1 %397, label %398, label %437

398:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #9
  %399 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %24)
  %400 = getelementptr inbounds %"class.std::complex", ptr %61, i32 0, i32 0
  store <2 x float> %399, ptr %400, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %61, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %25, i64 8, i1 false), !tbaa.struct !19
  %401 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %401, ptr %12, align 4, !tbaa !9
  br label %402

402:                                              ; preds = %433, %398
  %403 = load i32, ptr %12, align 4, !tbaa !9
  %404 = load i32, ptr %14, align 4, !tbaa !9
  %405 = icmp sle i32 %403, %404
  br i1 %405, label %406, label %436

406:                                              ; preds = %402
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #9
  %407 = load ptr, ptr %27, align 8, !tbaa !5
  %408 = load i32, ptr %12, align 4, !tbaa !9
  %409 = sub nsw i32 %408, 1
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds %"class.std::complex", ptr %407, i64 %410
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #9
  %412 = load ptr, ptr %5, align 8, !tbaa !5
  %413 = load i32, ptr %15, align 4, !tbaa !9
  %414 = sub nsw i32 %413, 1
  %415 = load i32, ptr %12, align 4, !tbaa !9
  %416 = sub nsw i32 %415, 1
  %417 = load i32, ptr %6, align 4, !tbaa !9
  %418 = mul nsw i32 %416, %417
  %419 = add nsw i32 %414, %418
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds %"class.std::complex", ptr %412, i64 %420
  %422 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %421)
  %423 = getelementptr inbounds %"class.std::complex", ptr %64, i32 0, i32 0
  store <2 x float> %422, ptr %423, align 4
  %424 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %64)
  %425 = getelementptr inbounds %"class.std::complex", ptr %63, i32 0, i32 0
  store <2 x float> %424, ptr %425, align 4
  %426 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %411, ptr noundef nonnull align 4 dereferenceable(8) %63)
  %427 = getelementptr inbounds %"class.std::complex", ptr %62, i32 0, i32 0
  store <2 x float> %426, ptr %427, align 4
  %428 = load ptr, ptr %27, align 8, !tbaa !5
  %429 = load i32, ptr %12, align 4, !tbaa !9
  %430 = sub nsw i32 %429, 1
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds %"class.std::complex", ptr %428, i64 %431
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %432, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !19
  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
  br label %433

433:                                              ; preds = %406
  %434 = load i32, ptr %12, align 4, !tbaa !9
  %435 = add nsw i32 %434, 1
  store i32 %435, ptr %12, align 4, !tbaa !9
  br label %402, !llvm.loop !23

436:                                              ; preds = %402
  br label %437

437:                                              ; preds = %436, %394
  br label %438

438:                                              ; preds = %437, %308
  %439 = load ptr, ptr %27, align 8, !tbaa !5
  %440 = load i32, ptr %15, align 4, !tbaa !9
  %441 = sub nsw i32 %440, 1
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds %"class.std::complex", ptr %439, i64 %442
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %443, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !19
  br label %444

444:                                              ; preds = %438
  %445 = load i32, ptr %16, align 4, !tbaa !9
  %446 = add nsw i32 %445, 1
  store i32 %446, ptr %16, align 4, !tbaa !9
  br label %145, !llvm.loop !24

447:                                              ; preds = %145
  %448 = load i32, ptr %7, align 4, !tbaa !9
  %449 = load ptr, ptr %27, align 8, !tbaa !5
  %450 = call noundef float @_Z6scasumiPSt7complexIfEi(i32 noundef %448, ptr noundef %449, i32 noundef 1)
  %451 = fpext float %450 to double
  %452 = fdiv double 1.000000e+00, %451
  %453 = fptrunc double %452 to float
  store float %453, ptr %20, align 4, !tbaa !13
  %454 = load i32, ptr %7, align 4, !tbaa !9
  %455 = load float, ptr %20, align 4, !tbaa !13
  %456 = load ptr, ptr %27, align 8, !tbaa !5
  call void @_Z6csscalifPSt7complexIfEi(i32 noundef %454, float noundef %455, ptr noundef %456, i32 noundef 1)
  store float 1.000000e+00, ptr %26, align 4, !tbaa !13
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %457

457:                                              ; preds = %609, %447
  %458 = load i32, ptr %16, align 4, !tbaa !9
  %459 = load i32, ptr %7, align 4, !tbaa !9
  %460 = icmp sle i32 %458, %459
  br i1 %460, label %461, label %612

461:                                              ; preds = %457
  %462 = load i8, ptr %18, align 1, !tbaa !11, !range !15, !noundef !16
  %463 = trunc i8 %462 to i1
  br i1 %463, label %464, label %466

464:                                              ; preds = %461
  %465 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %465, ptr %15, align 4, !tbaa !9
  br label %471

466:                                              ; preds = %461
  %467 = load i32, ptr %7, align 4, !tbaa !9
  %468 = add nsw i32 %467, 1
  %469 = load i32, ptr %16, align 4, !tbaa !9
  %470 = sub nsw i32 %468, %469
  store i32 %470, ptr %15, align 4, !tbaa !9
  br label %471

471:                                              ; preds = %466, %464
  %472 = load ptr, ptr %5, align 8, !tbaa !5
  %473 = load i32, ptr %15, align 4, !tbaa !9
  %474 = sub nsw i32 %473, 1
  %475 = load i32, ptr %15, align 4, !tbaa !9
  %476 = sub nsw i32 %475, 1
  %477 = load i32, ptr %6, align 4, !tbaa !9
  %478 = mul nsw i32 %476, %477
  %479 = add nsw i32 %474, %478
  %480 = sext i32 %479 to i64
  %481 = getelementptr inbounds %"class.std::complex", ptr %472, i64 %480
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %481, i64 8, i1 false), !tbaa.struct !19
  %482 = getelementptr inbounds %"class.std::complex", ptr %65, i32 0, i32 0
  %483 = load <2 x float>, ptr %482, align 4
  %484 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %483)
  %485 = load ptr, ptr %27, align 8, !tbaa !5
  %486 = load i32, ptr %15, align 4, !tbaa !9
  %487 = sub nsw i32 %486, 1
  %488 = sext i32 %487 to i64
  %489 = getelementptr inbounds %"class.std::complex", ptr %485, i64 %488
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 4 %489, i64 8, i1 false), !tbaa.struct !19
  %490 = getelementptr inbounds %"class.std::complex", ptr %66, i32 0, i32 0
  %491 = load <2 x float>, ptr %490, align 4
  %492 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %491)
  %493 = fcmp olt float %484, %492
  br i1 %493, label %494, label %523

494:                                              ; preds = %471
  %495 = load ptr, ptr %5, align 8, !tbaa !5
  %496 = load i32, ptr %15, align 4, !tbaa !9
  %497 = sub nsw i32 %496, 1
  %498 = load i32, ptr %15, align 4, !tbaa !9
  %499 = sub nsw i32 %498, 1
  %500 = load i32, ptr %6, align 4, !tbaa !9
  %501 = mul nsw i32 %499, %500
  %502 = add nsw i32 %497, %501
  %503 = sext i32 %502 to i64
  %504 = getelementptr inbounds %"class.std::complex", ptr %495, i64 %503
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 4 %504, i64 8, i1 false), !tbaa.struct !19
  %505 = getelementptr inbounds %"class.std::complex", ptr %67, i32 0, i32 0
  %506 = load <2 x float>, ptr %505, align 4
  %507 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %506)
  %508 = load ptr, ptr %27, align 8, !tbaa !5
  %509 = load i32, ptr %15, align 4, !tbaa !9
  %510 = sub nsw i32 %509, 1
  %511 = sext i32 %510 to i64
  %512 = getelementptr inbounds %"class.std::complex", ptr %508, i64 %511
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %512, i64 8, i1 false), !tbaa.struct !19
  %513 = getelementptr inbounds %"class.std::complex", ptr %68, i32 0, i32 0
  %514 = load <2 x float>, ptr %513, align 4
  %515 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %514)
  %516 = fdiv float %507, %515
  store float %516, ptr %20, align 4, !tbaa !13
  %517 = load i32, ptr %7, align 4, !tbaa !9
  %518 = load float, ptr %20, align 4, !tbaa !13
  %519 = load ptr, ptr %27, align 8, !tbaa !5
  call void @_Z6csscalifPSt7complexIfEi(i32 noundef %517, float noundef %518, ptr noundef %519, i32 noundef 1)
  %520 = load float, ptr %20, align 4, !tbaa !13
  %521 = load float, ptr %26, align 4, !tbaa !13
  %522 = fmul float %520, %521
  store float %522, ptr %26, align 4, !tbaa !13
  br label %523

523:                                              ; preds = %494, %471
  %524 = load ptr, ptr %5, align 8, !tbaa !5
  %525 = load i32, ptr %15, align 4, !tbaa !9
  %526 = sub nsw i32 %525, 1
  %527 = load i32, ptr %15, align 4, !tbaa !9
  %528 = sub nsw i32 %527, 1
  %529 = load i32, ptr %6, align 4, !tbaa !9
  %530 = mul nsw i32 %528, %529
  %531 = add nsw i32 %526, %530
  %532 = sext i32 %531 to i64
  %533 = getelementptr inbounds %"class.std::complex", ptr %524, i64 %532
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 4 %533, i64 8, i1 false), !tbaa.struct !19
  %534 = getelementptr inbounds %"class.std::complex", ptr %69, i32 0, i32 0
  %535 = load <2 x float>, ptr %534, align 4
  %536 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %535)
  %537 = fpext float %536 to double
  %538 = fcmp une double %537, 0.000000e+00
  br i1 %538, label %539, label %562

539:                                              ; preds = %523
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #9
  %540 = load ptr, ptr %27, align 8, !tbaa !5
  %541 = load i32, ptr %15, align 4, !tbaa !9
  %542 = sub nsw i32 %541, 1
  %543 = sext i32 %542 to i64
  %544 = getelementptr inbounds %"class.std::complex", ptr %540, i64 %543
  %545 = load ptr, ptr %5, align 8, !tbaa !5
  %546 = load i32, ptr %15, align 4, !tbaa !9
  %547 = sub nsw i32 %546, 1
  %548 = load i32, ptr %15, align 4, !tbaa !9
  %549 = sub nsw i32 %548, 1
  %550 = load i32, ptr %6, align 4, !tbaa !9
  %551 = mul nsw i32 %549, %550
  %552 = add nsw i32 %547, %551
  %553 = sext i32 %552 to i64
  %554 = getelementptr inbounds %"class.std::complex", ptr %545, i64 %553
  %555 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %544, ptr noundef nonnull align 4 dereferenceable(8) %554)
  %556 = getelementptr inbounds %"class.std::complex", ptr %70, i32 0, i32 0
  store <2 x float> %555, ptr %556, align 4
  %557 = load ptr, ptr %27, align 8, !tbaa !5
  %558 = load i32, ptr %15, align 4, !tbaa !9
  %559 = sub nsw i32 %558, 1
  %560 = sext i32 %559 to i64
  %561 = getelementptr inbounds %"class.std::complex", ptr %557, i64 %560
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %561, ptr align 4 %70, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #9
  br label %568

562:                                              ; preds = %523
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %71, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %563 = load ptr, ptr %27, align 8, !tbaa !5
  %564 = load i32, ptr %15, align 4, !tbaa !9
  %565 = sub nsw i32 %564, 1
  %566 = sext i32 %565 to i64
  %567 = getelementptr inbounds %"class.std::complex", ptr %563, i64 %566
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %567, ptr align 4 %71, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #9
  br label %568

568:                                              ; preds = %562, %539
  %569 = load i8, ptr %18, align 1, !tbaa !11, !range !15, !noundef !16
  %570 = trunc i8 %569 to i1
  br i1 %570, label %571, label %574

571:                                              ; preds = %568
  %572 = load i32, ptr %15, align 4, !tbaa !9
  %573 = add nsw i32 %572, 1
  store i32 %573, ptr %11, align 4, !tbaa !9
  br label %575

574:                                              ; preds = %568
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %575

575:                                              ; preds = %574, %571
  %576 = load i32, ptr %16, align 4, !tbaa !9
  %577 = load i32, ptr %7, align 4, !tbaa !9
  %578 = icmp slt i32 %576, %577
  br i1 %578, label %579, label %608

579:                                              ; preds = %575
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #9
  %580 = load ptr, ptr %27, align 8, !tbaa !5
  %581 = load i32, ptr %15, align 4, !tbaa !9
  %582 = sub nsw i32 %581, 1
  %583 = sext i32 %582 to i64
  %584 = getelementptr inbounds %"class.std::complex", ptr %580, i64 %583
  %585 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %584)
  %586 = getelementptr inbounds %"class.std::complex", ptr %72, i32 0, i32 0
  store <2 x float> %585, ptr %586, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %72, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #9
  %587 = load i32, ptr %7, align 4, !tbaa !9
  %588 = load i32, ptr %16, align 4, !tbaa !9
  %589 = sub nsw i32 %587, %588
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !19
  %590 = load ptr, ptr %5, align 8, !tbaa !5
  %591 = load i32, ptr %11, align 4, !tbaa !9
  %592 = sext i32 %591 to i64
  %593 = getelementptr inbounds %"class.std::complex", ptr %590, i64 %592
  %594 = getelementptr inbounds %"class.std::complex", ptr %593, i64 -1
  %595 = load i32, ptr %15, align 4, !tbaa !9
  %596 = sub nsw i32 %595, 1
  %597 = load i32, ptr %6, align 4, !tbaa !9
  %598 = mul nsw i32 %596, %597
  %599 = sext i32 %598 to i64
  %600 = getelementptr inbounds %"class.std::complex", ptr %594, i64 %599
  %601 = load ptr, ptr %27, align 8, !tbaa !5
  %602 = load i32, ptr %11, align 4, !tbaa !9
  %603 = sext i32 %602 to i64
  %604 = getelementptr inbounds %"class.std::complex", ptr %601, i64 %603
  %605 = getelementptr inbounds %"class.std::complex", ptr %604, i64 -1
  %606 = getelementptr inbounds %"class.std::complex", ptr %73, i32 0, i32 0
  %607 = load <2 x float>, ptr %606, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %589, <2 x float> %607, ptr noundef %600, i32 noundef 1, ptr noundef %605, i32 noundef 1)
  br label %608

608:                                              ; preds = %579, %575
  br label %609

609:                                              ; preds = %608
  %610 = load i32, ptr %16, align 4, !tbaa !9
  %611 = add nsw i32 %610, 1
  store i32 %611, ptr %16, align 4, !tbaa !9
  br label %457, !llvm.loop !25

612:                                              ; preds = %457
  %613 = load i32, ptr %7, align 4, !tbaa !9
  %614 = load ptr, ptr %27, align 8, !tbaa !5
  %615 = call noundef float @_Z6scasumiPSt7complexIfEi(i32 noundef %613, ptr noundef %614, i32 noundef 1)
  %616 = fpext float %615 to double
  %617 = fdiv double 1.000000e+00, %616
  %618 = fptrunc double %617 to float
  store float %618, ptr %20, align 4, !tbaa !13
  %619 = load i32, ptr %7, align 4, !tbaa !9
  %620 = load float, ptr %20, align 4, !tbaa !13
  %621 = load ptr, ptr %27, align 8, !tbaa !5
  call void @_Z6csscalifPSt7complexIfEi(i32 noundef %619, float noundef %620, ptr noundef %621, i32 noundef 1)
  %622 = load float, ptr %20, align 4, !tbaa !13
  %623 = load float, ptr %26, align 4, !tbaa !13
  %624 = fmul float %622, %623
  store float %624, ptr %26, align 4, !tbaa !13
  %625 = load float, ptr %22, align 4, !tbaa !13
  %626 = fpext float %625 to double
  %627 = fcmp une double %626, 0.000000e+00
  br i1 %627, label %628, label %632

628:                                              ; preds = %612
  %629 = load float, ptr %26, align 4, !tbaa !13
  %630 = load float, ptr %22, align 4, !tbaa !13
  %631 = fdiv float %629, %630
  store float %631, ptr %19, align 4, !tbaa !13
  br label %633

632:                                              ; preds = %612
  store float 0.000000e+00, ptr %19, align 4, !tbaa !13
  br label %633

633:                                              ; preds = %632, %628
  %634 = load ptr, ptr %27, align 8, !tbaa !5
  %635 = icmp eq ptr %634, null
  br i1 %635, label %637, label %636

636:                                              ; preds = %633
  call void @_ZdaPv(ptr noundef %634) #11
  br label %637

637:                                              ; preds = %636, %633
  %638 = load float, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, 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 1, 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 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret float %638

639:                                              ; preds = %140
  %640 = load ptr, ptr %29, align 8
  %641 = load i32, ptr %30, align 4
  %642 = insertvalue { ptr, i32 } poison, ptr %640, 0
  %643 = insertvalue { ptr, i32 } %642, i32 %641, 1
  resume { ptr, i32 } %643
}

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

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

declare i32 @__gxx_personality_v0(...)

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

; 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 #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 @_Z6scasumiPSt7complexIfEi(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

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

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

declare void @_Z6csscalifPSt7complexIfEi(i32 noundef, float noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z5ctrcoPSt7complexIfEiii(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %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 %"class.std::complex", align 4
  %12 = alloca %"class.std::complex", align 8
  %13 = alloca %"class.std::complex", align 8
  %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 8
  %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
  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)
  %24 = icmp eq i32 %3, 0
  %invariant.gep = getelementptr i8, ptr %0, i64 -8
  %.not229 = icmp slt i32 %2, 1
  br i1 %.not229, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %25 = add nuw i32 %2, 1
  %26 = sext i32 %1 to i64
  %wide.trip.count271 = zext i32 %25 to i64
  br i1 %24, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %indvars.iv268 = phi i64 [ %indvars.iv.next269, %.lr.ph.split.us ], [ 1, %.lr.ph ]
  %.0217230.us = phi float [ %33, %.lr.ph.split.us ], [ 0.000000e+00, %.lr.ph ]
  %gep.us = getelementptr %"class.std::complex", ptr %invariant.gep, i64 %indvars.iv268
  %27 = add nsw i64 %indvars.iv268, -1
  %28 = mul nsw i64 %27, %26
  %29 = getelementptr inbounds %"class.std::complex", ptr %gep.us, i64 %28
  %30 = trunc i64 %indvars.iv268 to i32
  %31 = sub i32 %25, %30
  %32 = call noundef float @_Z6scasumiPSt7complexIfEi(i32 noundef %31, ptr noundef nonnull %29, i32 noundef 1)
  %33 = call noundef float @_Z6r4_maxff(float noundef %.0217230.us, float noundef %32)
  %indvars.iv.next269 = add nuw nsw i64 %indvars.iv268, 1
  %exitcond272.not = icmp eq i64 %indvars.iv.next269, %wide.trip.count271
  br i1 %exitcond272.not, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !5

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.split
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split ], [ 1, %.lr.ph ]
  %.0217230 = phi float [ %39, %.lr.ph.split ], [ 0.000000e+00, %.lr.ph ]
  %34 = add nsw i64 %indvars.iv, -1
  %35 = mul nsw i64 %34, %26
  %36 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %35
  %37 = trunc nuw nsw i64 %indvars.iv to i32
  %38 = call noundef float @_Z6scasumiPSt7complexIfEi(i32 noundef %37, ptr noundef nonnull %36, i32 noundef 1)
  %39 = call noundef float @_Z6r4_maxff(float noundef %.0217230, float noundef %38)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count271
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph.split, %.lr.ph.split.us, %4
  %.0217.lcssa = phi float [ 0.000000e+00, %4 ], [ %33, %.lr.ph.split.us ], [ %39, %.lr.ph.split ]
  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 1.000000e+00, float noundef 0.000000e+00)
  %40 = load i64, ptr %9, align 8, !tbaa !7
  store i64 %40, ptr %5, align 8, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %41 = sext i32 %2 to i64
  %42 = icmp slt i32 %2, 0
  %43 = shl nsw i64 %41, 3
  %44 = select i1 %42, i64 -1, i64 %43
  %45 = call noalias noundef nonnull ptr @_Znam(i64 noundef %44) #8
  %46 = icmp eq i32 %2, 0
  br i1 %46, label %._crit_edge251, label %47

47:                                               ; preds = %._crit_edge
  %48 = getelementptr inbounds %"class.std::complex", ptr %45, i64 %41
  br label %49

49:                                               ; preds = %49, %47
  %50 = phi ptr [ %45, %47 ], [ %51, %49 ]
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %50, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = icmp eq ptr %51, %48
  br i1 %52, label %.loopexit228, label %49

.loopexit228:                                     ; preds = %49
  %53 = icmp sgt i32 %2, 0
  br i1 %53, label %.lr.ph234.preheader, label %._crit_edge251

.lr.ph234.preheader:                              ; preds = %.loopexit228
  %wide.trip.count276 = zext nneg i32 %2 to i64
  br label %.lr.ph234

.preheader:                                       ; preds = %.lr.ph234
  br i1 %.not229, label %._crit_edge251, label %.lr.ph250

.lr.ph250:                                        ; preds = %.preheader
  %54 = add nuw i32 %2, 1
  %55 = add i32 %1, 1
  %56 = sext i32 %1 to i64
  br label %59

.lr.ph234:                                        ; preds = %.lr.ph234.preheader, %.lr.ph234
  %indvars.iv273 = phi i64 [ 0, %.lr.ph234.preheader ], [ %indvars.iv.next274, %.lr.ph234 ]
  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)
  %57 = getelementptr inbounds %"class.std::complex", ptr %45, i64 %indvars.iv273
  %58 = load i64, ptr %10, align 8, !tbaa !7
  store i64 %58, ptr %57, align 4, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  %indvars.iv.next274 = add nuw nsw i64 %indvars.iv273, 1
  %exitcond277.not = icmp eq i64 %indvars.iv.next274, %wide.trip.count276
  br i1 %exitcond277.not, label %.preheader, label %.lr.ph234, !llvm.loop !10

59:                                               ; preds = %.lr.ph250, %.loopexit
  %.0211249 = phi i32 [ 1, %.lr.ph250 ], [ %.pre292, %.loopexit ]
  %60 = sub nsw i32 %54, %.0211249
  %.0209 = select i1 %24, i32 %60, i32 %.0211249
  %61 = add nsw i32 %.0209, -1
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %"class.std::complex", ptr %45, i64 %62
  %.sroa.028.0.copyload = load <2 x float>, ptr %63, align 4, !tbaa !7
  %64 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.028.0.copyload)
  %65 = fcmp une float %64, 0.000000e+00
  br i1 %65, label %66, label %69

66:                                               ; preds = %59
  %.sroa.026.0.copyload = load <2 x float>, ptr %5, align 8, !tbaa !7
  %67 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %63)
  %68 = call <2 x float> @_Z6csign1St7complexIfES0_(<2 x float> %.sroa.026.0.copyload, <2 x float> %67)
  store <2 x float> %68, ptr %5, align 8, !tbaa !7
  br label %69

69:                                               ; preds = %66, %59
  %70 = mul i32 %61, %55
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %71
  %.sroa.024.0.copyload = load <2 x float>, ptr %72, align 4, !tbaa !7
  %73 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.024.0.copyload)
  %74 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %63)
  %75 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %74)
  %76 = fcmp olt float %73, %75
  br i1 %76, label %77, label %83

77:                                               ; preds = %69
  %.sroa.022.0.copyload = load <2 x float>, ptr %72, align 4, !tbaa !7
  %78 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.022.0.copyload)
  %79 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %63)
  %80 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %79)
  %81 = fdiv float %78, %80
  call void @_Z6csscalifPSt7complexIfEi(i32 noundef %2, float noundef %81, ptr noundef nonnull %45, i32 noundef 1)
  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 %81, float noundef 0.000000e+00)
  %82 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %82, ptr %5, align 8, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %83

83:                                               ; preds = %77, %69
  %84 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %63)
  store <2 x float> %84, ptr %7, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %85 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %85, ptr %12, align 8
  %86 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %63)
  store <2 x float> %86, ptr %8, align 8, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %.sroa.017.0.copyload = load <2 x float>, ptr %7, align 8, !tbaa !7
  %87 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.017.0.copyload)
  %.sroa.016.0.copyload = load <2 x float>, ptr %8, align 8, !tbaa !7
  %88 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.016.0.copyload)
  %.sroa.015.0.copyload = load <2 x float>, ptr %72, align 4, !tbaa !7
  %89 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.015.0.copyload)
  %90 = fcmp une float %89, 0.000000e+00
  br i1 %90, label %91, label %97

91:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %92 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %72)
  store <2 x float> %92, ptr %13, align 8
  %93 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %93, ptr %7, align 8, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %94 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %72)
  store <2 x float> %94, ptr %14, align 8
  %95 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %96 = bitcast <2 x float> %95 to i64
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %100

97:                                               ; preds = %83
  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 1.000000e+00, float noundef 0.000000e+00)
  %98 = load i64, ptr %15, align 8, !tbaa !7
  store i64 %98, ptr %7, align 8, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  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 1.000000e+00, float noundef 0.000000e+00)
  %99 = load i64, ptr %16, align 8, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %100

100:                                              ; preds = %97, %91
  %.sink = phi i64 [ %96, %91 ], [ %99, %97 ]
  store i64 %.sink, ptr %8, align 8
  %.not225 = icmp eq i32 %.0211249, %2
  %.pre292 = add nuw i32 %.0211249, 1
  br i1 %.not225, label %.loopexit, label %101

101:                                              ; preds = %100
  %.0208 = select i1 %24, i32 %61, i32 %2
  %.0207 = select i1 %24, i32 1, i32 %.pre292
  %.not226235 = icmp sgt i32 %.0207, %.0208
  br i1 %.not226235, label %._crit_edge241, label %.lr.ph240.preheader

.lr.ph240.preheader:                              ; preds = %101
  %102 = zext nneg i32 %.0207 to i64
  %103 = add i32 %.0208, 1
  %wide.trip.count281 = zext i32 %103 to i64
  %invariant.gep298 = getelementptr %"class.std::complex", ptr %0, i64 %62
  br label %.lr.ph240

.lr.ph240:                                        ; preds = %.lr.ph240.preheader, %.lr.ph240
  %indvars.iv278 = phi i64 [ %102, %.lr.ph240.preheader ], [ %indvars.iv.next279, %.lr.ph240 ]
  %.0215237 = phi float [ %87, %.lr.ph240.preheader ], [ %116, %.lr.ph240 ]
  %.0216236 = phi float [ %88, %.lr.ph240.preheader ], [ %111, %.lr.ph240 ]
  %104 = add nsw i64 %indvars.iv278, -1
  %105 = getelementptr inbounds %"class.std::complex", ptr %45, i64 %104
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %106 = mul nsw i64 %104, %56
  %gep = getelementptr %"class.std::complex", ptr %invariant.gep298, i64 %106
  %107 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep)
  store <2 x float> %107, ptr %18, align 8
  %108 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %108, ptr %17, align 8
  %109 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %105, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %110 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %109)
  %111 = fadd float %.0216236, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %112 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep)
  store <2 x float> %112, ptr %20, align 8
  %113 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %113, ptr %19, align 8
  %114 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %105, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %114, ptr %105, align 4, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  %115 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %114)
  %116 = fadd float %.0215237, %115
  %indvars.iv.next279 = add nuw nsw i64 %indvars.iv278, 1
  %exitcond282.not = icmp eq i64 %indvars.iv.next279, %wide.trip.count281
  br i1 %exitcond282.not, label %._crit_edge241, label %.lr.ph240, !llvm.loop !11

._crit_edge241:                                   ; preds = %.lr.ph240, %101
  %.0216.lcssa = phi float [ %88, %101 ], [ %111, %.lr.ph240 ]
  %.0215.lcssa = phi float [ %87, %101 ], [ %116, %.lr.ph240 ]
  %117 = fcmp olt float %.0215.lcssa, %.0216.lcssa
  br i1 %117, label %118, label %.loopexit

118:                                              ; preds = %._crit_edge241
  %119 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %119, ptr %6, align 8, !tbaa !7
  %120 = load i64, ptr %8, align 8, !tbaa !7
  store i64 %120, ptr %7, align 8, !tbaa !7
  br i1 %.not226235, label %.loopexit, label %.lr.ph247.preheader

.lr.ph247.preheader:                              ; preds = %118
  %121 = zext nneg i32 %.0207 to i64
  %122 = add i32 %.0208, 1
  %wide.trip.count286 = zext i32 %122 to i64
  %invariant.gep299 = getelementptr %"class.std::complex", ptr %0, i64 %62
  br label %.lr.ph247

.lr.ph247:                                        ; preds = %.lr.ph247.preheader, %.lr.ph247
  %indvars.iv283 = phi i64 [ %121, %.lr.ph247.preheader ], [ %indvars.iv.next284, %.lr.ph247 ]
  %123 = add nsw i64 %indvars.iv283, -1
  %124 = getelementptr inbounds %"class.std::complex", ptr %45, i64 %123
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %125 = mul nsw i64 %123, %56
  %gep300 = getelementptr %"class.std::complex", ptr %invariant.gep299, i64 %125
  %126 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep300)
  store <2 x float> %126, ptr %22, align 8
  %127 = call <2 x float> @_ZStmlIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %22)
  store <2 x float> %127, ptr %21, align 8
  %128 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %124, ptr noundef nonnull align 4 dereferenceable(8) %21)
  store <2 x float> %128, ptr %124, align 4, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  %indvars.iv.next284 = add nuw nsw i64 %indvars.iv283, 1
  %exitcond287.not = icmp eq i64 %indvars.iv.next284, %wide.trip.count286
  br i1 %exitcond287.not, label %.loopexit, label %.lr.ph247, !llvm.loop !12

.loopexit:                                        ; preds = %.lr.ph247, %100, %118, %._crit_edge241
  %129 = load i64, ptr %7, align 8, !tbaa !7
  store i64 %129, ptr %63, align 4, !tbaa !7
  %exitcond288.not = icmp eq i32 %.0211249, %2
  br i1 %exitcond288.not, label %._crit_edge251, label %59, !llvm.loop !13

._crit_edge251:                                   ; preds = %.loopexit, %._crit_edge, %.loopexit228, %.preheader
  %130 = call noundef float @_Z6scasumiPSt7complexIfEi(i32 noundef %2, ptr noundef nonnull %45, i32 noundef 1)
  %131 = fdiv float 1.000000e+00, %130
  call void @_Z6csscalifPSt7complexIfEi(i32 noundef %2, float noundef %131, ptr noundef nonnull %45, i32 noundef 1)
  %invariant.gep254 = getelementptr i8, ptr %45, i64 -8
  br i1 %.not229, label %._crit_edge261, label %.lr.ph260

.lr.ph260:                                        ; preds = %._crit_edge251
  %132 = add nuw i32 %2, 1
  br label %133

133:                                              ; preds = %.lr.ph260, %._crit_edge291
  %.1212258 = phi i32 [ 1, %.lr.ph260 ], [ %160, %._crit_edge291 ]
  %.0218257 = phi float [ 1.000000e+00, %.lr.ph260 ], [ %.1219, %._crit_edge291 ]
  %134 = sub nsw i32 %132, %.1212258
  %.1210 = select i1 %24, i32 %.1212258, i32 %134
  %135 = add nsw i32 %.1210, -1
  %136 = mul nsw i32 %135, %1
  %137 = add nsw i32 %136, %135
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %138
  %.sroa.07.0.copyload = load <2 x float>, ptr %139, align 4, !tbaa !7
  %140 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.07.0.copyload)
  %141 = sext i32 %135 to i64
  %142 = getelementptr inbounds %"class.std::complex", ptr %45, i64 %141
  %.sroa.06.0.copyload = load <2 x float>, ptr %142, align 4, !tbaa !7
  %143 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.06.0.copyload)
  %144 = fcmp olt float %140, %143
  br i1 %144, label %145, label %150

145:                                              ; preds = %133
  %.sroa.05.0.copyload = load <2 x float>, ptr %139, align 4, !tbaa !7
  %146 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.05.0.copyload)
  %.sroa.04.0.copyload = load <2 x float>, ptr %142, align 4, !tbaa !7
  %147 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.04.0.copyload)
  %148 = fdiv float %146, %147
  call void @_Z6csscalifPSt7complexIfEi(i32 noundef %2, float noundef %148, ptr noundef nonnull %45, i32 noundef 1)
  %149 = fmul float %.0218257, %148
  br label %150

150:                                              ; preds = %145, %133
  %.1219 = phi float [ %149, %145 ], [ %.0218257, %133 ]
  %.sroa.03.0.copyload = load <2 x float>, ptr %139, align 4, !tbaa !7
  %151 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.03.0.copyload)
  %152 = fcmp une float %151, 0.000000e+00
  br i1 %152, label %153, label %156

153:                                              ; preds = %150
  %154 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %142, ptr noundef nonnull align 4 dereferenceable(8) %139)
  %155 = bitcast <2 x float> %154 to i64
  br label %158

156:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %157 = load i64, ptr %23, align 8, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  br label %158

158:                                              ; preds = %156, %153
  %.sink290 = phi i64 [ %155, %153 ], [ %157, %156 ]
  store i64 %.sink290, ptr %142, align 4
  %159 = icmp slt i32 %.1212258, %2
  %160 = add nuw i32 %.1212258, 1
  br i1 %159, label %161, label %._crit_edge291

161:                                              ; preds = %158
  %.1 = select i1 %24, i32 %160, i32 1
  %162 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %142)
  store <2 x float> %162, ptr %6, align 8, !tbaa !7
  %163 = sub nsw i32 %2, %.1212258
  %164 = zext nneg i32 %.1 to i64
  %gep253 = getelementptr %"class.std::complex", ptr %invariant.gep, i64 %164
  %165 = sext i32 %136 to i64
  %166 = getelementptr inbounds %"class.std::complex", ptr %gep253, i64 %165
  %gep255 = getelementptr %"class.std::complex", ptr %invariant.gep254, i64 %164
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %163, <2 x float> %162, ptr noundef nonnull %166, i32 noundef 1, ptr noundef nonnull %gep255, i32 noundef 1)
  br label %._crit_edge291

._crit_edge291:                                   ; preds = %158, %161
  %exitcond289.not = icmp eq i32 %.1212258, %2
  br i1 %exitcond289.not, label %._crit_edge261, label %133, !llvm.loop !14

._crit_edge261:                                   ; preds = %._crit_edge291, %._crit_edge251
  %.0218.lcssa = phi float [ 1.000000e+00, %._crit_edge251 ], [ %.1219, %._crit_edge291 ]
  %167 = call noundef float @_Z6scasumiPSt7complexIfEi(i32 noundef %2, ptr noundef nonnull %45, i32 noundef 1)
  %168 = fdiv float 1.000000e+00, %167
  call void @_Z6csscalifPSt7complexIfEi(i32 noundef %2, float noundef %168, ptr noundef nonnull %45, i32 noundef 1)
  %169 = fcmp une float %.0217.lcssa, 0.000000e+00
  %170 = fmul float %.0218.lcssa, %168
  %171 = fdiv float %170, %.0217.lcssa
  %.0214 = select i1 %169, float %171, float 0.000000e+00
  call void @_ZdaPv(ptr noundef nonnull %45) #9
  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
  ret float %.0214
}

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 = { 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 = { 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !6}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}


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