; LLVM IR from kkumatani/distant_speech_recognition :: btk20_src/matrix/linpack_c.ll (Z5ctrslPSt7complexIfEiiS1_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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5ctrslPSt7complexIfEiiS1_i(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #5 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %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 %"class.std::complex", align 4
  %18 = alloca %"class.std::complex", align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::complex", align 4
  %21 = alloca %"class.std::complex", align 4
  %22 = alloca %"class.std::complex", align 4
  %23 = alloca %"class.std::complex", align 4
  %24 = alloca %"class.std::complex", align 4
  %25 = alloca %"class.std::complex", align 4
  %26 = alloca %"class.std::complex", align 4
  %27 = alloca %"class.std::complex", align 4
  %28 = alloca %"class.std::complex", align 4
  %29 = alloca %"class.std::complex", align 4
  %30 = alloca %"class.std::complex", align 4
  %31 = alloca %"class.std::complex", align 4
  %32 = alloca %"class.std::complex", align 4
  %33 = alloca %"class.std::complex", align 4
  %34 = alloca %"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
  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 i32 %4, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  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 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef 0.000000e+00, float noundef 0.000000e+00)
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %63, %5
  %41 = load i32, ptr %13, align 4, !tbaa !9
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %44, label %66

44:                                               ; preds = %40
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load i32, ptr %13, align 4, !tbaa !9
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = mul nsw i32 %47, %48
  %50 = add nsw i32 %46, %49
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %"class.std::complex", ptr %45, i64 %51
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %52, i64 8, i1 false), !tbaa.struct !11
  %53 = getelementptr inbounds %"class.std::complex", ptr %18, i32 0, i32 0
  %54 = load <2 x float>, ptr %53, align 4
  %55 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %54)
  %56 = fpext float %55 to double
  %57 = fcmp oeq double %56, 0.000000e+00
  br i1 %57, label %58, label %62

58:                                               ; preds = %44
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %14, align 4, !tbaa !9
  %61 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %61, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %409

62:                                               ; preds = %44
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %13, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %13, align 4, !tbaa !9
  br label %40, !llvm.loop !13

66:                                               ; preds = %40
  store i32 0, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = srem i32 %67, 10
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %66
  store i32 2, ptr %12, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %70, %66
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = srem i32 %72, 100
  %74 = sdiv i32 %73, 10
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %79

76:                                               ; preds = %71
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = add nsw i32 %77, 2
  store i32 %78, ptr %12, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %76, %71
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = icmp eq i32 %80, 1
  br i1 %81, label %82, label %155

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.std::complex", ptr %83, i64 0
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = mul nsw i32 0, %86
  %88 = add nsw i32 0, %87
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %"class.std::complex", ptr %85, i64 %89
  %91 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %84, ptr noundef nonnull align 4 dereferenceable(8) %90)
  %92 = getelementptr inbounds %"class.std::complex", ptr %20, i32 0, i32 0
  store <2 x float> %91, ptr %92, align 4
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.std::complex", ptr %93, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  store i32 2, ptr %15, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %151, %82
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = icmp sle i32 %96, %97
  br i1 %98, label %99, label %154

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = sub nsw i32 %101, 2
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds %"class.std::complex", ptr %100, i64 %103
  %105 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %104)
  %106 = getelementptr inbounds %"class.std::complex", ptr %21, i32 0, i32 0
  store <2 x float> %105, ptr %106, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %21, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = sub nsw i32 %107, %108
  %110 = add nsw i32 %109, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %"class.std::complex", ptr %111, i64 %113
  %115 = getelementptr inbounds %"class.std::complex", ptr %114, i64 -1
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = sub nsw i32 %116, 2
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = mul nsw i32 %117, %118
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds %"class.std::complex", ptr %115, i64 %120
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds %"class.std::complex", ptr %122, i64 %124
  %126 = getelementptr inbounds %"class.std::complex", ptr %125, i64 -1
  %127 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  %128 = load <2 x float>, ptr %127, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %110, <2 x float> %128, ptr noundef %121, i32 noundef 1, ptr noundef %126, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = sub nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds %"class.std::complex", ptr %129, i64 %132
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = load i32, ptr %15, align 4, !tbaa !9
  %136 = sub nsw i32 %135, 1
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = sub nsw i32 %137, 1
  %139 = load i32, ptr %8, align 4, !tbaa !9
  %140 = mul nsw i32 %138, %139
  %141 = add nsw i32 %136, %140
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds %"class.std::complex", ptr %134, i64 %142
  %144 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %133, ptr noundef nonnull align 4 dereferenceable(8) %143)
  %145 = getelementptr inbounds %"class.std::complex", ptr %23, i32 0, i32 0
  store <2 x float> %144, ptr %145, align 4
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = sub nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds %"class.std::complex", ptr %146, i64 %149
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %150, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %151

151:                                              ; preds = %99
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %15, align 4, !tbaa !9
  br label %95, !llvm.loop !15

154:                                              ; preds = %95
  br label %407

155:                                              ; preds = %79
  %156 = load i32, ptr %12, align 4, !tbaa !9
  %157 = icmp eq i32 %156, 2
  br i1 %157, label %158, label %233

158:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = load i32, ptr %9, 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 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = load i32, ptr %9, align 4, !tbaa !9
  %166 = sub nsw i32 %165, 1
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = sub nsw i32 %167, 1
  %169 = load i32, ptr %8, align 4, !tbaa !9
  %170 = mul nsw i32 %168, %169
  %171 = add nsw i32 %166, %170
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds %"class.std::complex", ptr %164, i64 %172
  %174 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %163, ptr noundef nonnull align 4 dereferenceable(8) %173)
  %175 = getelementptr inbounds %"class.std::complex", ptr %24, i32 0, i32 0
  store <2 x float> %174, ptr %175, align 4
  %176 = load ptr, ptr %10, align 8, !tbaa !5
  %177 = load i32, ptr %9, align 4, !tbaa !9
  %178 = sub nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds %"class.std::complex", ptr %176, i64 %179
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %180, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  store i32 2, ptr %16, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %229, %158
  %182 = load i32, ptr %16, align 4, !tbaa !9
  %183 = load i32, ptr %9, align 4, !tbaa !9
  %184 = icmp sle i32 %182, %183
  br i1 %184, label %185, label %232

185:                                              ; preds = %181
  %186 = load i32, ptr %9, align 4, !tbaa !9
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = sub nsw i32 %186, %187
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  %191 = load i32, ptr %15, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds %"class.std::complex", ptr %190, i64 %192
  %194 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %193)
  %195 = getelementptr inbounds %"class.std::complex", ptr %25, i32 0, i32 0
  store <2 x float> %194, ptr %195, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %25, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  %196 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds %"class.std::complex", ptr %197, i64 0
  %199 = load i32, ptr %15, align 4, !tbaa !9
  %200 = load i32, ptr %8, align 4, !tbaa !9
  %201 = mul nsw i32 %199, %200
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds %"class.std::complex", ptr %198, i64 %202
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = getelementptr inbounds %"class.std::complex", ptr %26, i32 0, i32 0
  %206 = load <2 x float>, ptr %205, align 4
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %196, <2 x float> %206, ptr noundef %203, i32 noundef 1, ptr noundef %204, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = sub nsw i32 %208, 1
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds %"class.std::complex", ptr %207, i64 %210
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = load i32, ptr %15, align 4, !tbaa !9
  %214 = sub nsw i32 %213, 1
  %215 = load i32, ptr %15, align 4, !tbaa !9
  %216 = sub nsw i32 %215, 1
  %217 = load i32, ptr %8, align 4, !tbaa !9
  %218 = mul nsw i32 %216, %217
  %219 = add nsw i32 %214, %218
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds %"class.std::complex", ptr %212, i64 %220
  %222 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %211, ptr noundef nonnull align 4 dereferenceable(8) %221)
  %223 = getelementptr inbounds %"class.std::complex", ptr %27, i32 0, i32 0
  store <2 x float> %222, ptr %223, align 4
  %224 = load ptr, ptr %10, align 8, !tbaa !5
  %225 = load i32, ptr %15, align 4, !tbaa !9
  %226 = sub nsw i32 %225, 1
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds %"class.std::complex", ptr %224, i64 %227
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %228, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %229

229:                                              ; preds = %185
  %230 = load i32, ptr %16, align 4, !tbaa !9
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %16, align 4, !tbaa !9
  br label %181, !llvm.loop !16

232:                                              ; preds = %181
  br label %406

233:                                              ; preds = %155
  %234 = load i32, ptr %12, align 4, !tbaa !9
  %235 = icmp eq i32 %234, 3
  br i1 %235, label %236, label %328

236:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = load i32, ptr %9, align 4, !tbaa !9
  %239 = sub nsw i32 %238, 1
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds %"class.std::complex", ptr %237, i64 %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  %243 = load i32, ptr %9, align 4, !tbaa !9
  %244 = sub nsw i32 %243, 1
  %245 = load i32, ptr %9, align 4, !tbaa !9
  %246 = sub nsw i32 %245, 1
  %247 = load i32, ptr %8, align 4, !tbaa !9
  %248 = mul nsw i32 %246, %247
  %249 = add nsw i32 %244, %248
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds %"class.std::complex", ptr %242, i64 %250
  %252 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %251)
  %253 = getelementptr inbounds %"class.std::complex", ptr %29, i32 0, i32 0
  store <2 x float> %252, ptr %253, align 4
  %254 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %241, ptr noundef nonnull align 4 dereferenceable(8) %29)
  %255 = getelementptr inbounds %"class.std::complex", ptr %28, i32 0, i32 0
  store <2 x float> %254, ptr %255, align 4
  %256 = load ptr, ptr %10, align 8, !tbaa !5
  %257 = load i32, ptr %9, align 4, !tbaa !9
  %258 = sub nsw i32 %257, 1
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds %"class.std::complex", ptr %256, i64 %259
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %260, ptr align 4 %28, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  store i32 2, ptr %16, align 4, !tbaa !9
  br label %261

261:                                              ; preds = %324, %236
  %262 = load i32, ptr %16, align 4, !tbaa !9
  %263 = load i32, ptr %9, align 4, !tbaa !9
  %264 = icmp sle i32 %262, %263
  br i1 %264, label %265, label %327

265:                                              ; preds = %261
  %266 = load i32, ptr %9, align 4, !tbaa !9
  %267 = load i32, ptr %16, align 4, !tbaa !9
  %268 = sub nsw i32 %266, %267
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %270 = load ptr, ptr %10, align 8, !tbaa !5
  %271 = load i32, ptr %15, align 4, !tbaa !9
  %272 = sub nsw i32 %271, 1
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds %"class.std::complex", ptr %270, i64 %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %275 = load i32, ptr %16, align 4, !tbaa !9
  %276 = sub nsw i32 %275, 1
  %277 = load ptr, ptr %7, align 8, !tbaa !5
  %278 = load i32, ptr %15, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds %"class.std::complex", ptr %277, i64 %279
  %281 = load i32, ptr %15, align 4, !tbaa !9
  %282 = sub nsw i32 %281, 1
  %283 = load i32, ptr %8, align 4, !tbaa !9
  %284 = mul nsw i32 %282, %283
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds %"class.std::complex", ptr %280, i64 %285
  %287 = load ptr, ptr %10, align 8, !tbaa !5
  %288 = load i32, ptr %15, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds %"class.std::complex", ptr %287, i64 %289
  %291 = call <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef %276, ptr noundef %286, i32 noundef 1, ptr noundef %290, i32 noundef 1)
  %292 = getelementptr inbounds %"class.std::complex", ptr %31, i32 0, i32 0
  store <2 x float> %291, ptr %292, align 4
  %293 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %274, ptr noundef nonnull align 4 dereferenceable(8) %31)
  %294 = getelementptr inbounds %"class.std::complex", ptr %30, i32 0, i32 0
  store <2 x float> %293, ptr %294, align 4
  %295 = load ptr, ptr %10, align 8, !tbaa !5
  %296 = load i32, ptr %15, align 4, !tbaa !9
  %297 = sub nsw i32 %296, 1
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds %"class.std::complex", ptr %295, i64 %298
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %299, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %300 = load ptr, ptr %10, align 8, !tbaa !5
  %301 = load i32, ptr %15, align 4, !tbaa !9
  %302 = sub nsw i32 %301, 1
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds %"class.std::complex", ptr %300, i64 %303
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %305 = load ptr, ptr %7, align 8, !tbaa !5
  %306 = load i32, ptr %15, align 4, !tbaa !9
  %307 = sub nsw i32 %306, 1
  %308 = load i32, ptr %15, align 4, !tbaa !9
  %309 = sub nsw i32 %308, 1
  %310 = load i32, ptr %8, align 4, !tbaa !9
  %311 = mul nsw i32 %309, %310
  %312 = add nsw i32 %307, %311
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds %"class.std::complex", ptr %305, i64 %313
  %315 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %314)
  %316 = getelementptr inbounds %"class.std::complex", ptr %33, i32 0, i32 0
  store <2 x float> %315, ptr %316, align 4
  %317 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %304, ptr noundef nonnull align 4 dereferenceable(8) %33)
  %318 = getelementptr inbounds %"class.std::complex", ptr %32, i32 0, i32 0
  store <2 x float> %317, ptr %318, align 4
  %319 = load ptr, ptr %10, align 8, !tbaa !5
  %320 = load i32, ptr %15, align 4, !tbaa !9
  %321 = sub nsw i32 %320, 1
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds %"class.std::complex", ptr %319, i64 %322
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %323, ptr align 4 %32, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %324

324:                                              ; preds = %265
  %325 = load i32, ptr %16, align 4, !tbaa !9
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %16, align 4, !tbaa !9
  br label %261, !llvm.loop !17

327:                                              ; preds = %261
  br label %405

328:                                              ; preds = %233
  %329 = load i32, ptr %12, align 4, !tbaa !9
  %330 = icmp eq i32 %329, 4
  br i1 %330, label %331, label %404

331:                                              ; preds = %328
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %332 = load ptr, ptr %10, align 8, !tbaa !5
  %333 = getelementptr inbounds %"class.std::complex", ptr %332, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %334 = load ptr, ptr %7, align 8, !tbaa !5
  %335 = load i32, ptr %8, align 4, !tbaa !9
  %336 = mul nsw i32 0, %335
  %337 = add nsw i32 0, %336
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds %"class.std::complex", ptr %334, i64 %338
  %340 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %339)
  %341 = getelementptr inbounds %"class.std::complex", ptr %35, i32 0, i32 0
  store <2 x float> %340, ptr %341, align 4
  %342 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %333, ptr noundef nonnull align 4 dereferenceable(8) %35)
  %343 = getelementptr inbounds %"class.std::complex", ptr %34, i32 0, i32 0
  store <2 x float> %342, ptr %343, align 4
  %344 = load ptr, ptr %10, align 8, !tbaa !5
  %345 = getelementptr inbounds %"class.std::complex", ptr %344, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %345, ptr align 4 %34, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  store i32 2, ptr %15, align 4, !tbaa !9
  br label %346

346:                                              ; preds = %400, %331
  %347 = load i32, ptr %15, align 4, !tbaa !9
  %348 = load i32, ptr %9, align 4, !tbaa !9
  %349 = icmp sle i32 %347, %348
  br i1 %349, label %350, label %403

350:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %351 = load ptr, ptr %10, align 8, !tbaa !5
  %352 = load i32, ptr %15, align 4, !tbaa !9
  %353 = sub nsw i32 %352, 1
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds %"class.std::complex", ptr %351, i64 %354
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %356 = load i32, ptr %15, align 4, !tbaa !9
  %357 = sub nsw i32 %356, 1
  %358 = load ptr, ptr %7, align 8, !tbaa !5
  %359 = getelementptr inbounds %"class.std::complex", ptr %358, i64 0
  %360 = load i32, ptr %15, align 4, !tbaa !9
  %361 = sub nsw i32 %360, 1
  %362 = load i32, ptr %8, align 4, !tbaa !9
  %363 = mul nsw i32 %361, %362
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds %"class.std::complex", ptr %359, i64 %364
  %366 = load ptr, ptr %10, align 8, !tbaa !5
  %367 = call <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef %357, ptr noundef %365, i32 noundef 1, ptr noundef %366, i32 noundef 1)
  %368 = getelementptr inbounds %"class.std::complex", ptr %37, i32 0, i32 0
  store <2 x float> %367, ptr %368, align 4
  %369 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %355, ptr noundef nonnull align 4 dereferenceable(8) %37)
  %370 = getelementptr inbounds %"class.std::complex", ptr %36, i32 0, i32 0
  store <2 x float> %369, ptr %370, align 4
  %371 = load ptr, ptr %10, align 8, !tbaa !5
  %372 = load i32, ptr %15, align 4, !tbaa !9
  %373 = sub nsw i32 %372, 1
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds %"class.std::complex", ptr %371, i64 %374
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %375, ptr align 4 %36, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %376 = load ptr, ptr %10, align 8, !tbaa !5
  %377 = load i32, ptr %15, 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.lifetime.start.p0(i64 8, ptr %39) #6
  %381 = load ptr, ptr %7, align 8, !tbaa !5
  %382 = load i32, ptr %15, align 4, !tbaa !9
  %383 = sub nsw i32 %382, 1
  %384 = load i32, ptr %15, align 4, !tbaa !9
  %385 = sub nsw i32 %384, 1
  %386 = load i32, ptr %8, align 4, !tbaa !9
  %387 = mul nsw i32 %385, %386
  %388 = add nsw i32 %383, %387
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds %"class.std::complex", ptr %381, i64 %389
  %391 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %390)
  %392 = getelementptr inbounds %"class.std::complex", ptr %39, i32 0, i32 0
  store <2 x float> %391, ptr %392, align 4
  %393 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %380, ptr noundef nonnull align 4 dereferenceable(8) %39)
  %394 = getelementptr inbounds %"class.std::complex", ptr %38, i32 0, i32 0
  store <2 x float> %393, ptr %394, align 4
  %395 = load ptr, ptr %10, align 8, !tbaa !5
  %396 = load i32, ptr %15, align 4, !tbaa !9
  %397 = sub nsw i32 %396, 1
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds %"class.std::complex", ptr %395, i64 %398
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %399, ptr align 4 %38, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  br label %400

400:                                              ; preds = %350
  %401 = load i32, ptr %15, align 4, !tbaa !9
  %402 = add nsw i32 %401, 1
  store i32 %402, ptr %15, align 4, !tbaa !9
  br label %346, !llvm.loop !18

403:                                              ; preds = %346
  br label %404

404:                                              ; preds = %403, %328
  br label %405

405:                                              ; preds = %404, %327
  br label %406

406:                                              ; preds = %405, %232
  br label %407

407:                                              ; preds = %406, %154
  %408 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %408, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %409

409:                                              ; preds = %407, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %410 = load i32, ptr %6, align 4
  ret i32 %410
}

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}
!18 = distinct !{!18, !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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5ctrslPSt7complexIfEiiS1_i(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #4 {
  %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 8
  %12 = alloca %"class.std::complex", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %13 = icmp sgt i32 %2, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %14 = add i32 %1, 1
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %15

15:                                               ; preds = %.lr.ph, %24
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %24 ]
  %16 = trunc nuw nsw i64 %indvars.iv to i32
  %17 = mul i32 %14, %16
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %18
  %.sroa.014.0.copyload = load <2 x float>, ptr %19, align 4, !tbaa !5
  %20 = call noundef float @_Z5cabs1St7complexIfE(<2 x float> %.sroa.014.0.copyload)
  %21 = fcmp oeq float %20, 0.000000e+00
  br i1 %21, label %22, label %24

22:                                               ; preds = %15
  %23 = add nuw nsw i32 %16, 1
  br label %.loopexit

24:                                               ; preds = %15
  %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 %._crit_edge, label %15, !llvm.loop !8

._crit_edge:                                      ; preds = %24, %5
  %25 = srem i32 %4, 10
  %.not = icmp eq i32 %25, 0
  %spec.store.select = select i1 %.not, i32 1, i32 2
  %26 = srem i32 %4, 100
  %.off = add nsw i32 %26, 9
  %.not146 = icmp ult i32 %.off, 19
  %27 = add nuw nsw i32 %spec.store.select, 2
  %spec.select = select i1 %.not146, i32 %spec.store.select, i32 %27
  switch i32 %spec.select, label %104 [
    i32 1, label %28
    i32 2, label %48
    i32 3, label %73
  ]

28:                                               ; preds = %._crit_edge
  %29 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %0)
  store <2 x float> %29, ptr %3, align 4, !tbaa !5
  %invariant.gep = getelementptr i8, ptr %0, i64 -8
  %invariant.gep164 = getelementptr i8, ptr %3, i64 -8
  %.not150166 = icmp slt i32 %2, 2
  br i1 %.not150166, label %.loopexit, label %.lr.ph169

.lr.ph169:                                        ; preds = %28
  %30 = add nuw i32 %2, 1
  %31 = add i32 %1, 1
  %32 = sext i32 %1 to i64
  %wide.trip.count192 = zext i32 %30 to i64
  br label %33

33:                                               ; preds = %.lr.ph169, %33
  %indvars.iv189 = phi i64 [ 2, %.lr.ph169 ], [ %indvars.iv.next190, %33 ]
  %34 = add nsw i64 %indvars.iv189, -2
  %35 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %34
  %36 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %35)
  store <2 x float> %36, ptr %6, align 8, !tbaa !5
  %37 = trunc nuw nsw i64 %indvars.iv189 to i32
  %38 = sub i32 %30, %37
  %gep = getelementptr %"class.std::complex", ptr %invariant.gep, i64 %indvars.iv189
  %39 = mul nsw i64 %34, %32
  %40 = getelementptr inbounds %"class.std::complex", ptr %gep, i64 %39
  %gep165 = getelementptr %"class.std::complex", ptr %invariant.gep164, i64 %indvars.iv189
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %38, <2 x float> %36, ptr noundef nonnull %40, i32 noundef 1, ptr noundef nonnull %gep165, i32 noundef 1)
  %41 = add nsw i64 %indvars.iv189, -1
  %42 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %41
  %43 = trunc nuw nsw i64 %41 to i32
  %44 = mul i32 %31, %43
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %45
  %47 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef nonnull align 4 dereferenceable(8) %46)
  store <2 x float> %47, ptr %42, align 4, !tbaa !5
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %exitcond193.not = icmp eq i64 %indvars.iv.next190, %wide.trip.count192
  br i1 %exitcond193.not, label %.loopexit, label %33, !llvm.loop !10

48:                                               ; preds = %._crit_edge
  %49 = add nsw i32 %2, -1
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %50
  %52 = add i32 %1, 1
  %53 = mul i32 %49, %52
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %54
  %56 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(8) %55)
  store <2 x float> %56, ptr %51, align 4, !tbaa !5
  %.not149160 = icmp slt i32 %2, 2
  br i1 %.not149160, label %.loopexit, label %.lr.ph163.preheader

.lr.ph163.preheader:                              ; preds = %48
  %57 = zext nneg i32 %2 to i64
  %58 = sext i32 %1 to i64
  %59 = add nuw i32 %2, 1
  %wide.trip.count187 = zext i32 %59 to i64
  br label %.lr.ph163

.lr.ph163:                                        ; preds = %.lr.ph163.preheader, %.lr.ph163
  %indvars.iv184 = phi i64 [ 2, %.lr.ph163.preheader ], [ %indvars.iv.next185, %.lr.ph163 ]
  %60 = sub nsw i64 %57, %indvars.iv184
  %61 = add nsw i64 %60, 1
  %62 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %61
  %63 = call <2 x float> @_ZStngIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %62)
  store <2 x float> %63, ptr %6, align 8, !tbaa !5
  %64 = mul nsw i64 %61, %58
  %65 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %64
  %66 = trunc nsw i64 %61 to i32
  call void @_Z5caxpyiSt7complexIfEPS0_iS1_i(i32 noundef %66, <2 x float> %63, ptr noundef %65, i32 noundef 1, ptr noundef nonnull %3, i32 noundef 1)
  %67 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %60
  %68 = trunc nsw i64 %60 to i32
  %69 = mul i32 %52, %68
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %70
  %72 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %67, ptr noundef nonnull align 4 dereferenceable(8) %71)
  store <2 x float> %72, ptr %67, align 4, !tbaa !5
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next185, %wide.trip.count187
  br i1 %exitcond188.not, label %.loopexit, label %.lr.ph163, !llvm.loop !11

73:                                               ; preds = %._crit_edge
  %74 = add nsw i32 %2, -1
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %75
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %77 = add i32 %1, 1
  %78 = mul i32 %74, %77
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %79
  %81 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %80)
  store <2 x float> %81, ptr %7, align 8
  %82 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %76, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %82, ptr %76, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %.not148156 = icmp slt i32 %2, 2
  br i1 %.not148156, label %.loopexit, label %.lr.ph159.preheader

.lr.ph159.preheader:                              ; preds = %73
  %83 = zext nneg i32 %2 to i64
  %84 = sext i32 %1 to i64
  %85 = add nuw i32 %2, 1
  %wide.trip.count182 = zext i32 %85 to i64
  br label %.lr.ph159

.lr.ph159:                                        ; preds = %.lr.ph159.preheader, %.lr.ph159
  %indvars.iv179 = phi i64 [ 2, %.lr.ph159.preheader ], [ %indvars.iv.next180, %.lr.ph159 ]
  %indvars181 = trunc i64 %indvars.iv179 to i32
  %86 = sub nsw i64 %83, %indvars.iv179
  %87 = sub nsw i32 %2, %indvars181
  %88 = add nsw i64 %86, 1
  %89 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %86
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %90 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %88
  %91 = mul nsw i64 %86, %84
  %92 = mul nsw i32 %87, %1
  %93 = getelementptr inbounds %"class.std::complex", ptr %90, i64 %91
  %94 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %88
  %95 = trunc i64 %indvars.iv179 to i32
  %96 = add i32 %95, -1
  %97 = call <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef %96, ptr noundef %93, i32 noundef 1, ptr noundef %94, i32 noundef 1)
  store <2 x float> %97, ptr %8, align 8
  %98 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %89, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %98, ptr %89, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %99 = sext i32 %92 to i64
  %100 = getelementptr %"class.std::complex", ptr %0, i64 %86
  %101 = getelementptr %"class.std::complex", ptr %100, i64 %99
  %102 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %101)
  store <2 x float> %102, ptr %9, align 8
  %103 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %89, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %103, ptr %89, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %exitcond183.not = icmp eq i64 %indvars.iv.next180, %wide.trip.count182
  br i1 %exitcond183.not, label %.loopexit, label %.lr.ph159, !llvm.loop !12

104:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %105 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %0)
  store <2 x float> %105, ptr %10, align 8
  %106 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %106, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %.not147170 = icmp slt i32 %2, 2
  br i1 %.not147170, label %.loopexit, label %.lr.ph173.preheader

.lr.ph173.preheader:                              ; preds = %104
  %107 = sext i32 %1 to i64
  %108 = add nuw i32 %2, 1
  %wide.trip.count197 = zext i32 %108 to i64
  br label %.lr.ph173

.lr.ph173:                                        ; preds = %.lr.ph173.preheader, %.lr.ph173
  %indvars.iv194 = phi i64 [ 2, %.lr.ph173.preheader ], [ %indvars.iv.next195, %.lr.ph173 ]
  %109 = add nsw i64 %indvars.iv194, -1
  %110 = getelementptr inbounds %"class.std::complex", ptr %3, i64 %109
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %111 = mul nsw i64 %109, %107
  %112 = getelementptr inbounds %"class.std::complex", ptr %0, i64 %111
  %113 = trunc nuw nsw i64 %109 to i32
  %114 = call <2 x float> @_Z5cdotciPSt7complexIfEiS1_i(i32 noundef %113, ptr noundef nonnull %112, i32 noundef 1, ptr noundef nonnull %3, i32 noundef 1)
  store <2 x float> %114, ptr %11, align 8
  %115 = call <2 x float> @_ZStmiIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %110, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %115, ptr %110, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %116 = getelementptr %"class.std::complex", ptr %0, i64 %111
  %117 = getelementptr %"class.std::complex", ptr %116, i64 %109
  %118 = call <2 x float> @_ZSt4conjIfESt7complexIT_ERKS2_(ptr noundef nonnull align 4 dereferenceable(8) %117)
  store <2 x float> %118, ptr %12, align 8
  %119 = call <2 x float> @_ZStdvIfESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(8) %110, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %119, ptr %110, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count197
  br i1 %exitcond198.not, label %.loopexit, label %.lr.ph173, !llvm.loop !13

.loopexit:                                        ; preds = %.lr.ph159, %.lr.ph163, %33, %.lr.ph173, %73, %48, %28, %104, %22
  %.0 = phi i32 [ %23, %22 ], [ 0, %104 ], [ 0, %28 ], [ 0, %48 ], [ 0, %73 ], [ 0, %.lr.ph173 ], [ 0, %33 ], [ 0, %.lr.ph163 ], [ 0, %.lr.ph159 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  ret i32 %.0
}

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


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