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

; 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.doublecomplex = type { double, double }

@.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.doublecomplex, align 8
@c_n1 = external hidden global i32, align 4

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

70:                                               ; preds = %185, %7
  %71 = load i32, ptr %28, align 4, !tbaa !9
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = icmp sle i32 %71, %72
  br i1 %73, label %74, label %188

74:                                               ; preds = %70
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load i32, ptr %75, align 4, !tbaa !9
  store i32 %76, ptr %18, align 4, !tbaa !9
  %77 = load i32, ptr %28, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %29, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %181, %74
  %80 = load i32, ptr %29, align 4, !tbaa !9
  %81 = load i32, ptr %18, align 4, !tbaa !9
  %82 = icmp sle i32 %80, %81
  br i1 %82, label %83, label %184

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

181:                                              ; preds = %83
  %182 = load i32, ptr %29, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %29, align 4, !tbaa !9
  br label %79, !llvm.loop !16

184:                                              ; preds = %79
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %28, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %28, align 4, !tbaa !9
  br label %70, !llvm.loop !18

188:                                              ; preds = %70
  %189 = load ptr, ptr %14, align 8, !tbaa !5
  store double 1.000000e+00, ptr %189, align 8, !tbaa !11
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.doublecomplex, ptr %191, i64 1
  %193 = call i32 @izamax_(ptr noundef %190, ptr noundef %192, ptr noundef @c__1)
  store i32 %193, ptr %28, align 4, !tbaa !9
  %194 = load double, ptr %31, align 8, !tbaa !11
  %195 = fmul double %194, 2.000000e+00
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = load i32, ptr %28, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %196, i64 %198
  %200 = call { double, double } @Cd(ptr noundef %199)
  %201 = extractvalue { double, double } %200, 0
  %202 = extractvalue { double, double } %200, 1
  %203 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %204 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  store double %201, ptr %203, align 8
  store double %202, ptr %204, align 8
  %205 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %206 = load double, ptr %205, align 8
  %207 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %208 = load double, ptr %207, align 8
  %209 = call double @cabs(double noundef %206, double noundef %208) #6
  %210 = fmul double %195, %209
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = load ptr, ptr %8, align 8, !tbaa !5
  %213 = load i32, ptr %212, align 4, !tbaa !9
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load i32, ptr %214, align 4, !tbaa !9
  %216 = load i32, ptr %15, align 4, !tbaa !9
  %217 = mul nsw i32 %215, %216
  %218 = add nsw i32 %213, %217
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds %struct.doublecomplex, ptr %211, i64 %219
  %221 = call { double, double } @Cd(ptr noundef %220)
  %222 = extractvalue { double, double } %221, 0
  %223 = extractvalue { double, double } %221, 1
  %224 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %225 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  store double %222, ptr %224, align 8
  store double %223, ptr %225, align 8
  %226 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %227 = load double, ptr %226, align 8
  %228 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %229 = load double, ptr %228, align 8
  %230 = call double @cabs(double noundef %227, double noundef %229) #6
  %231 = fcmp ogt double %210, %230
  br i1 %231, label %232, label %267

232:                                              ; preds = %188
  %233 = load ptr, ptr %11, align 8, !tbaa !5
  %234 = load i32, ptr %28, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds %struct.doublecomplex, ptr %233, i64 %235
  %237 = call { double, double } @Cd(ptr noundef %236)
  %238 = extractvalue { double, double } %237, 0
  %239 = extractvalue { double, double } %237, 1
  %240 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %241 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  store double %238, ptr %240, align 8
  store double %239, ptr %241, align 8
  %242 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %243 = load double, ptr %242, align 8
  %244 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %245 = load double, ptr %244, align 8
  %246 = call double @cabs(double noundef %243, double noundef %245) #6
  store double %246, ptr %23, align 8, !tbaa !11
  %247 = load double, ptr %23, align 8, !tbaa !11
  %248 = fdiv double 5.000000e-01, %247
  %249 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %248, ptr %249, align 8, !tbaa !13
  %250 = load double, ptr %23, align 8, !tbaa !11
  %251 = fdiv double 0.000000e+00, %250
  %252 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %251, ptr %252, align 8, !tbaa !15
  %253 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %254 = load double, ptr %253, align 8, !tbaa !13
  %255 = getelementptr inbounds %struct.doublecomplex, ptr %27, i32 0, i32 0
  store double %254, ptr %255, align 8, !tbaa !13
  %256 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %257 = load double, ptr %256, align 8, !tbaa !15
  %258 = getelementptr inbounds %struct.doublecomplex, ptr %27, i32 0, i32 1
  store double %257, ptr %258, align 8, !tbaa !15
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = load ptr, ptr %11, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.doublecomplex, ptr %260, i64 1
  call void @zscal_(ptr noundef %259, ptr noundef %27, ptr noundef %261, ptr noundef @c__1)
  %262 = getelementptr inbounds %struct.doublecomplex, ptr %27, i32 0, i32 0
  %263 = load double, ptr %262, align 8, !tbaa !13
  %264 = load ptr, ptr %14, align 8, !tbaa !5
  %265 = load double, ptr %264, align 8, !tbaa !11
  %266 = fmul double %265, %263
  store double %266, ptr %264, align 8, !tbaa !11
  br label %267

267:                                              ; preds = %232, %188
  %268 = load ptr, ptr %8, align 8, !tbaa !5
  %269 = load i32, ptr %268, align 4, !tbaa !9
  store i32 %269, ptr %28, align 4, !tbaa !9
  br label %270

270:                                              ; preds = %488, %267
  %271 = load i32, ptr %28, align 4, !tbaa !9
  %272 = icmp sge i32 %271, 1
  br i1 %272, label %273, label %491

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

359:                                              ; preds = %484, %273
  %360 = load i32, ptr %29, align 4, !tbaa !9
  %361 = load i32, ptr %17, align 4, !tbaa !9
  %362 = icmp sle i32 %360, %361
  br i1 %362, label %363, label %487

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

484:                                              ; preds = %363
  %485 = load i32, ptr %29, align 4, !tbaa !9
  %486 = add nsw i32 %485, 1
  store i32 %486, ptr %29, align 4, !tbaa !9
  br label %359, !llvm.loop !19

487:                                              ; preds = %359
  br label %488

488:                                              ; preds = %487
  %489 = load i32, ptr %28, align 4, !tbaa !9
  %490 = add nsw i32 %489, -1
  store i32 %490, ptr %28, align 4, !tbaa !9
  br label %270, !llvm.loop !20

491:                                              ; preds = %270
  %492 = load ptr, ptr %8, align 8, !tbaa !5
  %493 = load i32, ptr %492, align 4, !tbaa !9
  %494 = sub nsw i32 %493, 1
  store i32 %494, ptr %17, align 4, !tbaa !9
  %495 = load ptr, ptr %11, align 8, !tbaa !5
  %496 = getelementptr inbounds %struct.doublecomplex, ptr %495, i64 1
  %497 = load ptr, ptr %10, align 8, !tbaa !5
  %498 = load ptr, ptr %13, align 8, !tbaa !5
  %499 = getelementptr inbounds i32, ptr %498, i64 1
  %500 = call i32 @zlaswp_(ptr noundef @c__1, ptr noundef %496, ptr noundef %497, ptr noundef @c__1, ptr noundef %17, ptr noundef %499, ptr noundef @c_n1)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  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.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret void
}

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

declare double @dlamch_(ptr noundef) #2

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

declare i32 @zlaswp_(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 double @llvm.fmuladd.f64(double, double, double) #3

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

; Function Attrs: nounwind
declare double @cabs(double noundef, double noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) #5

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

declare { double, double } @__divdc3(double, double, double, double)

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

; 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"="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 #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"="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 = { 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 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 8}
!15 = !{!14, !12, i64 8}
!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.doublecomplex = type { double, double }

@.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.doublecomplex, align 8
@c_n1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @zgesc2_(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.doublecomplex, align 16
  %10 = alloca %struct.doublecomplex, align 16
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %narrow = xor i32 %13, -1
  %14 = sext i32 %narrow to i64
  %15 = getelementptr inbounds %struct.doublecomplex, ptr %1, i64 %14
  %16 = getelementptr inbounds i8, ptr %3, i64 -16
  %17 = tail call double @dlamch_(ptr noundef nonnull @.str) #6
  %18 = tail call double @dlamch_(ptr noundef nonnull @.str.1) #6
  %19 = fdiv double %18, %17
  store double %19, ptr %12, align 8, !tbaa !9
  %20 = fdiv double 1.000000e+00, %19
  store double %20, ptr %11, align 8, !tbaa !9
  call void @dlabad_(ptr noundef nonnull %12, ptr noundef nonnull %11) #6
  %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 @zlaswp_(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) #6
  %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.not141 = icmp sgt i32 %24, 1
  br i1 %.not.not141, label %.lr.ph144, label %49

.lr.ph144:                                        ; preds = %7
  %26 = getelementptr inbounds i8, ptr %9, i64 8
  %27 = add nuw i32 %24, 1
  %28 = sext i32 %13 to i64
  %wide.trip.count171 = 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
  %exitcond172.not = icmp eq i64 %indvars.iv.next169, %wide.trip.count171
  br i1 %exitcond172.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

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

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

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

49:                                               ; preds = %._crit_edge, %7
  %.lcssa140.lcssa = phi double [ %48, %._crit_edge ], [ undef, %7 ]
  store double %.lcssa140.lcssa, ptr %9, align 16, !tbaa !13
  store double 1.000000e+00, ptr %6, align 8, !tbaa !9
  %50 = call i32 @izamax_(ptr noundef nonnull %0, ptr noundef %3, ptr noundef nonnull @c__1) #6
  %51 = load double, ptr %12, align 8, !tbaa !9
  %52 = fmul double %51, 2.000000e+00
  %53 = sext i32 %50 to i64
  %54 = getelementptr inbounds %struct.doublecomplex, ptr %16, i64 %53
  %55 = call { double, double } @Cd(ptr noundef nonnull %54)
  %56 = extractvalue { double, double } %55, 0
  %57 = extractvalue { double, double } %55, 1
  %58 = call double @cabs(double noundef %56, double noundef %57) #6
  %59 = fmul double %52, %58
  %60 = load i32, ptr %0, align 4, !tbaa !5
  %61 = add i32 %13, 1
  %62 = mul i32 %60, %61
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %63
  %65 = call { double, double } @Cd(ptr noundef %64)
  %66 = extractvalue { double, double } %65, 0
  %67 = extractvalue { double, double } %65, 1
  %68 = call double @cabs(double noundef %66, double noundef %67) #6
  %69 = fcmp ogt double %59, %68
  br i1 %69, label %70, label %81

70:                                               ; preds = %49
  %71 = call { double, double } @Cd(ptr noundef nonnull %54)
  %72 = extractvalue { double, double } %71, 0
  %73 = extractvalue { double, double } %71, 1
  %74 = call double @cabs(double noundef %72, double noundef %73) #6
  %75 = insertelement <2 x double> poison, double %74, i64 0
  %76 = shufflevector <2 x double> %75, <2 x double> poison, <2 x i32> zeroinitializer
  %77 = fdiv <2 x double> <double 5.000000e-01, double 0.000000e+00>, %76
  store <2 x double> %77, ptr %9, align 16, !tbaa !9
  store <2 x double> %77, ptr %10, align 16, !tbaa !9
  call void @zscal_(ptr noundef nonnull %0, ptr noundef nonnull %10, ptr noundef %3, ptr noundef nonnull @c__1) #6
  %78 = load double, ptr %10, align 16, !tbaa !13
  %79 = load double, ptr %6, align 8, !tbaa !9
  %80 = fmul double %78, %79
  store double %80, ptr %6, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %70, %49
  %82 = load i32, ptr %0, align 4, !tbaa !5
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %.lr.ph159, label %._crit_edge160

.lr.ph159:                                        ; preds = %81
  %84 = zext nneg i32 %82 to i64
  %85 = sext i32 %13 to i64
  br label %86

86:                                               ; preds = %.lr.ph159, %144
  %indvars.iv173 = phi i64 [ %84, %.lr.ph159 ], [ %indvars.iv.next174, %144 ]
  %87 = call { double, double } @Cd(ptr noundef nonnull @c_b13)
  %88 = extractvalue { double, double } %87, 0
  %89 = extractvalue { double, double } %87, 1
  %90 = trunc nuw nsw i64 %indvars.iv173 to i32
  %91 = mul i32 %61, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %92
  %94 = call { double, double } @Cd(ptr noundef %93)
  %95 = extractvalue { double, double } %94, 0
  %96 = extractvalue { double, double } %94, 1
  %97 = call { double, double } @__divdc3(double noundef %88, double noundef %89, double noundef %95, double noundef %96) #6
  %98 = extractvalue { double, double } %97, 0
  %99 = extractvalue { double, double } %97, 1
  %100 = call ptr @_pCd(ptr noundef nonnull %9)
  %101 = getelementptr inbounds i8, ptr %100, i64 8
  store double %98, ptr %100, align 8
  store double %99, ptr %101, align 8
  %102 = getelementptr inbounds %struct.doublecomplex, ptr %16, i64 %indvars.iv173
  %103 = load double, ptr %102, align 8, !tbaa !13
  %104 = getelementptr inbounds i8, ptr %102, i64 8
  %105 = load double, ptr %104, align 8, !tbaa !15
  %106 = fneg double %105
  %107 = load <2 x double>, ptr %9, align 16, !tbaa !9
  store <2 x double> %107, ptr %10, align 16, !tbaa !9
  %108 = insertelement <2 x double> poison, double %105, i64 0
  %109 = insertelement <2 x double> %108, double %106, i64 1
  %110 = fmul <2 x double> %107, %109
  %111 = shufflevector <2 x double> %110, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %112 = insertelement <2 x double> poison, double %103, i64 0
  %113 = shufflevector <2 x double> %112, <2 x double> poison, <2 x i32> zeroinitializer
  %114 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %113, <2 x double> %107, <2 x double> %111)
  store <2 x double> %114, ptr %9, align 16, !tbaa !9
  store <2 x double> %114, ptr %102, align 8, !tbaa !9
  %115 = load i32, ptr %0, align 4, !tbaa !5
  store i32 %115, ptr %8, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %.not134.not148 = icmp slt i64 %indvars.iv173, %116
  br i1 %.not134.not148, label %.lr.ph151, label %144

.lr.ph151:                                        ; preds = %86
  %invariant.gep183 = getelementptr %struct.doublecomplex, ptr %15, i64 %indvars.iv173
  %117 = shufflevector <2 x double> %107, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  br label %118

118:                                              ; preds = %.lr.ph151, %118
  %indvars.iv175 = phi i64 [ %indvars.iv173, %.lr.ph151 ], [ %indvars.iv.next176, %118 ]
  %119 = phi <2 x double> [ %114, %.lr.ph151 ], [ %143, %118 ]
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %120 = mul nsw i64 %indvars.iv.next176, %85
  %gep184 = getelementptr %struct.doublecomplex, ptr %invariant.gep183, i64 %120
  %121 = load double, ptr %gep184, align 8, !tbaa !13
  %122 = getelementptr inbounds i8, ptr %gep184, i64 8
  %123 = load double, ptr %122, align 8, !tbaa !15
  %124 = fneg double %123
  %125 = getelementptr %struct.doublecomplex, ptr %3, i64 %indvars.iv175
  %126 = load double, ptr %125, align 8, !tbaa !13
  %127 = getelementptr inbounds i8, ptr %125, i64 8
  %128 = load double, ptr %127, align 8, !tbaa !15
  %129 = fneg double %128
  %130 = insertelement <2 x double> poison, double %124, i64 0
  %131 = insertelement <2 x double> %130, double %123, i64 1
  %132 = fmul <2 x double> %117, %131
  %133 = insertelement <2 x double> poison, double %121, i64 0
  %134 = shufflevector <2 x double> %133, <2 x double> poison, <2 x i32> zeroinitializer
  %135 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %134, <2 x double> %107, <2 x double> %132)
  %136 = insertelement <2 x double> poison, double %128, i64 0
  %137 = insertelement <2 x double> %136, double %129, i64 1
  %138 = fmul <2 x double> %135, %137
  %139 = shufflevector <2 x double> %138, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %140 = insertelement <2 x double> poison, double %126, i64 0
  %141 = shufflevector <2 x double> %140, <2 x double> poison, <2 x i32> zeroinitializer
  %142 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %141, <2 x double> %135, <2 x double> %139)
  %143 = fsub <2 x double> %119, %142
  store <2 x double> %143, ptr %102, align 8, !tbaa !9
  %.not134.not = icmp slt i64 %indvars.iv.next176, %116
  br i1 %.not134.not, label %118, label %._crit_edge152, !llvm.loop !17

._crit_edge152:                                   ; preds = %118
  store <2 x double> %143, ptr %9, align 16, !tbaa !9
  br label %144

144:                                              ; preds = %._crit_edge152, %86
  %indvars.iv.next174 = add nsw i64 %indvars.iv173, -1
  %145 = icmp sgt i64 %indvars.iv173, 1
  br i1 %145, label %86, label %._crit_edge160, !llvm.loop !18

._crit_edge160:                                   ; preds = %144, %81
  %146 = phi i32 [ %82, %81 ], [ %115, %144 ]
  %147 = add nsw i32 %146, -1
  store i32 %147, ptr %8, align 4, !tbaa !5
  %148 = call i32 @zlaswp_(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) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  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 double @dlamch_(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nofree nounwind
declare double @cabs(double noundef, double noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) local_unnamed_addr #4

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

declare { double, double } @__divdc3(double, double, double, double) local_unnamed_addr

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

; 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 double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

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