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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::complex" = type { { float, float } }

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

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

; Function Attrs: nocallback nofree 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: 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) #4

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

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

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

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

28:                                               ; preds = %6
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %85, %28
  %30 = load i32, ptr %13, align 4, !tbaa !9
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = sub nsw i32 %31, 1
  %33 = icmp sle i32 %30, %32
  br i1 %33, label %34, label %88

34:                                               ; preds = %29
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = load i32, ptr %13, align 4, !tbaa !9
  %37 = sub nsw i32 %36, 1
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i32, ptr %35, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !9
  store i32 %40, ptr %14, align 4, !tbaa !9
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = load i32, ptr %14, align 4, !tbaa !9
  %43 = sub nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds %"class.std::complex", ptr %41, i64 %44
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %45, i64 8, i1 false), !tbaa.struct !11
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = icmp ne i32 %46, %47
  br i1 %48, label %49, label %65

49:                                               ; preds = %34
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = sub nsw i32 %51, 1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %"class.std::complex", ptr %50, i64 %53
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = sub nsw i32 %56, 1
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %"class.std::complex", ptr %55, i64 %58
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %54, i64 8, i1 false), !tbaa.struct !11
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = sub nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %"class.std::complex", ptr %60, i64 %63
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !11
  br label %65

65:                                               ; preds = %49, %34
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = sub nsw i32 %66, %67
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !11
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %"class.std::complex", ptr %69, i64 %71
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = sub nsw i32 %73, 1
  %75 = load i32, ptr %8, align 4, !tbaa !9
  %76 = mul nsw i32 %74, %75
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %"class.std::complex", ptr %72, i64 %77
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %"class.std::complex", ptr %79, i64 %81
  %83 = getelementptr inbounds %"class.std::complex", ptr %16, i32 0, i32 0
  %84 = load <2 x float>, ptr %83, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %68, <2 x float> %84, ptr noundef %78, i32 noundef 1, ptr noundef %82, i32 noundef 1)
  br label %85

85:                                               ; preds = %65
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %13, align 4, !tbaa !9
  br label %29, !llvm.loop !13

88:                                               ; preds = %29
  %89 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %89, ptr %13, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %136, %88
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = icmp sle i32 1, %91
  br i1 %92, label %93, label %139

93:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = sub nsw i32 %95, 1
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %"class.std::complex", ptr %94, i64 %97
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = sub nsw i32 %100, 1
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = sub nsw i32 %102, 1
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = mul nsw i32 %103, %104
  %106 = add nsw i32 %101, %105
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds %"class.std::complex", ptr %99, i64 %107
  %109 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %98, ptr noundef nonnull align 4 dereferenceable(8) %108)
  %110 = getelementptr inbounds %"class.std::complex", ptr %17, i32 0, i32 0
  store <2 x float> %109, ptr %110, align 4
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = sub nsw i32 %112, 1
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds %"class.std::complex", ptr %111, i64 %114
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %115, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load i32, ptr %13, align 4, !tbaa !9
  %118 = sub nsw i32 %117, 1
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %"class.std::complex", ptr %116, i64 %119
  %121 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %120)
  %122 = getelementptr inbounds %"class.std::complex", ptr %18, i32 0, i32 0
  store <2 x float> %121, ptr %122, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = sub nsw i32 %123, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !11
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.std::complex", ptr %125, i64 0
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = sub nsw i32 %127, 1
  %129 = load i32, ptr %8, align 4, !tbaa !9
  %130 = mul nsw i32 %128, %129
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds %"class.std::complex", ptr %126, i64 %131
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds %"class.std::complex", ptr %19, i32 0, i32 0
  %135 = load <2 x float>, ptr %134, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %124, <2 x float> %135, ptr noundef %132, i32 noundef 1, ptr noundef %133, i32 noundef 1)
  br label %136

136:                                              ; preds = %93
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = add nsw i32 %137, -1
  store i32 %138, ptr %13, align 4, !tbaa !9
  br label %90, !llvm.loop !15

139:                                              ; preds = %90
  br label %261

140:                                              ; preds = %6
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %185, %140
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = load i32, ptr %9, align 4, !tbaa !9
  %144 = icmp sle i32 %142, %143
  br i1 %144, label %145, label %188

145:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %146 = load i32, ptr %13, align 4, !tbaa !9
  %147 = sub nsw i32 %146, 1
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %"class.std::complex", ptr %148, i64 0
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = sub nsw i32 %150, 1
  %152 = load i32, ptr %8, align 4, !tbaa !9
  %153 = mul nsw i32 %151, %152
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds %"class.std::complex", ptr %149, i64 %154
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = call <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef %147, ptr noundef %155, i32 noundef 1, ptr noundef %156, i32 noundef 1)
  %158 = getelementptr inbounds %"class.std::complex", ptr %20, i32 0, i32 0
  store <2 x float> %157, ptr %158, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = sub nsw i32 %160, 1
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds %"class.std::complex", ptr %159, i64 %162
  %164 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %163, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %165 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  store <2 x float> %164, ptr %165, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = sub nsw i32 %167, 1
  %169 = load i32, ptr %13, align 4, !tbaa !9
  %170 = sub nsw i32 %169, 1
  %171 = load i32, ptr %8, align 4, !tbaa !9
  %172 = mul nsw i32 %170, %171
  %173 = add nsw i32 %168, %172
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds %"class.std::complex", ptr %166, i64 %174
  %176 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %175)
  %177 = getelementptr inbounds %"class.std::complex", ptr %23, i32 0, i32 0
  store <2 x float> %176, ptr %177, align 4
  %178 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %23)
  %179 = getelementptr inbounds %"class.std::complex", ptr %21, i32 0, i32 0
  store <2 x float> %178, ptr %179, align 4
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = load i32, ptr %13, align 4, !tbaa !9
  %182 = sub nsw i32 %181, 1
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds %"class.std::complex", ptr %180, i64 %183
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %184, ptr align 4 %21, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %185

185:                                              ; preds = %145
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %13, align 4, !tbaa !9
  br label %141, !llvm.loop !16

188:                                              ; preds = %141
  %189 = load i32, ptr %9, align 4, !tbaa !9
  %190 = sub nsw i32 %189, 1
  store i32 %190, ptr %13, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %257, %188
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = icmp sle i32 1, %192
  br i1 %193, label %194, label %260

194:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = load i32, ptr %13, align 4, !tbaa !9
  %197 = sub nsw i32 %196, 1
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds %"class.std::complex", ptr %195, i64 %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %200 = load i32, ptr %9, align 4, !tbaa !9
  %201 = load i32, ptr %13, align 4, !tbaa !9
  %202 = sub nsw i32 %200, %201
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds %"class.std::complex", ptr %203, i64 %205
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = sub nsw i32 %207, 1
  %209 = load i32, ptr %8, align 4, !tbaa !9
  %210 = mul nsw i32 %208, %209
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds %"class.std::complex", ptr %206, i64 %211
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds %"class.std::complex", ptr %213, i64 %215
  %217 = call <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef %202, ptr noundef %212, i32 noundef 1, ptr noundef %216, i32 noundef 1)
  %218 = getelementptr inbounds %"class.std::complex", ptr %25, i32 0, i32 0
  store <2 x float> %217, ptr %218, align 4
  %219 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %199, ptr noundef nonnull align 4 dereferenceable(8) %25)
  %220 = getelementptr inbounds %"class.std::complex", ptr %24, i32 0, i32 0
  store <2 x float> %219, ptr %220, align 4
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  %222 = load i32, ptr %13, align 4, !tbaa !9
  %223 = sub nsw i32 %222, 1
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds %"class.std::complex", ptr %221, i64 %224
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %225, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  %227 = load i32, ptr %13, align 4, !tbaa !9
  %228 = sub nsw i32 %227, 1
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds i32, ptr %226, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !9
  store i32 %231, ptr %14, align 4, !tbaa !9
  %232 = load i32, ptr %14, align 4, !tbaa !9
  %233 = load i32, ptr %13, align 4, !tbaa !9
  %234 = icmp ne i32 %232, %233
  br i1 %234, label %235, label %256

235:                                              ; preds = %194
  %236 = load ptr, ptr %11, align 8, !tbaa !5
  %237 = load i32, ptr %14, align 4, !tbaa !9
  %238 = sub nsw i32 %237, 1
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds %"class.std::complex", ptr %236, i64 %239
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %240, i64 8, i1 false), !tbaa.struct !11
  %241 = load ptr, ptr %11, align 8, !tbaa !5
  %242 = load i32, ptr %13, 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 = load ptr, ptr %11, align 8, !tbaa !5
  %247 = load i32, ptr %14, align 4, !tbaa !9
  %248 = sub nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds %"class.std::complex", ptr %246, i64 %249
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %250, ptr align 4 %245, i64 8, i1 false), !tbaa.struct !11
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = load i32, ptr %13, align 4, !tbaa !9
  %253 = sub nsw i32 %252, 1
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds %"class.std::complex", ptr %251, i64 %254
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %255, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !11
  br label %256

256:                                              ; preds = %235, %194
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %13, align 4, !tbaa !9
  %259 = add nsw i32 %258, -1
  store i32 %259, ptr %13, align 4, !tbaa !9
  br label %191, !llvm.loop !17

260:                                              ; preds = %191
  br label %261

261:                                              ; preds = %260, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  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 = { "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 8, !12}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


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

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

declare <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) 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 #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5cgeslPSt7complexIfEiiPiS1_i(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, ptr noundef %4, i32 noundef %5) local_unnamed_addr #4 {
  %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
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %11 = icmp eq i32 %5, 0
  br i1 %11, label %.preheader95, label %.preheader98

.preheader98:                                     ; preds = %6
  %.not99 = icmp slt i32 %2, 1
  br i1 %.not99, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader98
  %12 = sext i32 %1 to i64
  %13 = add nuw i32 %2, 1
  %wide.trip.count = zext i32 %13 to i64
  br label %.lr.ph

.preheader95:                                     ; preds = %6
  %invariant.gep105 = getelementptr i8, ptr %4, i64 -8
  %.not93.not107 = icmp sgt i32 %2, 1
  br i1 %.not93.not107, label %.lr.ph109.preheader, label %.preheader

.lr.ph109.preheader:                              ; preds = %.preheader95
  %14 = sext i32 %1 to i64
  %wide.trip.count120 = zext nneg i32 %2 to i64
  br label %.lr.ph109

.preheader:                                       ; preds = %28, %.preheader95
  %15 = icmp sgt i32 %2, 0
  br i1 %15, label %.lr.ph111.preheader, label %.loopexit

.lr.ph111.preheader:                              ; preds = %.preheader
  %16 = zext nneg i32 %2 to i64
  %17 = sext i32 %1 to i64
  br label %.lr.ph111

.lr.ph109:                                        ; preds = %.lr.ph109.preheader, %28
  %indvars.iv117 = phi i64 [ 1, %.lr.ph109.preheader ], [ %indvars.iv.next118, %28 ]
  %18 = add nsw i64 %indvars.iv117, -1
  %19 = getelementptr inbounds i32, ptr %3, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %gep106 = getelementptr %"class.std::complex", ptr %invariant.gep105, i64 %21
  %22 = load i64, ptr %gep106, align 4, !tbaa !9
  store i64 %22, ptr %7, align 8, !tbaa !9
  %23 = zext i32 %20 to i64
  %.not94 = icmp eq i64 %indvars.iv117, %23
  %24 = bitcast i64 %22 to <2 x float>
  br i1 %.not94, label %28, label %25

25:                                               ; preds = %.lr.ph109
  %26 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %18
  %27 = load i64, ptr %26, align 4, !tbaa !9
  store i64 %27, ptr %gep106, align 4, !tbaa !9
  store i64 %22, ptr %26, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %25, %.lr.ph109
  %29 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %indvars.iv117
  %30 = mul nsw i64 %18, %14
  %31 = getelementptr inbounds %"class.std::complex", ptr %29, i64 %30
  %32 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %indvars.iv117
  %33 = trunc i64 %indvars.iv117 to i32
  %34 = sub i32 %2, %33
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %34, <2 x float> %24, ptr noundef nonnull %31, i32 noundef 1, ptr noundef nonnull %32, i32 noundef 1)
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %exitcond121.not = icmp eq i64 %indvars.iv.next118, %wide.trip.count120
  br i1 %exitcond121.not, label %.preheader, label %.lr.ph109, !llvm.loop !10

.lr.ph111:                                        ; preds = %.lr.ph111.preheader, %.lr.ph111
  %indvars.iv122 = phi i64 [ %16, %.lr.ph111.preheader ], [ %indvars.iv.next123, %.lr.ph111 ]
  %indvars.iv.next123 = add nsw i64 %indvars.iv122, -1
  %indvars = trunc i64 %indvars.iv.next123 to i32
  %35 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %indvars.iv.next123
  %36 = mul nsw i64 %indvars.iv.next123, %17
  %37 = mul nsw i32 %indvars, %1
  %38 = sext i32 %37 to i64
  %39 = getelementptr %"class.std::complex", ptr %0, i64 %indvars.iv.next123
  %40 = getelementptr %"class.std::complex", ptr %39, i64 %38
  %41 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(8) %40)
  store <2 x float> %41, ptr %35, align 4, !tbaa !9
  %42 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %35)
  store <2 x float> %42, ptr %7, align 8, !tbaa !9
  %43 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %36
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %indvars, <2 x float> %42, ptr noundef %43, i32 noundef 1, ptr noundef %4, i32 noundef 1)
  %44 = icmp ugt i64 %indvars.iv122, 1
  br i1 %44, label %.lr.ph111, label %.loopexit, !llvm.loop !12

.preheader96:                                     ; preds = %.lr.ph
  %invariant.gep = getelementptr i8, ptr %4, i64 -8
  %.not = icmp eq i32 %2, 1
  br i1 %.not, label %.loopexit, label %.lr.ph104.preheader

.lr.ph104.preheader:                              ; preds = %.preheader96
  %45 = zext nneg i32 %2 to i64
  %46 = sext i32 %1 to i64
  br label %.lr.ph104

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %47 = add nsw i64 %indvars.iv, -1
  %48 = mul nsw i64 %47, %12
  %49 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %48
  %50 = trunc nuw nsw i64 %47 to i32
  %51 = call <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef %50, ptr noundef %49, i32 noundef 1, ptr noundef %4, i32 noundef 1)
  store <2 x float> %51, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %52 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %47
  %53 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %53, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %54 = getelementptr %"class.std::complex", ptr %0, i64 %48
  %55 = getelementptr %"class.std::complex", ptr %54, i64 %47
  %56 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %55)
  store <2 x float> %56, ptr %9, align 8
  %57 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %57, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %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 %.preheader96, label %.lr.ph, !llvm.loop !13

.lr.ph104:                                        ; preds = %.lr.ph104.preheader, %74
  %indvars.iv114 = phi i64 [ %45, %.lr.ph104.preheader ], [ %indvars.iv.next115, %74 ]
  %indvars.iv.next115 = add nsw i64 %indvars.iv114, -1
  %58 = add nsw i64 %indvars.iv114, -2
  %59 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %58
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %60 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %indvars.iv.next115
  %61 = mul nsw i64 %58, %46
  %62 = getelementptr inbounds %"class.std::complex", ptr %60, i64 %61
  %63 = getelementptr inbounds %"class.std::complex", ptr %4, i64 %indvars.iv.next115
  %64 = trunc i64 %indvars.iv.next115 to i32
  %65 = sub i32 %2, %64
  %66 = call <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef %65, ptr noundef %62, i32 noundef 1, ptr noundef %63, i32 noundef 1)
  store <2 x float> %66, ptr %10, align 8
  %67 = call <2 x float> @_ZStplIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %67, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %68 = getelementptr inbounds i32, ptr %3, i64 %58
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %.not92 = icmp eq i64 %indvars.iv.next115, %70
  br i1 %.not92, label %74, label %71

71:                                               ; preds = %.lr.ph104
  %72 = sext i32 %69 to i64
  %gep = getelementptr %"class.std::complex", ptr %invariant.gep, i64 %72
  %73 = load i64, ptr %gep, align 4, !tbaa !9
  store i64 %73, ptr %7, align 8, !tbaa !9
  store <2 x float> %67, ptr %gep, align 4, !tbaa !9
  store i64 %73, ptr %59, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %.lr.ph104, %71
  %75 = icmp ugt i64 %indvars.iv114, 2
  br i1 %75, label %.lr.ph104, label %.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %74, %.lr.ph111, %.preheader98, %.preheader96, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  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 = { "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"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}


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