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

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5cpodiPSt7complexIfEiiPfi(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #6 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::complex", align 4
  %15 = alloca %"class.std::complex", align 4
  %16 = alloca %"class.std::complex", align 4
  %17 = alloca %"class.std::complex", align 4
  %18 = alloca %"class.std::complex", align 4
  %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
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = sdiv i32 %25, 10
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %122

28:                                               ; preds = %5
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = getelementptr inbounds float, ptr %29, i64 0
  store float 1.000000e+00, ptr %30, align 4, !tbaa !11
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds float, ptr %31, i64 1
  store float 0.000000e+00, ptr %32, align 4, !tbaa !11
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %118, %28
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %37, label %121

37:                                               ; preds = %33
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = getelementptr inbounds float, ptr %38, i64 0
  %40 = load float, ptr %39, align 4, !tbaa !11
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = mul nsw i32 %43, %44
  %46 = add nsw i32 %42, %45
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds %"class.std::complex", ptr %41, i64 %47
  %49 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %48)
  %50 = fmul float %40, %49
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = mul nsw i32 %53, %54
  %56 = add nsw i32 %52, %55
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds %"class.std::complex", ptr %51, i64 %57
  %59 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %58)
  %60 = fmul float %50, %59
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds float, ptr %61, i64 0
  store float %60, ptr %62, align 4, !tbaa !11
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds float, ptr %63, i64 0
  %65 = load float, ptr %64, align 4, !tbaa !11
  %66 = fpext float %65 to double
  %67 = fcmp oeq double %66, 0.000000e+00
  br i1 %67, label %68, label %69

68:                                               ; preds = %37
  br label %121

69:                                               ; preds = %37
  br label %70

70:                                               ; preds = %76, %69
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds float, ptr %71, i64 0
  %73 = load float, ptr %72, align 4, !tbaa !11
  %74 = fpext float %73 to double
  %75 = fcmp olt double %74, 1.000000e+00
  br i1 %75, label %76, label %93

76:                                               ; preds = %70
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds float, ptr %77, i64 0
  %79 = load float, ptr %78, align 4, !tbaa !11
  %80 = fpext float %79 to double
  %81 = fmul double %80, 1.000000e+01
  %82 = fptrunc double %81 to float
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = getelementptr inbounds float, ptr %83, i64 0
  store float %82, ptr %84, align 4, !tbaa !11
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds float, ptr %85, i64 1
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = fpext float %87 to double
  %89 = fsub double %88, 1.000000e+00
  %90 = fptrunc double %89 to float
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds float, ptr %91, i64 1
  store float %90, ptr %92, align 4, !tbaa !11
  br label %70, !llvm.loop !13

93:                                               ; preds = %70
  br label %94

94:                                               ; preds = %100, %93
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds float, ptr %95, i64 0
  %97 = load float, ptr %96, align 4, !tbaa !11
  %98 = fpext float %97 to double
  %99 = fcmp ole double 1.000000e+01, %98
  br i1 %99, label %100, label %117

100:                                              ; preds = %94
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds float, ptr %101, i64 0
  %103 = load float, ptr %102, align 4, !tbaa !11
  %104 = fpext float %103 to double
  %105 = fdiv double %104, 1.000000e+01
  %106 = fptrunc double %105 to float
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds float, ptr %107, i64 0
  store float %106, ptr %108, align 4, !tbaa !11
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds float, ptr %109, i64 1
  %111 = load float, ptr %110, align 4, !tbaa !11
  %112 = fpext float %111 to double
  %113 = fadd double %112, 1.000000e+00
  %114 = fptrunc double %113 to float
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds float, ptr %115, i64 1
  store float %114, ptr %116, align 4, !tbaa !11
  br label %94, !llvm.loop !15

117:                                              ; preds = %94
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %11, align 4, !tbaa !9
  br label %33, !llvm.loop !16

121:                                              ; preds = %68, %33
  br label %122

122:                                              ; preds = %121, %5
  %123 = load i32, ptr %10, align 4, !tbaa !9
  %124 = srem i32 %123, 10
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %305

126:                                              ; preds = %122
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %228, %126
  %128 = load i32, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %8, align 4, !tbaa !9
  %130 = icmp sle i32 %128, %129
  br i1 %130, label %131, label %231

131:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = sub nsw i32 %133, 1
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = sub nsw i32 %135, 1
  %137 = load i32, ptr %7, align 4, !tbaa !9
  %138 = mul nsw i32 %136, %137
  %139 = add nsw i32 %134, %138
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds %"class.std::complex", ptr %132, i64 %140
  %142 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %141)
  %143 = getelementptr inbounds %"class.std::complex", ptr %15, i32 0, i32 0
  store <2 x float> %142, ptr %143, align 4
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = sub nsw i32 %145, 1
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = sub nsw i32 %147, 1
  %149 = load i32, ptr %7, align 4, !tbaa !9
  %150 = mul nsw i32 %148, %149
  %151 = add nsw i32 %146, %150
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds %"class.std::complex", ptr %144, i64 %152
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %153, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = sub nsw i32 %155, 1
  %157 = load i32, ptr %13, align 4, !tbaa !9
  %158 = sub nsw i32 %157, 1
  %159 = load i32, ptr %7, align 4, !tbaa !9
  %160 = mul nsw i32 %158, %159
  %161 = add nsw i32 %156, %160
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds %"class.std::complex", ptr %154, i64 %162
  %164 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %163)
  %165 = getelementptr inbounds %"class.std::complex", ptr %17, i32 0, i32 0
  store <2 x float> %164, ptr %165, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = sub nsw i32 %166, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !17
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %"class.std::complex", ptr %168, i64 0
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = sub nsw i32 %170, 1
  %172 = load i32, ptr %7, align 4, !tbaa !9
  %173 = mul nsw i32 %171, %172
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds %"class.std::complex", ptr %169, i64 %174
  %176 = getelementptr inbounds %"class.std::complex", ptr %18, i32 0, i32 0
  %177 = load <2 x float>, ptr %176, align 4
  call void @_Z5cscaliSt7complexIfEPS0_i(i32 noundef %167, <2 x float> %177, ptr noundef %175, i32 noundef 1)
  %178 = load i32, ptr %13, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %12, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %224, %131
  %181 = load i32, ptr %12, align 4, !tbaa !9
  %182 = load i32, ptr %8, align 4, !tbaa !9
  %183 = icmp sle i32 %181, %182
  br i1 %183, label %184, label %227

184:                                              ; preds = %180
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = sub nsw i32 %186, 1
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = sub nsw i32 %188, 1
  %190 = load i32, ptr %7, 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 %14, ptr align 4 %194, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = load i32, ptr %13, align 4, !tbaa !9
  %197 = sub nsw i32 %196, 1
  %198 = load i32, ptr %12, align 4, !tbaa !9
  %199 = sub nsw i32 %198, 1
  %200 = load i32, ptr %7, align 4, !tbaa !9
  %201 = mul nsw i32 %199, %200
  %202 = add nsw i32 %197, %201
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds %"class.std::complex", ptr %195, i64 %203
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %204, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %205 = load i32, ptr %13, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !17
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = getelementptr inbounds %"class.std::complex", ptr %206, i64 0
  %208 = load i32, ptr %13, align 4, !tbaa !9
  %209 = sub nsw i32 %208, 1
  %210 = load i32, ptr %7, align 4, !tbaa !9
  %211 = mul nsw i32 %209, %210
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds %"class.std::complex", ptr %207, i64 %212
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = getelementptr inbounds %"class.std::complex", ptr %214, i64 0
  %216 = load i32, ptr %12, align 4, !tbaa !9
  %217 = sub nsw i32 %216, 1
  %218 = load i32, ptr %7, align 4, !tbaa !9
  %219 = mul nsw i32 %217, %218
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds %"class.std::complex", ptr %215, i64 %220
  %222 = getelementptr inbounds %"class.std::complex", ptr %20, i32 0, i32 0
  %223 = load <2 x float>, ptr %222, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %205, <2 x float> %223, ptr noundef %213, i32 noundef 1, ptr noundef %221, i32 noundef 1)
  br label %224

224:                                              ; preds = %184
  %225 = load i32, ptr %12, align 4, !tbaa !9
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %12, align 4, !tbaa !9
  br label %180, !llvm.loop !19

227:                                              ; preds = %180
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %13, align 4, !tbaa !9
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %13, align 4, !tbaa !9
  br label %127, !llvm.loop !20

231:                                              ; preds = %127
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %232

232:                                              ; preds = %301, %231
  %233 = load i32, ptr %12, align 4, !tbaa !9
  %234 = load i32, ptr %8, align 4, !tbaa !9
  %235 = icmp sle i32 %233, %234
  br i1 %235, label %236, label %304

236:                                              ; preds = %232
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %237

237:                                              ; preds = %274, %236
  %238 = load i32, ptr %13, align 4, !tbaa !9
  %239 = load i32, ptr %12, align 4, !tbaa !9
  %240 = sub nsw i32 %239, 1
  %241 = icmp sle i32 %238, %240
  br i1 %241, label %242, label %277

242:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = load i32, ptr %13, align 4, !tbaa !9
  %245 = sub nsw i32 %244, 1
  %246 = load i32, ptr %12, align 4, !tbaa !9
  %247 = sub nsw i32 %246, 1
  %248 = load i32, ptr %7, align 4, !tbaa !9
  %249 = mul nsw i32 %247, %248
  %250 = add nsw i32 %245, %249
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds %"class.std::complex", ptr %243, i64 %251
  %253 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %252)
  %254 = getelementptr inbounds %"class.std::complex", ptr %21, i32 0, i32 0
  store <2 x float> %253, ptr %254, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %21, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %255 = load i32, ptr %13, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !17
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = getelementptr inbounds %"class.std::complex", ptr %256, i64 0
  %258 = load i32, ptr %12, align 4, !tbaa !9
  %259 = sub nsw i32 %258, 1
  %260 = load i32, ptr %7, align 4, !tbaa !9
  %261 = mul nsw i32 %259, %260
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds %"class.std::complex", ptr %257, i64 %262
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = getelementptr inbounds %"class.std::complex", ptr %264, i64 0
  %266 = load i32, ptr %13, align 4, !tbaa !9
  %267 = sub nsw i32 %266, 1
  %268 = load i32, ptr %7, align 4, !tbaa !9
  %269 = mul nsw i32 %267, %268
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds %"class.std::complex", ptr %265, i64 %270
  %272 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  %273 = load <2 x float>, ptr %272, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %255, <2 x float> %273, ptr noundef %263, i32 noundef 1, ptr noundef %271, i32 noundef 1)
  br label %274

274:                                              ; preds = %242
  %275 = load i32, ptr %13, align 4, !tbaa !9
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %13, align 4, !tbaa !9
  br label %237, !llvm.loop !21

277:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %278 = load ptr, ptr %6, align 8, !tbaa !5
  %279 = load i32, ptr %12, align 4, !tbaa !9
  %280 = sub nsw i32 %279, 1
  %281 = load i32, ptr %12, align 4, !tbaa !9
  %282 = sub nsw i32 %281, 1
  %283 = load i32, ptr %7, align 4, !tbaa !9
  %284 = mul nsw i32 %282, %283
  %285 = add nsw i32 %280, %284
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds %"class.std::complex", ptr %278, i64 %286
  %288 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %287)
  %289 = getelementptr inbounds %"class.std::complex", ptr %23, i32 0, i32 0
  store <2 x float> %288, ptr %289, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %290 = load i32, ptr %12, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !17
  %291 = load ptr, ptr %6, align 8, !tbaa !5
  %292 = getelementptr inbounds %"class.std::complex", ptr %291, i64 0
  %293 = load i32, ptr %12, align 4, !tbaa !9
  %294 = sub nsw i32 %293, 1
  %295 = load i32, ptr %7, align 4, !tbaa !9
  %296 = mul nsw i32 %294, %295
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds %"class.std::complex", ptr %292, i64 %297
  %299 = getelementptr inbounds %"class.std::complex", ptr %24, i32 0, i32 0
  %300 = load <2 x float>, ptr %299, align 4
  call void @_Z5cscaliSt7complexIfEPS0_i(i32 noundef %290, <2 x float> %300, ptr noundef %298, i32 noundef 1)
  br label %301

301:                                              ; preds = %277
  %302 = load i32, ptr %12, align 4, !tbaa !9
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %12, align 4, !tbaa !9
  br label %232, !llvm.loop !22

304:                                              ; preds = %232
  br label %305

305:                                              ; preds = %304, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  ret void
}

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 nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{i64 0, i64 8, !18}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !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: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5cpodiPSt7complexIfEiiPfi(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef %3, i32 noundef %4) local_unnamed_addr #5 {
  %6 = alloca %"class.std::complex", align 8
  %7 = alloca %"class.std::complex", align 4
  %8 = alloca %"class.std::complex", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %.off = add i32 %4, 9
  %.not = icmp ult i32 %.off, 19
  br i1 %.not, label %.loopexit115, label %9

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %3, i64 4
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %3, align 4, !tbaa !5
  %11 = icmp sgt i32 %2, 0
  br i1 %11, label %.lr.ph124, label %.loopexit115

.lr.ph124:                                        ; preds = %9
  %12 = add i32 %1, 1
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %13

13:                                               ; preds = %.lr.ph124, %38
  %14 = phi float [ 1.000000e+00, %.lr.ph124 ], [ %39, %38 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph124 ], [ %indvars.iv.next, %38 ]
  %15 = trunc nuw nsw i64 %indvars.iv to i32
  %16 = mul i32 %12, %15
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %17
  %19 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %18)
  %20 = fmul float %14, %19
  %21 = call noundef float @_ZSt4realIfET_RKSt7complexIS0_E(ptr noundef nonnull align 4 dereferenceable(8) %18)
  %22 = fmul float %20, %21
  store float %22, ptr %3, align 4, !tbaa !5
  %23 = fcmp oeq float %22, 0.000000e+00
  br i1 %23, label %.loopexit115, label %.preheader114

.preheader114:                                    ; preds = %13
  %24 = fcmp olt float %22, 1.000000e+00
  br i1 %24, label %.lr.ph, label %thread-pre-split

.lr.ph:                                           ; preds = %.preheader114
  %.promoted = load float, ptr %10, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %.lr.ph, %25
  %26 = phi float [ %.promoted, %.lr.ph ], [ %29, %25 ]
  %27 = phi float [ %22, %.lr.ph ], [ %28, %25 ]
  %28 = fmul float %27, 1.000000e+01
  %29 = fadd float %26, -1.000000e+00
  %30 = fcmp olt float %28, 1.000000e+00
  br i1 %30, label %25, label %.thread-pre-split_crit_edge, !llvm.loop !9

.thread-pre-split_crit_edge:                      ; preds = %25
  store float %28, ptr %3, align 4, !tbaa !5
  store float %29, ptr %10, align 4, !tbaa !5
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %.thread-pre-split_crit_edge, %.preheader114
  %.pr = phi float [ %28, %.thread-pre-split_crit_edge ], [ %22, %.preheader114 ]
  %31 = fcmp ult float %.pr, 1.000000e+01
  br i1 %31, label %38, label %.lr.ph118

.lr.ph118:                                        ; preds = %thread-pre-split
  %.promoted120 = load float, ptr %10, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %.lr.ph118, %32
  %33 = phi float [ %.promoted120, %.lr.ph118 ], [ %36, %32 ]
  %34 = phi float [ %.pr, %.lr.ph118 ], [ %35, %32 ]
  %35 = fdiv float %34, 1.000000e+01
  %36 = fadd float %33, 1.000000e+00
  %37 = fcmp ult float %35, 1.000000e+01
  br i1 %37, label %._crit_edge, label %32, !llvm.loop !11

._crit_edge:                                      ; preds = %32
  store float %35, ptr %3, align 4, !tbaa !5
  store float %36, ptr %10, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %._crit_edge, %thread-pre-split
  %39 = phi float [ %35, %._crit_edge ], [ %.pr, %thread-pre-split ]
  %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 %.loopexit115, label %13, !llvm.loop !12

.loopexit115:                                     ; preds = %13, %38, %9, %5
  %40 = srem i32 %4, 10
  %.not106 = icmp eq i32 %40, 0
  br i1 %.not106, label %.loopexit, label %.preheader113

.preheader113:                                    ; preds = %.loopexit115
  %.not107130 = icmp slt i32 %2, 1
  br i1 %.not107130, label %.loopexit, label %.lr.ph132.preheader

.lr.ph132.preheader:                              ; preds = %.preheader113
  %41 = sext i32 %1 to i64
  %42 = add nuw i32 %2, 1
  %43 = zext nneg i32 %2 to i64
  %wide.trip.count152 = zext i32 %42 to i64
  br label %.lr.ph132

.loopexit112:                                     ; preds = %.lr.ph129, %.lr.ph132
  %indvars.iv.next144 = add nuw i32 %indvars.iv143, 1
  %exitcond153.not = icmp eq i64 %indvars.iv.next150, %wide.trip.count152
  br i1 %exitcond153.not, label %.preheader111, label %.lr.ph132, !llvm.loop !13

.preheader111:                                    ; preds = %.loopexit112
  br i1 %.not107130, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader111
  %44 = sext i32 %1 to i64
  %45 = add nuw i32 %2, 1
  %wide.trip.count162 = zext i32 %45 to i64
  br label %.preheader

.lr.ph132:                                        ; preds = %.lr.ph132.preheader, %.loopexit112
  %indvars.iv149 = phi i64 [ 1, %.lr.ph132.preheader ], [ %indvars.iv.next150, %.loopexit112 ]
  %indvars.iv143 = phi i32 [ 2, %.lr.ph132.preheader ], [ %indvars.iv.next144, %.loopexit112 ]
  %indvars151 = trunc i64 %indvars.iv149 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %46 = add nsw i64 %indvars.iv149, -1
  %47 = add nsw i32 %indvars151, -1
  %48 = mul nsw i64 %46, %41
  %49 = mul nsw i32 %47, %1
  %50 = sext i32 %49 to i64
  %51 = getelementptr %"class.std::complex", ptr %0, i64 %46
  %52 = getelementptr %"class.std::complex", ptr %51, i64 %50
  %53 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %52)
  store <2 x float> %53, ptr %52, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %54 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %52)
  store <2 x float> %54, ptr %6, align 8, !tbaa !14
  %55 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %48
  %56 = trunc nuw nsw i64 %46 to i32
  call void @_Z5cscaliSt7complexIfEPS0_i(i32 noundef %56, <2 x float> %54, ptr noundef %55, i32 noundef 1)
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %.not110126.not = icmp ult i64 %indvars.iv149, %43
  br i1 %.not110126.not, label %.lr.ph129.preheader, label %.loopexit112

.lr.ph129.preheader:                              ; preds = %.lr.ph132
  %57 = sext i32 %indvars.iv143 to i64
  %invariant.gep = getelementptr %"class.std::complex", ptr %0, i64 %46
  br label %.lr.ph129

.lr.ph129:                                        ; preds = %.lr.ph129.preheader, %.lr.ph129
  %indvars.iv145 = phi i64 [ %57, %.lr.ph129.preheader ], [ %indvars.iv.next146, %.lr.ph129 ]
  %58 = add nsw i64 %indvars.iv145, -1
  %59 = mul nsw i64 %58, %41
  %gep = getelementptr %"class.std::complex", ptr %invariant.gep, i64 %59
  %60 = load i64, ptr %gep, align 4, !tbaa !14
  store i64 %60, ptr %6, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %61 = load i64, ptr %8, align 8, !tbaa !14
  store i64 %61, ptr %gep, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %.sroa.04.0.copyload = load <2 x float>, ptr %6, align 8, !tbaa !14
  %62 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %59
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %indvars151, <2 x float> %.sroa.04.0.copyload, ptr noundef nonnull %55, i32 noundef 1, ptr noundef %62, i32 noundef 1)
  %indvars.iv.next146 = add nsw i64 %indvars.iv145, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next146 to i32
  %exitcond148.not = icmp eq i32 %42, %lftr.wideiv
  br i1 %exitcond148.not, label %.loopexit112, label %.lr.ph129, !llvm.loop !15

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge136
  %indvars.iv159 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next160, %._crit_edge136 ]
  %indvars161 = trunc i64 %indvars.iv159 to i32
  %63 = add nsw i64 %indvars.iv159, -1
  %64 = add nsw i32 %indvars161, -1
  %.not109.not133 = icmp ugt i64 %indvars.iv159, 1
  %65 = mul nsw i64 %63, %44
  br i1 %.not109.not133, label %.lr.ph135, label %._crit_edge136

.lr.ph135:                                        ; preds = %.preheader
  %66 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %65
  %invariant.gep168 = getelementptr %"class.std::complex", ptr %0, i64 %65
  br label %67

67:                                               ; preds = %.lr.ph135, %67
  %indvars.iv154 = phi i64 [ 1, %.lr.ph135 ], [ %indvars.iv.next155, %67 ]
  %68 = add nsw i64 %indvars.iv154, -1
  %gep169 = getelementptr %"class.std::complex", ptr %invariant.gep168, i64 %68
  %69 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %gep169)
  store <2 x float> %69, ptr %6, align 8, !tbaa !14
  %70 = mul nsw i64 %68, %44
  %71 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %70
  %72 = trunc nuw nsw i64 %indvars.iv154 to i32
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %72, <2 x float> %69, ptr noundef %66, i32 noundef 1, ptr noundef %71, i32 noundef 1)
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %exitcond158.not = icmp eq i64 %indvars.iv.next155, %indvars.iv159
  br i1 %exitcond158.not, label %._crit_edge136, label %67, !llvm.loop !16

._crit_edge136:                                   ; preds = %67, %.preheader
  %73 = mul nsw i32 %64, %1
  %74 = sext i32 %73 to i64
  %75 = getelementptr %"class.std::complex", ptr %0, i64 %63
  %76 = getelementptr %"class.std::complex", ptr %75, i64 %74
  %77 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %76)
  store <2 x float> %77, ptr %6, align 8, !tbaa !14
  %78 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %65
  call void @_Z5cscaliSt7complexIfEPS0_i(i32 noundef %indvars161, <2 x float> %77, ptr noundef %78, i32 noundef 1)
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %exitcond163.not = icmp eq i64 %indvars.iv.next160, %wide.trip.count162
  br i1 %exitcond163.not, label %.loopexit, label %.preheader, !llvm.loop !17

.loopexit:                                        ; preds = %._crit_edge136, %.preheader113, %.preheader111, %.loopexit115
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  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 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


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