; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (cgesc2)

; 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"

%struct.complex = type { float, float }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i32, align 4
@c_b13 = external hidden global %struct.complex, align 4
@c_n1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @cgesc2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca float, align 4
  %24 = alloca %struct.complex, align 4
  %25 = alloca %struct.complex, align 4
  %26 = alloca %struct.complex, align 4
  %27 = alloca %struct.complex, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca { float, float }, align 4
  %34 = alloca { float, float }, align 4
  %35 = alloca { float, float }, align 4
  %36 = alloca { float, float }, align 4
  %37 = alloca { float, float }, align 4
  %38 = alloca { float, float }, align 4
  %39 = alloca { float, float }, align 4
  %40 = alloca { float, float }, align 4
  %41 = alloca { float, float }, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = load i32, ptr %42, align 4, !tbaa !9
  store i32 %43, ptr %15, align 4, !tbaa !9
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = mul nsw i32 %44, 1
  %46 = add nsw i32 1, %45
  store i32 %46, ptr %16, align 4, !tbaa !9
  %47 = load i32, ptr %16, align 4, !tbaa !9
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = sext i32 %47 to i64
  %50 = sub i64 0, %49
  %51 = getelementptr inbounds %struct.complex, ptr %48, i64 %50
  store ptr %51, ptr %9, align 8, !tbaa !5
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.complex, ptr %52, i32 -1
  store ptr %53, ptr %11, align 8, !tbaa !5
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = getelementptr inbounds i32, ptr %54, i32 -1
  store ptr %55, ptr %12, align 8, !tbaa !5
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = getelementptr inbounds i32, ptr %56, i32 -1
  store ptr %57, ptr %13, align 8, !tbaa !5
  %58 = call float @slamch_(ptr noundef @.str)
  store float %58, ptr %32, align 4, !tbaa !11
  %59 = call float @slamch_(ptr noundef @.str.1)
  %60 = load float, ptr %32, align 4, !tbaa !11
  %61 = fdiv float %59, %60
  store float %61, ptr %31, align 4, !tbaa !11
  %62 = load float, ptr %31, align 4, !tbaa !11
  %63 = fdiv float 1.000000e+00, %62
  store float %63, ptr %30, align 4, !tbaa !11
  call void @slabad_(ptr noundef %31, ptr noundef %30)
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = sub nsw i32 %65, 1
  store i32 %66, ptr %17, align 4, !tbaa !9
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.complex, ptr %67, i64 1
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = getelementptr inbounds i32, ptr %70, i64 1
  %72 = call i32 @claswp_(ptr noundef @c__1, ptr noundef %68, ptr noundef %69, ptr noundef @c__1, ptr noundef %17, ptr noundef %71, ptr noundef @c__1)
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = sub nsw i32 %74, 1
  store i32 %75, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %28, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %191, %7
  %77 = load i32, ptr %28, align 4, !tbaa !9
  %78 = load i32, ptr %17, align 4, !tbaa !9
  %79 = icmp sle i32 %77, %78
  br i1 %79, label %80, label %194

80:                                               ; preds = %76
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load i32, ptr %81, align 4, !tbaa !9
  store i32 %82, ptr %18, align 4, !tbaa !9
  %83 = load i32, ptr %28, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %29, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %187, %80
  %86 = load i32, ptr %29, align 4, !tbaa !9
  %87 = load i32, ptr %18, align 4, !tbaa !9
  %88 = icmp sle i32 %86, %87
  br i1 %88, label %89, label %190

89:                                               ; preds = %85
  %90 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %90, ptr %19, align 4, !tbaa !9
  %91 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %91, ptr %20, align 4, !tbaa !9
  %92 = load i32, ptr %29, align 4, !tbaa !9
  %93 = load i32, ptr %28, align 4, !tbaa !9
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = mul nsw i32 %93, %94
  %96 = add nsw i32 %92, %95
  store i32 %96, ptr %21, align 4, !tbaa !9
  %97 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %97, ptr %22, align 4, !tbaa !9
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = load i32, ptr %21, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds %struct.complex, ptr %98, i64 %100
  %102 = getelementptr inbounds %struct.complex, ptr %101, i32 0, i32 0
  %103 = load float, ptr %102, align 4, !tbaa !13
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = load i32, ptr %22, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %struct.complex, ptr %104, i64 %106
  %108 = getelementptr inbounds %struct.complex, ptr %107, i32 0, i32 0
  %109 = load float, ptr %108, align 4, !tbaa !13
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load i32, ptr %21, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %struct.complex, ptr %110, i64 %112
  %114 = getelementptr inbounds %struct.complex, ptr %113, i32 0, i32 1
  %115 = load float, ptr %114, align 4, !tbaa !15
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load i32, ptr %22, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds %struct.complex, ptr %116, i64 %118
  %120 = getelementptr inbounds %struct.complex, ptr %119, i32 0, i32 1
  %121 = load float, ptr %120, align 4, !tbaa !15
  %122 = fmul float %115, %121
  %123 = fneg float %122
  %124 = call float @llvm.fmuladd.f32(float %103, float %109, float %123)
  %125 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 0
  store float %124, ptr %125, align 4, !tbaa !13
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = load i32, ptr %21, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %struct.complex, ptr %126, i64 %128
  %130 = getelementptr inbounds %struct.complex, ptr %129, i32 0, i32 0
  %131 = load float, ptr %130, align 4, !tbaa !13
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = load i32, ptr %22, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %struct.complex, ptr %132, i64 %134
  %136 = getelementptr inbounds %struct.complex, ptr %135, i32 0, i32 1
  %137 = load float, ptr %136, align 4, !tbaa !15
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = load i32, ptr %21, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds %struct.complex, ptr %138, i64 %140
  %142 = getelementptr inbounds %struct.complex, ptr %141, i32 0, i32 1
  %143 = load float, ptr %142, align 4, !tbaa !15
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = load i32, ptr %22, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds %struct.complex, ptr %144, i64 %146
  %148 = getelementptr inbounds %struct.complex, ptr %147, i32 0, i32 0
  %149 = load float, ptr %148, align 4, !tbaa !13
  %150 = fmul float %143, %149
  %151 = call float @llvm.fmuladd.f32(float %131, float %137, float %150)
  %152 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 1
  store float %151, ptr %152, align 4, !tbaa !15
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = load i32, ptr %20, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds %struct.complex, ptr %153, i64 %155
  %157 = getelementptr inbounds %struct.complex, ptr %156, i32 0, i32 0
  %158 = load float, ptr %157, align 4, !tbaa !13
  %159 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 0
  %160 = load float, ptr %159, align 4, !tbaa !13
  %161 = fsub float %158, %160
  %162 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  store float %161, ptr %162, align 4, !tbaa !13
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = load i32, ptr %20, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds %struct.complex, ptr %163, i64 %165
  %167 = getelementptr inbounds %struct.complex, ptr %166, i32 0, i32 1
  %168 = load float, ptr %167, align 4, !tbaa !15
  %169 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 1
  %170 = load float, ptr %169, align 4, !tbaa !15
  %171 = fsub float %168, %170
  %172 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  store float %171, ptr %172, align 4, !tbaa !15
  %173 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  %174 = load float, ptr %173, align 4, !tbaa !13
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = load i32, ptr %19, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds %struct.complex, ptr %175, i64 %177
  %179 = getelementptr inbounds %struct.complex, ptr %178, i32 0, i32 0
  store float %174, ptr %179, align 4, !tbaa !13
  %180 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  %181 = load float, ptr %180, align 4, !tbaa !15
  %182 = load ptr, ptr %11, align 8, !tbaa !5
  %183 = load i32, ptr %19, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds %struct.complex, ptr %182, i64 %184
  %186 = getelementptr inbounds %struct.complex, ptr %185, i32 0, i32 1
  store float %181, ptr %186, align 4, !tbaa !15
  br label %187

187:                                              ; preds = %89
  %188 = load i32, ptr %29, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %29, align 4, !tbaa !9
  br label %85, !llvm.loop !16

190:                                              ; preds = %85
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %28, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %28, align 4, !tbaa !9
  br label %76, !llvm.loop !18

194:                                              ; preds = %76
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  store float 1.000000e+00, ptr %195, align 4, !tbaa !11
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.complex, ptr %197, i64 1
  %199 = call i32 @icamax_(ptr noundef %196, ptr noundef %198, ptr noundef @c__1)
  store i32 %199, ptr %28, align 4, !tbaa !9
  %200 = load float, ptr %31, align 4, !tbaa !11
  %201 = fmul float %200, 2.000000e+00
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = load i32, ptr %28, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds %struct.complex, ptr %202, i64 %204
  %206 = call <2 x float> @Cf(ptr noundef %205)
  store <2 x float> %206, ptr %33, align 4
  %207 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 0
  %208 = load float, ptr %207, align 4
  %209 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 1
  %210 = load float, ptr %209, align 4
  %211 = getelementptr inbounds { float, float }, ptr %34, i32 0, i32 0
  %212 = getelementptr inbounds { float, float }, ptr %34, i32 0, i32 1
  store float %208, ptr %211, align 4
  store float %210, ptr %212, align 4
  %213 = load <2 x float>, ptr %34, align 4
  %214 = call float @cabsf(<2 x float> noundef %213) #7
  %215 = fmul float %201, %214
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = load ptr, ptr %8, align 8, !tbaa !5
  %220 = load i32, ptr %219, align 4, !tbaa !9
  %221 = load i32, ptr %15, align 4, !tbaa !9
  %222 = mul nsw i32 %220, %221
  %223 = add nsw i32 %218, %222
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds %struct.complex, ptr %216, i64 %224
  %226 = call <2 x float> @Cf(ptr noundef %225)
  store <2 x float> %226, ptr %35, align 4
  %227 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 0
  %228 = load float, ptr %227, align 4
  %229 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 1
  %230 = load float, ptr %229, align 4
  %231 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 0
  %232 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 1
  store float %228, ptr %231, align 4
  store float %230, ptr %232, align 4
  %233 = load <2 x float>, ptr %36, align 4
  %234 = call float @cabsf(<2 x float> noundef %233) #7
  %235 = fcmp ogt float %215, %234
  br i1 %235, label %236, label %270

236:                                              ; preds = %194
  %237 = load ptr, ptr %11, align 8, !tbaa !5
  %238 = load i32, ptr %28, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds %struct.complex, ptr %237, i64 %239
  %241 = call <2 x float> @Cf(ptr noundef %240)
  store <2 x float> %241, ptr %37, align 4
  %242 = getelementptr inbounds { float, float }, ptr %37, i32 0, i32 0
  %243 = load float, ptr %242, align 4
  %244 = getelementptr inbounds { float, float }, ptr %37, i32 0, i32 1
  %245 = load float, ptr %244, align 4
  %246 = getelementptr inbounds { float, float }, ptr %38, i32 0, i32 0
  %247 = getelementptr inbounds { float, float }, ptr %38, i32 0, i32 1
  store float %243, ptr %246, align 4
  store float %245, ptr %247, align 4
  %248 = load <2 x float>, ptr %38, align 4
  %249 = call float @cabsf(<2 x float> noundef %248) #7
  store float %249, ptr %23, align 4, !tbaa !11
  %250 = load float, ptr %23, align 4, !tbaa !11
  %251 = fdiv float 5.000000e-01, %250
  %252 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  store float %251, ptr %252, align 4, !tbaa !13
  %253 = load float, ptr %23, align 4, !tbaa !11
  %254 = fdiv float 0.000000e+00, %253
  %255 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  store float %254, ptr %255, align 4, !tbaa !15
  %256 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  %257 = load float, ptr %256, align 4, !tbaa !13
  %258 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 0
  store float %257, ptr %258, align 4, !tbaa !13
  %259 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  %260 = load float, ptr %259, align 4, !tbaa !15
  %261 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 1
  store float %260, ptr %261, align 4, !tbaa !15
  %262 = load ptr, ptr %8, align 8, !tbaa !5
  %263 = load ptr, ptr %11, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.complex, ptr %263, i64 1
  call void @cscal_(ptr noundef %262, ptr noundef %27, ptr noundef %264, ptr noundef @c__1)
  %265 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 0
  %266 = load float, ptr %265, align 4, !tbaa !13
  %267 = load ptr, ptr %14, align 8, !tbaa !5
  %268 = load float, ptr %267, align 4, !tbaa !11
  %269 = fmul float %268, %266
  store float %269, ptr %267, align 4, !tbaa !11
  br label %270

270:                                              ; preds = %236, %194
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  %272 = load i32, ptr %271, align 4, !tbaa !9
  store i32 %272, ptr %28, align 4, !tbaa !9
  br label %273

273:                                              ; preds = %497, %270
  %274 = load i32, ptr %28, align 4, !tbaa !9
  %275 = icmp sge i32 %274, 1
  br i1 %275, label %276, label %500

276:                                              ; preds = %273
  %277 = call <2 x float> @Cf(ptr noundef @c_b13)
  store <2 x float> %277, ptr %39, align 4
  %278 = getelementptr inbounds { float, float }, ptr %39, i32 0, i32 0
  %279 = load float, ptr %278, align 4
  %280 = getelementptr inbounds { float, float }, ptr %39, i32 0, i32 1
  %281 = load float, ptr %280, align 4
  %282 = load ptr, ptr %9, align 8, !tbaa !5
  %283 = load i32, ptr %28, align 4, !tbaa !9
  %284 = load i32, ptr %28, align 4, !tbaa !9
  %285 = load i32, ptr %15, align 4, !tbaa !9
  %286 = mul nsw i32 %284, %285
  %287 = add nsw i32 %283, %286
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds %struct.complex, ptr %282, i64 %288
  %290 = call <2 x float> @Cf(ptr noundef %289)
  store <2 x float> %290, ptr %40, align 4
  %291 = getelementptr inbounds { float, float }, ptr %40, i32 0, i32 0
  %292 = load float, ptr %291, align 4
  %293 = getelementptr inbounds { float, float }, ptr %40, i32 0, i32 1
  %294 = load float, ptr %293, align 4
  %295 = call <2 x float> @__divsc3(float noundef %279, float noundef %281, float noundef %292, float noundef %294) #7
  store <2 x float> %295, ptr %41, align 4
  %296 = getelementptr inbounds { float, float }, ptr %41, i32 0, i32 0
  %297 = load float, ptr %296, align 4
  %298 = getelementptr inbounds { float, float }, ptr %41, i32 0, i32 1
  %299 = load float, ptr %298, align 4
  %300 = call ptr @_pCf(ptr noundef %24)
  %301 = getelementptr inbounds { float, float }, ptr %300, i32 0, i32 0
  %302 = getelementptr inbounds { float, float }, ptr %300, i32 0, i32 1
  store float %297, ptr %301, align 4
  store float %299, ptr %302, align 4
  %303 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  %304 = load float, ptr %303, align 4, !tbaa !13
  %305 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 0
  store float %304, ptr %305, align 4, !tbaa !13
  %306 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  %307 = load float, ptr %306, align 4, !tbaa !15
  %308 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 1
  store float %307, ptr %308, align 4, !tbaa !15
  %309 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %309, ptr %17, align 4, !tbaa !9
  %310 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %310, ptr %18, align 4, !tbaa !9
  %311 = load ptr, ptr %11, align 8, !tbaa !5
  %312 = load i32, ptr %18, align 4, !tbaa !9
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds %struct.complex, ptr %311, i64 %313
  %315 = getelementptr inbounds %struct.complex, ptr %314, i32 0, i32 0
  %316 = load float, ptr %315, align 4, !tbaa !13
  %317 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 0
  %318 = load float, ptr %317, align 4, !tbaa !13
  %319 = load ptr, ptr %11, align 8, !tbaa !5
  %320 = load i32, ptr %18, align 4, !tbaa !9
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds %struct.complex, ptr %319, i64 %321
  %323 = getelementptr inbounds %struct.complex, ptr %322, i32 0, i32 1
  %324 = load float, ptr %323, align 4, !tbaa !15
  %325 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 1
  %326 = load float, ptr %325, align 4, !tbaa !15
  %327 = fmul float %324, %326
  %328 = fneg float %327
  %329 = call float @llvm.fmuladd.f32(float %316, float %318, float %328)
  %330 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  store float %329, ptr %330, align 4, !tbaa !13
  %331 = load ptr, ptr %11, align 8, !tbaa !5
  %332 = load i32, ptr %18, align 4, !tbaa !9
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds %struct.complex, ptr %331, i64 %333
  %335 = getelementptr inbounds %struct.complex, ptr %334, i32 0, i32 0
  %336 = load float, ptr %335, align 4, !tbaa !13
  %337 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 1
  %338 = load float, ptr %337, align 4, !tbaa !15
  %339 = load ptr, ptr %11, align 8, !tbaa !5
  %340 = load i32, ptr %18, align 4, !tbaa !9
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds %struct.complex, ptr %339, i64 %341
  %343 = getelementptr inbounds %struct.complex, ptr %342, i32 0, i32 1
  %344 = load float, ptr %343, align 4, !tbaa !15
  %345 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 0
  %346 = load float, ptr %345, align 4, !tbaa !13
  %347 = fmul float %344, %346
  %348 = call float @llvm.fmuladd.f32(float %336, float %338, float %347)
  %349 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  store float %348, ptr %349, align 4, !tbaa !15
  %350 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  %351 = load float, ptr %350, align 4, !tbaa !13
  %352 = load ptr, ptr %11, align 8, !tbaa !5
  %353 = load i32, ptr %17, align 4, !tbaa !9
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds %struct.complex, ptr %352, i64 %354
  %356 = getelementptr inbounds %struct.complex, ptr %355, i32 0, i32 0
  store float %351, ptr %356, align 4, !tbaa !13
  %357 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  %358 = load float, ptr %357, align 4, !tbaa !15
  %359 = load ptr, ptr %11, align 8, !tbaa !5
  %360 = load i32, ptr %17, align 4, !tbaa !9
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds %struct.complex, ptr %359, i64 %361
  %363 = getelementptr inbounds %struct.complex, ptr %362, i32 0, i32 1
  store float %358, ptr %363, align 4, !tbaa !15
  %364 = load ptr, ptr %8, align 8, !tbaa !5
  %365 = load i32, ptr %364, align 4, !tbaa !9
  store i32 %365, ptr %17, align 4, !tbaa !9
  %366 = load i32, ptr %28, align 4, !tbaa !9
  %367 = add nsw i32 %366, 1
  store i32 %367, ptr %29, align 4, !tbaa !9
  br label %368

368:                                              ; preds = %493, %276
  %369 = load i32, ptr %29, align 4, !tbaa !9
  %370 = load i32, ptr %17, align 4, !tbaa !9
  %371 = icmp sle i32 %369, %370
  br i1 %371, label %372, label %496

372:                                              ; preds = %368
  %373 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %373, ptr %18, align 4, !tbaa !9
  %374 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %374, ptr %19, align 4, !tbaa !9
  %375 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %375, ptr %20, align 4, !tbaa !9
  %376 = load i32, ptr %28, align 4, !tbaa !9
  %377 = load i32, ptr %29, align 4, !tbaa !9
  %378 = load i32, ptr %15, align 4, !tbaa !9
  %379 = mul nsw i32 %377, %378
  %380 = add nsw i32 %376, %379
  store i32 %380, ptr %21, align 4, !tbaa !9
  %381 = load ptr, ptr %9, align 8, !tbaa !5
  %382 = load i32, ptr %21, align 4, !tbaa !9
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds %struct.complex, ptr %381, i64 %383
  %385 = getelementptr inbounds %struct.complex, ptr %384, i32 0, i32 0
  %386 = load float, ptr %385, align 4, !tbaa !13
  %387 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 0
  %388 = load float, ptr %387, align 4, !tbaa !13
  %389 = load ptr, ptr %9, align 8, !tbaa !5
  %390 = load i32, ptr %21, align 4, !tbaa !9
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds %struct.complex, ptr %389, i64 %391
  %393 = getelementptr inbounds %struct.complex, ptr %392, i32 0, i32 1
  %394 = load float, ptr %393, align 4, !tbaa !15
  %395 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 1
  %396 = load float, ptr %395, align 4, !tbaa !15
  %397 = fmul float %394, %396
  %398 = fneg float %397
  %399 = call float @llvm.fmuladd.f32(float %386, float %388, float %398)
  %400 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 0
  store float %399, ptr %400, align 4, !tbaa !13
  %401 = load ptr, ptr %9, align 8, !tbaa !5
  %402 = load i32, ptr %21, align 4, !tbaa !9
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds %struct.complex, ptr %401, i64 %403
  %405 = getelementptr inbounds %struct.complex, ptr %404, i32 0, i32 0
  %406 = load float, ptr %405, align 4, !tbaa !13
  %407 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 1
  %408 = load float, ptr %407, align 4, !tbaa !15
  %409 = load ptr, ptr %9, align 8, !tbaa !5
  %410 = load i32, ptr %21, align 4, !tbaa !9
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds %struct.complex, ptr %409, i64 %411
  %413 = getelementptr inbounds %struct.complex, ptr %412, i32 0, i32 1
  %414 = load float, ptr %413, align 4, !tbaa !15
  %415 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 0
  %416 = load float, ptr %415, align 4, !tbaa !13
  %417 = fmul float %414, %416
  %418 = call float @llvm.fmuladd.f32(float %406, float %408, float %417)
  %419 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 1
  store float %418, ptr %419, align 4, !tbaa !15
  %420 = load ptr, ptr %11, align 8, !tbaa !5
  %421 = load i32, ptr %20, align 4, !tbaa !9
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds %struct.complex, ptr %420, i64 %422
  %424 = getelementptr inbounds %struct.complex, ptr %423, i32 0, i32 0
  %425 = load float, ptr %424, align 4, !tbaa !13
  %426 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 0
  %427 = load float, ptr %426, align 4, !tbaa !13
  %428 = load ptr, ptr %11, align 8, !tbaa !5
  %429 = load i32, ptr %20, align 4, !tbaa !9
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds %struct.complex, ptr %428, i64 %430
  %432 = getelementptr inbounds %struct.complex, ptr %431, i32 0, i32 1
  %433 = load float, ptr %432, align 4, !tbaa !15
  %434 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 1
  %435 = load float, ptr %434, align 4, !tbaa !15
  %436 = fmul float %433, %435
  %437 = fneg float %436
  %438 = call float @llvm.fmuladd.f32(float %425, float %427, float %437)
  %439 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 0
  store float %438, ptr %439, align 4, !tbaa !13
  %440 = load ptr, ptr %11, align 8, !tbaa !5
  %441 = load i32, ptr %20, align 4, !tbaa !9
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds %struct.complex, ptr %440, i64 %442
  %444 = getelementptr inbounds %struct.complex, ptr %443, i32 0, i32 0
  %445 = load float, ptr %444, align 4, !tbaa !13
  %446 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 1
  %447 = load float, ptr %446, align 4, !tbaa !15
  %448 = load ptr, ptr %11, align 8, !tbaa !5
  %449 = load i32, ptr %20, align 4, !tbaa !9
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds %struct.complex, ptr %448, i64 %450
  %452 = getelementptr inbounds %struct.complex, ptr %451, i32 0, i32 1
  %453 = load float, ptr %452, align 4, !tbaa !15
  %454 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 0
  %455 = load float, ptr %454, align 4, !tbaa !13
  %456 = fmul float %453, %455
  %457 = call float @llvm.fmuladd.f32(float %445, float %447, float %456)
  %458 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 1
  store float %457, ptr %458, align 4, !tbaa !15
  %459 = load ptr, ptr %11, align 8, !tbaa !5
  %460 = load i32, ptr %19, align 4, !tbaa !9
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds %struct.complex, ptr %459, i64 %461
  %463 = getelementptr inbounds %struct.complex, ptr %462, i32 0, i32 0
  %464 = load float, ptr %463, align 4, !tbaa !13
  %465 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 0
  %466 = load float, ptr %465, align 4, !tbaa !13
  %467 = fsub float %464, %466
  %468 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  store float %467, ptr %468, align 4, !tbaa !13
  %469 = load ptr, ptr %11, align 8, !tbaa !5
  %470 = load i32, ptr %19, align 4, !tbaa !9
  %471 = sext i32 %470 to i64
  %472 = getelementptr inbounds %struct.complex, ptr %469, i64 %471
  %473 = getelementptr inbounds %struct.complex, ptr %472, i32 0, i32 1
  %474 = load float, ptr %473, align 4, !tbaa !15
  %475 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 1
  %476 = load float, ptr %475, align 4, !tbaa !15
  %477 = fsub float %474, %476
  %478 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  store float %477, ptr %478, align 4, !tbaa !15
  %479 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  %480 = load float, ptr %479, align 4, !tbaa !13
  %481 = load ptr, ptr %11, align 8, !tbaa !5
  %482 = load i32, ptr %18, align 4, !tbaa !9
  %483 = sext i32 %482 to i64
  %484 = getelementptr inbounds %struct.complex, ptr %481, i64 %483
  %485 = getelementptr inbounds %struct.complex, ptr %484, i32 0, i32 0
  store float %480, ptr %485, align 4, !tbaa !13
  %486 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  %487 = load float, ptr %486, align 4, !tbaa !15
  %488 = load ptr, ptr %11, align 8, !tbaa !5
  %489 = load i32, ptr %18, align 4, !tbaa !9
  %490 = sext i32 %489 to i64
  %491 = getelementptr inbounds %struct.complex, ptr %488, i64 %490
  %492 = getelementptr inbounds %struct.complex, ptr %491, i32 0, i32 1
  store float %487, ptr %492, align 4, !tbaa !15
  br label %493

493:                                              ; preds = %372
  %494 = load i32, ptr %29, align 4, !tbaa !9
  %495 = add nsw i32 %494, 1
  store i32 %495, ptr %29, align 4, !tbaa !9
  br label %368, !llvm.loop !19

496:                                              ; preds = %368
  br label %497

497:                                              ; preds = %496
  %498 = load i32, ptr %28, align 4, !tbaa !9
  %499 = add nsw i32 %498, -1
  store i32 %499, ptr %28, align 4, !tbaa !9
  br label %273, !llvm.loop !20

500:                                              ; preds = %273
  %501 = load ptr, ptr %8, align 8, !tbaa !5
  %502 = load i32, ptr %501, align 4, !tbaa !9
  %503 = sub nsw i32 %502, 1
  store i32 %503, ptr %17, align 4, !tbaa !9
  %504 = load ptr, ptr %11, align 8, !tbaa !5
  %505 = getelementptr inbounds %struct.complex, ptr %504, i64 1
  %506 = load ptr, ptr %10, align 8, !tbaa !5
  %507 = load ptr, ptr %13, align 8, !tbaa !5
  %508 = getelementptr inbounds i32, ptr %507, i64 1
  %509 = call i32 @claswp_(ptr noundef @c__1, ptr noundef %505, ptr noundef %506, ptr noundef @c__1, ptr noundef %17, ptr noundef %508, ptr noundef @c_n1)
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  ret void
}

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

declare float @slamch_(ptr noundef) #2

declare void @slabad_(ptr noundef, ptr noundef) #2

declare i32 @claswp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

declare i32 @icamax_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) #5

declare void @cscal_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare <2 x float> @__divsc3(float, float, float, float)

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCf(ptr noundef) #6

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

attributes #0 = { nounwind 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint nounwind 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 = { inlinehint 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 #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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 4}
!15 = !{!14, !12, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}


; 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"

%struct.complex = type { float, float }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i32, align 4
@c_b13 = external hidden global %struct.complex, align 4
@c_n1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @cgesc2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef %6) local_unnamed_addr #0 {
  %8 = alloca i32, align 4
  %9 = alloca %struct.complex, align 8
  %10 = alloca %struct.complex, align 8
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %narrow = xor i32 %13, -1
  %14 = sext i32 %narrow to i64
  %15 = getelementptr inbounds %struct.complex, ptr %1, i64 %14
  %16 = getelementptr inbounds i8, ptr %3, i64 -8
  %17 = tail call float @slamch_(ptr noundef nonnull @.str) #7
  %18 = tail call float @slamch_(ptr noundef nonnull @.str.1) #7
  %19 = fdiv float %18, %17
  store float %19, ptr %12, align 4, !tbaa !9
  %20 = fdiv float 1.000000e+00, %19
  store float %20, ptr %11, align 4, !tbaa !9
  call void @slabad_(ptr noundef nonnull %12, ptr noundef nonnull %11) #7
  %21 = load i32, ptr %0, align 4, !tbaa !5
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr %8, align 4, !tbaa !5
  %23 = call i32 @claswp_(ptr noundef nonnull @c__1, ptr noundef %3, ptr noundef nonnull %2, ptr noundef nonnull @c__1, ptr noundef nonnull %8, ptr noundef %4, ptr noundef nonnull @c__1) #7
  %24 = load i32, ptr %0, align 4, !tbaa !5
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr %8, align 4, !tbaa !5
  %.not.not148 = icmp sgt i32 %24, 1
  br i1 %.not.not148, label %.lr.ph151, label %49

.lr.ph151:                                        ; preds = %7
  %26 = getelementptr inbounds i8, ptr %9, i64 4
  %27 = add nuw i32 %24, 1
  %28 = sext i32 %13 to i64
  %wide.trip.count178 = zext nneg i32 %24 to i64
  %wide.trip.count = zext i32 %27 to i64
  br label %.lr.ph

.loopexit:                                        ; preds = %31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond179.not = icmp eq i64 %indvars.iv.next176, %wide.trip.count178
  br i1 %exitcond179.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

.lr.ph:                                           ; preds = %.loopexit, %.lr.ph151
  %indvars.iv175 = phi i64 [ 1, %.lr.ph151 ], [ %indvars.iv.next176, %.loopexit ]
  %indvars.iv = phi i64 [ 2, %.lr.ph151 ], [ %indvars.iv.next, %.loopexit ]
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %29 = mul nsw i64 %indvars.iv175, %28
  %30 = getelementptr inbounds %struct.complex, ptr %16, i64 %indvars.iv175
  %invariant.gep = getelementptr %struct.complex, ptr %15, i64 %29
  br label %31

31:                                               ; preds = %.lr.ph, %31
  %indvars.iv172 = phi i64 [ %indvars.iv, %.lr.ph ], [ %indvars.iv.next173, %31 ]
  %gep = getelementptr %struct.complex, ptr %invariant.gep, i64 %indvars.iv172
  %32 = load float, ptr %gep, align 4, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %gep, i64 4
  %34 = load float, ptr %33, align 4, !tbaa !15
  %35 = fneg float %34
  %36 = getelementptr inbounds %struct.complex, ptr %16, i64 %indvars.iv172
  %37 = load <2 x float>, ptr %30, align 4, !tbaa !9
  %38 = insertelement <2 x float> poison, float %34, i64 0
  %39 = insertelement <2 x float> %38, float %35, i64 1
  %40 = fmul <2 x float> %37, %39
  %41 = shufflevector <2 x float> %40, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %42 = insertelement <2 x float> poison, float %32, i64 0
  %43 = shufflevector <2 x float> %42, <2 x float> poison, <2 x i32> zeroinitializer
  %44 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %43, <2 x float> %37, <2 x float> %41)
  %45 = load <2 x float>, ptr %36, align 4, !tbaa !9
  %46 = fsub <2 x float> %45, %44
  store <2 x float> %46, ptr %36, align 4, !tbaa !9
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next173, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %31, !llvm.loop !16

._crit_edge:                                      ; preds = %.loopexit
  %47 = extractelement <2 x float> %46, i64 1
  store float %47, ptr %26, align 4, !tbaa !15
  %48 = extractelement <2 x float> %46, i64 0
  br label %49

49:                                               ; preds = %._crit_edge, %7
  %.lcssa147.lcssa = phi float [ %48, %._crit_edge ], [ undef, %7 ]
  store float %.lcssa147.lcssa, ptr %9, align 8, !tbaa !13
  store float 1.000000e+00, ptr %6, align 4, !tbaa !9
  %50 = call i32 @icamax_(ptr noundef nonnull %0, ptr noundef %3, ptr noundef nonnull @c__1) #7
  %51 = load float, ptr %12, align 4, !tbaa !9
  %52 = fmul float %51, 2.000000e+00
  %53 = sext i32 %50 to i64
  %54 = getelementptr inbounds %struct.complex, ptr %16, i64 %53
  %55 = call <2 x float> @Cf(ptr noundef nonnull %54)
  %56 = call float @cabsf(<2 x float> noundef %55) #7
  %57 = fmul float %52, %56
  %58 = load i32, ptr %0, align 4, !tbaa !5
  %59 = add i32 %13, 1
  %60 = mul i32 %58, %59
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.complex, ptr %15, i64 %61
  %63 = call <2 x float> @Cf(ptr noundef %62)
  %64 = call float @cabsf(<2 x float> noundef %63) #7
  %65 = fcmp ogt float %57, %64
  br i1 %65, label %66, label %75

66:                                               ; preds = %49
  %67 = call <2 x float> @Cf(ptr noundef nonnull %54)
  %68 = call float @cabsf(<2 x float> noundef %67) #7
  %69 = insertelement <2 x float> poison, float %68, i64 0
  %70 = shufflevector <2 x float> %69, <2 x float> poison, <2 x i32> zeroinitializer
  %71 = fdiv <2 x float> <float 5.000000e-01, float 0.000000e+00>, %70
  store <2 x float> %71, ptr %9, align 8, !tbaa !9
  store <2 x float> %71, ptr %10, align 8, !tbaa !9
  call void @cscal_(ptr noundef nonnull %0, ptr noundef nonnull %10, ptr noundef %3, ptr noundef nonnull @c__1) #7
  %72 = load float, ptr %10, align 8, !tbaa !13
  %73 = load float, ptr %6, align 4, !tbaa !9
  %74 = fmul float %72, %73
  store float %74, ptr %6, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %66, %49
  %76 = load i32, ptr %0, align 4, !tbaa !5
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %.lr.ph166, label %._crit_edge167

.lr.ph166:                                        ; preds = %75
  %78 = zext nneg i32 %76 to i64
  %79 = sext i32 %13 to i64
  br label %80

80:                                               ; preds = %.lr.ph166, %131
  %indvars.iv180 = phi i64 [ %78, %.lr.ph166 ], [ %indvars.iv.next181, %131 ]
  %81 = call <2 x float> @Cf(ptr noundef nonnull @c_b13)
  %.sroa.02.0.vec.extract = extractelement <2 x float> %81, i64 0
  %.sroa.02.4.vec.extract = extractelement <2 x float> %81, i64 1
  %82 = trunc nuw nsw i64 %indvars.iv180 to i32
  %83 = mul i32 %59, %82
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %struct.complex, ptr %15, i64 %84
  %86 = call <2 x float> @Cf(ptr noundef %85)
  %.sroa.01.0.vec.extract = extractelement <2 x float> %86, i64 0
  %.sroa.01.4.vec.extract = extractelement <2 x float> %86, i64 1
  %87 = call <2 x float> @__divsc3(float noundef %.sroa.02.0.vec.extract, float noundef %.sroa.02.4.vec.extract, float noundef %.sroa.01.0.vec.extract, float noundef %.sroa.01.4.vec.extract) #7
  %88 = call ptr @_pCf(ptr noundef nonnull %9)
  store <2 x float> %87, ptr %88, align 4
  %89 = getelementptr inbounds %struct.complex, ptr %16, i64 %indvars.iv180
  %90 = load float, ptr %89, align 4, !tbaa !13
  %91 = getelementptr inbounds i8, ptr %89, i64 4
  %92 = load float, ptr %91, align 4, !tbaa !15
  %93 = fneg float %92
  %94 = load <2 x float>, ptr %9, align 8, !tbaa !9
  store <2 x float> %94, ptr %10, align 8, !tbaa !9
  %95 = insertelement <2 x float> poison, float %92, i64 0
  %96 = insertelement <2 x float> %95, float %93, i64 1
  %97 = fmul <2 x float> %94, %96
  %98 = shufflevector <2 x float> %97, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %99 = insertelement <2 x float> poison, float %90, i64 0
  %100 = shufflevector <2 x float> %99, <2 x float> poison, <2 x i32> zeroinitializer
  %101 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %100, <2 x float> %94, <2 x float> %98)
  store <2 x float> %101, ptr %9, align 8, !tbaa !9
  store <2 x float> %101, ptr %89, align 4, !tbaa !9
  %102 = load i32, ptr %0, align 4, !tbaa !5
  store i32 %102, ptr %8, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %.not141.not155 = icmp slt i64 %indvars.iv180, %103
  br i1 %.not141.not155, label %.lr.ph158, label %131

.lr.ph158:                                        ; preds = %80
  %invariant.gep190 = getelementptr %struct.complex, ptr %15, i64 %indvars.iv180
  %104 = shufflevector <2 x float> %94, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  br label %105

105:                                              ; preds = %.lr.ph158, %105
  %indvars.iv182 = phi i64 [ %indvars.iv180, %.lr.ph158 ], [ %indvars.iv.next183, %105 ]
  %106 = phi <2 x float> [ %101, %.lr.ph158 ], [ %130, %105 ]
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %107 = mul nsw i64 %indvars.iv.next183, %79
  %gep191 = getelementptr %struct.complex, ptr %invariant.gep190, i64 %107
  %108 = load float, ptr %gep191, align 4, !tbaa !13
  %109 = getelementptr inbounds i8, ptr %gep191, i64 4
  %110 = load float, ptr %109, align 4, !tbaa !15
  %111 = fneg float %110
  %112 = getelementptr %struct.complex, ptr %3, i64 %indvars.iv182
  %113 = load float, ptr %112, align 4, !tbaa !13
  %114 = getelementptr inbounds i8, ptr %112, i64 4
  %115 = load float, ptr %114, align 4, !tbaa !15
  %116 = fneg float %115
  %117 = insertelement <2 x float> poison, float %111, i64 0
  %118 = insertelement <2 x float> %117, float %110, i64 1
  %119 = fmul <2 x float> %104, %118
  %120 = insertelement <2 x float> poison, float %108, i64 0
  %121 = shufflevector <2 x float> %120, <2 x float> poison, <2 x i32> zeroinitializer
  %122 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %121, <2 x float> %94, <2 x float> %119)
  %123 = insertelement <2 x float> poison, float %115, i64 0
  %124 = insertelement <2 x float> %123, float %116, i64 1
  %125 = fmul <2 x float> %122, %124
  %126 = shufflevector <2 x float> %125, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %127 = insertelement <2 x float> poison, float %113, i64 0
  %128 = shufflevector <2 x float> %127, <2 x float> poison, <2 x i32> zeroinitializer
  %129 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %128, <2 x float> %122, <2 x float> %126)
  %130 = fsub <2 x float> %106, %129
  store <2 x float> %130, ptr %89, align 4, !tbaa !9
  %.not141.not = icmp slt i64 %indvars.iv.next183, %103
  br i1 %.not141.not, label %105, label %._crit_edge159, !llvm.loop !17

._crit_edge159:                                   ; preds = %105
  store <2 x float> %130, ptr %9, align 8, !tbaa !9
  br label %131

131:                                              ; preds = %._crit_edge159, %80
  %indvars.iv.next181 = add nsw i64 %indvars.iv180, -1
  %132 = icmp sgt i64 %indvars.iv180, 1
  br i1 %132, label %80, label %._crit_edge167, !llvm.loop !18

._crit_edge167:                                   ; preds = %131, %75
  %133 = phi i32 [ %76, %75 ], [ %102, %131 ]
  %134 = add nsw i32 %133, -1
  store i32 %134, ptr %8, align 4, !tbaa !5
  %135 = call i32 @claswp_(ptr noundef nonnull @c__1, ptr noundef %3, ptr noundef nonnull %2, ptr noundef nonnull @c__1, ptr noundef nonnull %8, ptr noundef %5, ptr noundef nonnull @c_n1) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  ret void
}

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

declare float @slamch_(ptr noundef) local_unnamed_addr #2

declare void @slabad_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @claswp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @icamax_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) local_unnamed_addr #4

declare void @cscal_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare <2 x float> @__divsc3(float, float, float, float) local_unnamed_addr

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCf(ptr noundef) local_unnamed_addr #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #6

attributes #0 = { nounwind 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind 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 = { inlinehint 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"", !10, i64 0, !10, i64 4}
!15 = !{!14, !10, i64 4}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass