; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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 i64, align 8
@c_b13 = external hidden global %struct.doublecomplex, align 8
@c_n1 = external hidden global i64, align 8

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

66:                                               ; preds = %169, %7
  %67 = load i64, ptr %27, align 8, !tbaa !9
  %68 = load i64, ptr %17, align 8, !tbaa !9
  %69 = icmp sle i64 %67, %68
  br i1 %69, label %70, label %172

70:                                               ; preds = %66
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !9
  store i64 %72, ptr %18, align 8, !tbaa !9
  %73 = load i64, ptr %27, align 8, !tbaa !9
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %28, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %165, %70
  %76 = load i64, ptr %28, align 8, !tbaa !9
  %77 = load i64, ptr %18, align 8, !tbaa !9
  %78 = icmp sle i64 %76, %77
  br i1 %78, label %79, label %168

79:                                               ; preds = %75
  %80 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %80, ptr %19, align 8, !tbaa !9
  %81 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %81, ptr %20, align 8, !tbaa !9
  %82 = load i64, ptr %28, align 8, !tbaa !9
  %83 = load i64, ptr %27, align 8, !tbaa !9
  %84 = load i64, ptr %15, align 8, !tbaa !9
  %85 = mul nsw i64 %83, %84
  %86 = add nsw i64 %82, %85
  store i64 %86, ptr %21, align 8, !tbaa !9
  %87 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %87, ptr %22, align 8, !tbaa !9
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load i64, ptr %21, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.doublecomplex, ptr %88, i64 %89
  %91 = getelementptr inbounds %struct.doublecomplex, ptr %90, i32 0, i32 0
  %92 = load double, ptr %91, align 8, !tbaa !13
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = load i64, ptr %22, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct.doublecomplex, ptr %93, 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 %9, align 8, !tbaa !5
  %99 = load i64, ptr %21, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.doublecomplex, ptr %98, i64 %99
  %101 = getelementptr inbounds %struct.doublecomplex, ptr %100, i32 0, i32 1
  %102 = load double, ptr %101, align 8, !tbaa !15
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load i64, ptr %22, align 8, !tbaa !9
  %105 = getelementptr inbounds %struct.doublecomplex, ptr %103, i64 %104
  %106 = getelementptr inbounds %struct.doublecomplex, ptr %105, i32 0, i32 1
  %107 = load double, ptr %106, align 8, !tbaa !15
  %108 = fmul double %102, %107
  %109 = fneg double %108
  %110 = call double @llvm.fmuladd.f64(double %92, double %97, double %109)
  %111 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %110, ptr %111, align 8, !tbaa !13
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load i64, ptr %21, align 8, !tbaa !9
  %114 = getelementptr inbounds %struct.doublecomplex, ptr %112, i64 %113
  %115 = getelementptr inbounds %struct.doublecomplex, ptr %114, i32 0, i32 0
  %116 = load double, ptr %115, align 8, !tbaa !13
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i64, ptr %22, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.doublecomplex, ptr %117, i64 %118
  %120 = getelementptr inbounds %struct.doublecomplex, ptr %119, i32 0, i32 1
  %121 = load double, ptr %120, align 8, !tbaa !15
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = load i64, ptr %21, align 8, !tbaa !9
  %124 = getelementptr inbounds %struct.doublecomplex, ptr %122, i64 %123
  %125 = getelementptr inbounds %struct.doublecomplex, ptr %124, i32 0, i32 1
  %126 = load double, ptr %125, align 8, !tbaa !15
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = load i64, ptr %22, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.doublecomplex, ptr %127, i64 %128
  %130 = getelementptr inbounds %struct.doublecomplex, ptr %129, i32 0, i32 0
  %131 = load double, ptr %130, align 8, !tbaa !13
  %132 = fmul double %126, %131
  %133 = call double @llvm.fmuladd.f64(double %116, double %121, double %132)
  %134 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double %133, ptr %134, align 8, !tbaa !15
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = load i64, ptr %20, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.doublecomplex, ptr %135, i64 %136
  %138 = getelementptr inbounds %struct.doublecomplex, ptr %137, i32 0, i32 0
  %139 = load double, ptr %138, align 8, !tbaa !13
  %140 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %141 = load double, ptr %140, align 8, !tbaa !13
  %142 = fsub double %139, %141
  %143 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %142, ptr %143, align 8, !tbaa !13
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = load i64, ptr %20, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct.doublecomplex, ptr %144, i64 %145
  %147 = getelementptr inbounds %struct.doublecomplex, ptr %146, i32 0, i32 1
  %148 = load double, ptr %147, align 8, !tbaa !15
  %149 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %150 = load double, ptr %149, align 8, !tbaa !15
  %151 = fsub double %148, %150
  %152 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %151, ptr %152, align 8, !tbaa !15
  %153 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %154 = load double, ptr %153, align 8, !tbaa !13
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = load i64, ptr %19, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.doublecomplex, ptr %155, i64 %156
  %158 = getelementptr inbounds %struct.doublecomplex, ptr %157, i32 0, i32 0
  store double %154, ptr %158, align 8, !tbaa !13
  %159 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %160 = load double, ptr %159, align 8, !tbaa !15
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = load i64, ptr %19, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.doublecomplex, ptr %161, i64 %162
  %164 = getelementptr inbounds %struct.doublecomplex, ptr %163, i32 0, i32 1
  store double %160, ptr %164, align 8, !tbaa !15
  br label %165

165:                                              ; preds = %79
  %166 = load i64, ptr %28, align 8, !tbaa !9
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %28, align 8, !tbaa !9
  br label %75, !llvm.loop !16

168:                                              ; preds = %75
  br label %169

169:                                              ; preds = %168
  %170 = load i64, ptr %27, align 8, !tbaa !9
  %171 = add nsw i64 %170, 1
  store i64 %171, ptr %27, align 8, !tbaa !9
  br label %66, !llvm.loop !18

172:                                              ; preds = %66
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  store double 1.000000e+00, ptr %173, align 8, !tbaa !11
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.doublecomplex, ptr %175, i64 1
  %177 = call i64 @f2c_izamax(ptr noundef %174, ptr noundef %176, ptr noundef @c__1)
  store i64 %177, ptr %27, align 8, !tbaa !9
  %178 = load double, ptr %32, align 8, !tbaa !11
  %179 = fmul double %178, 2.000000e+00
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = load i64, ptr %27, align 8, !tbaa !9
  %182 = getelementptr inbounds %struct.doublecomplex, ptr %180, i64 %181
  %183 = call double @z_abs(ptr noundef %182)
  %184 = fmul double %179, %183
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = load i64, ptr %186, align 8, !tbaa !9
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = load i64, ptr %188, align 8, !tbaa !9
  %190 = load i64, ptr %15, align 8, !tbaa !9
  %191 = mul nsw i64 %189, %190
  %192 = add nsw i64 %187, %191
  %193 = getelementptr inbounds %struct.doublecomplex, ptr %185, i64 %192
  %194 = call double @z_abs(ptr noundef %193)
  %195 = fcmp ogt double %184, %194
  br i1 %195, label %196, label %222

196:                                              ; preds = %172
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = load i64, ptr %27, align 8, !tbaa !9
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %197, i64 %198
  %200 = call double @z_abs(ptr noundef %199)
  store double %200, ptr %23, align 8, !tbaa !11
  %201 = load double, ptr %23, align 8, !tbaa !11
  %202 = fdiv double 5.000000e-01, %201
  %203 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %202, ptr %203, align 8, !tbaa !13
  %204 = load double, ptr %23, align 8, !tbaa !11
  %205 = fdiv double 0.000000e+00, %204
  %206 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %205, ptr %206, align 8, !tbaa !15
  %207 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %208 = load double, ptr %207, align 8, !tbaa !13
  %209 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  store double %208, ptr %209, align 8, !tbaa !13
  %210 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %211 = load double, ptr %210, align 8, !tbaa !15
  %212 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  store double %211, ptr %212, align 8, !tbaa !15
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.doublecomplex, ptr %214, i64 1
  %216 = call i32 @f2c_zscal(ptr noundef %213, ptr noundef %30, ptr noundef %215, ptr noundef @c__1)
  %217 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  %218 = load double, ptr %217, align 8, !tbaa !13
  %219 = load ptr, ptr %14, align 8, !tbaa !5
  %220 = load double, ptr %219, align 8, !tbaa !11
  %221 = fmul double %220, %218
  store double %221, ptr %219, align 8, !tbaa !11
  br label %222

222:                                              ; preds = %196, %172
  %223 = load ptr, ptr %8, align 8, !tbaa !5
  %224 = load i64, ptr %223, align 8, !tbaa !9
  store i64 %224, ptr %27, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %412, %222
  %226 = load i64, ptr %27, align 8, !tbaa !9
  %227 = icmp sge i64 %226, 1
  br i1 %227, label %228, label %415

228:                                              ; preds = %225
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  %230 = load i64, ptr %27, align 8, !tbaa !9
  %231 = load i64, ptr %27, align 8, !tbaa !9
  %232 = load i64, ptr %15, align 8, !tbaa !9
  %233 = mul nsw i64 %231, %232
  %234 = add nsw i64 %230, %233
  %235 = getelementptr inbounds %struct.doublecomplex, ptr %229, i64 %234
  call void @z_div(ptr noundef %24, ptr noundef @c_b13, ptr noundef %235)
  %236 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %237 = load double, ptr %236, align 8, !tbaa !13
  %238 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  store double %237, ptr %238, align 8, !tbaa !13
  %239 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %240 = load double, ptr %239, align 8, !tbaa !15
  %241 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  store double %240, ptr %241, align 8, !tbaa !15
  %242 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %242, ptr %17, align 8, !tbaa !9
  %243 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %243, ptr %18, align 8, !tbaa !9
  %244 = load ptr, ptr %11, align 8, !tbaa !5
  %245 = load i64, ptr %18, align 8, !tbaa !9
  %246 = getelementptr inbounds %struct.doublecomplex, ptr %244, i64 %245
  %247 = getelementptr inbounds %struct.doublecomplex, ptr %246, i32 0, i32 0
  %248 = load double, ptr %247, align 8, !tbaa !13
  %249 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  %250 = load double, ptr %249, align 8, !tbaa !13
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = load i64, ptr %18, align 8, !tbaa !9
  %253 = getelementptr inbounds %struct.doublecomplex, ptr %251, i64 %252
  %254 = getelementptr inbounds %struct.doublecomplex, ptr %253, i32 0, i32 1
  %255 = load double, ptr %254, align 8, !tbaa !15
  %256 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  %257 = load double, ptr %256, align 8, !tbaa !15
  %258 = fmul double %255, %257
  %259 = fneg double %258
  %260 = call double @llvm.fmuladd.f64(double %248, double %250, double %259)
  %261 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %260, ptr %261, align 8, !tbaa !13
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = load i64, ptr %18, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.doublecomplex, ptr %262, i64 %263
  %265 = getelementptr inbounds %struct.doublecomplex, ptr %264, i32 0, i32 0
  %266 = load double, ptr %265, align 8, !tbaa !13
  %267 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  %268 = load double, ptr %267, align 8, !tbaa !15
  %269 = load ptr, ptr %11, align 8, !tbaa !5
  %270 = load i64, ptr %18, align 8, !tbaa !9
  %271 = getelementptr inbounds %struct.doublecomplex, ptr %269, i64 %270
  %272 = getelementptr inbounds %struct.doublecomplex, ptr %271, i32 0, i32 1
  %273 = load double, ptr %272, align 8, !tbaa !15
  %274 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  %275 = load double, ptr %274, align 8, !tbaa !13
  %276 = fmul double %273, %275
  %277 = call double @llvm.fmuladd.f64(double %266, double %268, double %276)
  %278 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %277, ptr %278, align 8, !tbaa !15
  %279 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %280 = load double, ptr %279, align 8, !tbaa !13
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = load i64, ptr %17, align 8, !tbaa !9
  %283 = getelementptr inbounds %struct.doublecomplex, ptr %281, i64 %282
  %284 = getelementptr inbounds %struct.doublecomplex, ptr %283, i32 0, i32 0
  store double %280, ptr %284, align 8, !tbaa !13
  %285 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %286 = load double, ptr %285, align 8, !tbaa !15
  %287 = load ptr, ptr %11, align 8, !tbaa !5
  %288 = load i64, ptr %17, align 8, !tbaa !9
  %289 = getelementptr inbounds %struct.doublecomplex, ptr %287, i64 %288
  %290 = getelementptr inbounds %struct.doublecomplex, ptr %289, i32 0, i32 1
  store double %286, ptr %290, align 8, !tbaa !15
  %291 = load ptr, ptr %8, align 8, !tbaa !5
  %292 = load i64, ptr %291, align 8, !tbaa !9
  store i64 %292, ptr %17, align 8, !tbaa !9
  %293 = load i64, ptr %27, align 8, !tbaa !9
  %294 = add nsw i64 %293, 1
  store i64 %294, ptr %28, align 8, !tbaa !9
  br label %295

295:                                              ; preds = %408, %228
  %296 = load i64, ptr %28, align 8, !tbaa !9
  %297 = load i64, ptr %17, align 8, !tbaa !9
  %298 = icmp sle i64 %296, %297
  br i1 %298, label %299, label %411

299:                                              ; preds = %295
  %300 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %300, ptr %18, align 8, !tbaa !9
  %301 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %301, ptr %19, align 8, !tbaa !9
  %302 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %302, ptr %20, align 8, !tbaa !9
  %303 = load i64, ptr %27, align 8, !tbaa !9
  %304 = load i64, ptr %28, align 8, !tbaa !9
  %305 = load i64, ptr %15, align 8, !tbaa !9
  %306 = mul nsw i64 %304, %305
  %307 = add nsw i64 %303, %306
  store i64 %307, ptr %21, align 8, !tbaa !9
  %308 = load ptr, ptr %9, align 8, !tbaa !5
  %309 = load i64, ptr %21, align 8, !tbaa !9
  %310 = getelementptr inbounds %struct.doublecomplex, ptr %308, i64 %309
  %311 = getelementptr inbounds %struct.doublecomplex, ptr %310, i32 0, i32 0
  %312 = load double, ptr %311, align 8, !tbaa !13
  %313 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  %314 = load double, ptr %313, align 8, !tbaa !13
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = load i64, ptr %21, align 8, !tbaa !9
  %317 = getelementptr inbounds %struct.doublecomplex, ptr %315, i64 %316
  %318 = getelementptr inbounds %struct.doublecomplex, ptr %317, i32 0, i32 1
  %319 = load double, ptr %318, align 8, !tbaa !15
  %320 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  %321 = load double, ptr %320, align 8, !tbaa !15
  %322 = fmul double %319, %321
  %323 = fneg double %322
  %324 = call double @llvm.fmuladd.f64(double %312, double %314, double %323)
  %325 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  store double %324, ptr %325, align 8, !tbaa !13
  %326 = load ptr, ptr %9, align 8, !tbaa !5
  %327 = load i64, ptr %21, align 8, !tbaa !9
  %328 = getelementptr inbounds %struct.doublecomplex, ptr %326, i64 %327
  %329 = getelementptr inbounds %struct.doublecomplex, ptr %328, i32 0, i32 0
  %330 = load double, ptr %329, align 8, !tbaa !13
  %331 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  %332 = load double, ptr %331, align 8, !tbaa !15
  %333 = load ptr, ptr %9, align 8, !tbaa !5
  %334 = load i64, ptr %21, align 8, !tbaa !9
  %335 = getelementptr inbounds %struct.doublecomplex, ptr %333, i64 %334
  %336 = getelementptr inbounds %struct.doublecomplex, ptr %335, i32 0, i32 1
  %337 = load double, ptr %336, align 8, !tbaa !15
  %338 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  %339 = load double, ptr %338, align 8, !tbaa !13
  %340 = fmul double %337, %339
  %341 = call double @llvm.fmuladd.f64(double %330, double %332, double %340)
  %342 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  store double %341, ptr %342, align 8, !tbaa !15
  %343 = load ptr, ptr %11, align 8, !tbaa !5
  %344 = load i64, ptr %20, align 8, !tbaa !9
  %345 = getelementptr inbounds %struct.doublecomplex, ptr %343, i64 %344
  %346 = getelementptr inbounds %struct.doublecomplex, ptr %345, i32 0, i32 0
  %347 = load double, ptr %346, align 8, !tbaa !13
  %348 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  %349 = load double, ptr %348, align 8, !tbaa !13
  %350 = load ptr, ptr %11, align 8, !tbaa !5
  %351 = load i64, ptr %20, align 8, !tbaa !9
  %352 = getelementptr inbounds %struct.doublecomplex, ptr %350, i64 %351
  %353 = getelementptr inbounds %struct.doublecomplex, ptr %352, i32 0, i32 1
  %354 = load double, ptr %353, align 8, !tbaa !15
  %355 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  %356 = load double, ptr %355, align 8, !tbaa !15
  %357 = fmul double %354, %356
  %358 = fneg double %357
  %359 = call double @llvm.fmuladd.f64(double %347, double %349, double %358)
  %360 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %359, ptr %360, align 8, !tbaa !13
  %361 = load ptr, ptr %11, align 8, !tbaa !5
  %362 = load i64, ptr %20, align 8, !tbaa !9
  %363 = getelementptr inbounds %struct.doublecomplex, ptr %361, i64 %362
  %364 = getelementptr inbounds %struct.doublecomplex, ptr %363, i32 0, i32 0
  %365 = load double, ptr %364, align 8, !tbaa !13
  %366 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  %367 = load double, ptr %366, align 8, !tbaa !15
  %368 = load ptr, ptr %11, align 8, !tbaa !5
  %369 = load i64, ptr %20, align 8, !tbaa !9
  %370 = getelementptr inbounds %struct.doublecomplex, ptr %368, i64 %369
  %371 = getelementptr inbounds %struct.doublecomplex, ptr %370, i32 0, i32 1
  %372 = load double, ptr %371, align 8, !tbaa !15
  %373 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  %374 = load double, ptr %373, align 8, !tbaa !13
  %375 = fmul double %372, %374
  %376 = call double @llvm.fmuladd.f64(double %365, double %367, double %375)
  %377 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double %376, ptr %377, align 8, !tbaa !15
  %378 = load ptr, ptr %11, align 8, !tbaa !5
  %379 = load i64, ptr %19, align 8, !tbaa !9
  %380 = getelementptr inbounds %struct.doublecomplex, ptr %378, i64 %379
  %381 = getelementptr inbounds %struct.doublecomplex, ptr %380, i32 0, i32 0
  %382 = load double, ptr %381, align 8, !tbaa !13
  %383 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %384 = load double, ptr %383, align 8, !tbaa !13
  %385 = fsub double %382, %384
  %386 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %385, ptr %386, align 8, !tbaa !13
  %387 = load ptr, ptr %11, align 8, !tbaa !5
  %388 = load i64, ptr %19, align 8, !tbaa !9
  %389 = getelementptr inbounds %struct.doublecomplex, ptr %387, i64 %388
  %390 = getelementptr inbounds %struct.doublecomplex, ptr %389, i32 0, i32 1
  %391 = load double, ptr %390, align 8, !tbaa !15
  %392 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %393 = load double, ptr %392, align 8, !tbaa !15
  %394 = fsub double %391, %393
  %395 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %394, ptr %395, align 8, !tbaa !15
  %396 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %397 = load double, ptr %396, align 8, !tbaa !13
  %398 = load ptr, ptr %11, align 8, !tbaa !5
  %399 = load i64, ptr %18, align 8, !tbaa !9
  %400 = getelementptr inbounds %struct.doublecomplex, ptr %398, i64 %399
  %401 = getelementptr inbounds %struct.doublecomplex, ptr %400, i32 0, i32 0
  store double %397, ptr %401, align 8, !tbaa !13
  %402 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %403 = load double, ptr %402, align 8, !tbaa !15
  %404 = load ptr, ptr %11, align 8, !tbaa !5
  %405 = load i64, ptr %18, align 8, !tbaa !9
  %406 = getelementptr inbounds %struct.doublecomplex, ptr %404, i64 %405
  %407 = getelementptr inbounds %struct.doublecomplex, ptr %406, i32 0, i32 1
  store double %403, ptr %407, align 8, !tbaa !15
  br label %408

408:                                              ; preds = %299
  %409 = load i64, ptr %28, align 8, !tbaa !9
  %410 = add nsw i64 %409, 1
  store i64 %410, ptr %28, align 8, !tbaa !9
  br label %295, !llvm.loop !19

411:                                              ; preds = %295
  br label %412

412:                                              ; preds = %411
  %413 = load i64, ptr %27, align 8, !tbaa !9
  %414 = add nsw i64 %413, -1
  store i64 %414, ptr %27, align 8, !tbaa !9
  br label %225, !llvm.loop !20

415:                                              ; preds = %225
  %416 = load ptr, ptr %8, align 8, !tbaa !5
  %417 = load i64, ptr %416, align 8, !tbaa !9
  %418 = sub nsw i64 %417, 1
  store i64 %418, ptr %17, align 8, !tbaa !9
  %419 = load ptr, ptr %11, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.doublecomplex, ptr %419, i64 1
  %421 = load ptr, ptr %10, align 8, !tbaa !5
  %422 = load ptr, ptr %13, align 8, !tbaa !5
  %423 = getelementptr inbounds i64, ptr %422, i64 1
  %424 = call i32 @zlaswp_(ptr noundef @c__1, ptr noundef %420, ptr noundef %421, ptr noundef @c__1, ptr noundef %17, ptr noundef %423, ptr noundef @c_n1)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  ret i32 0
}

; 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 i32 @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 i64 @f2c_izamax(ptr noundef, ptr noundef, ptr noundef) #2

declare double @z_abs(ptr noundef) #2

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

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

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

!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 = !{!"long", !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 i64, align 8
@c_b13 = external hidden global %struct.doublecomplex, align 8
@c_n1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @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 i64, align 8
  %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 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %13 = load i64, ptr %2, align 8, !tbaa !5
  %14 = xor i64 %13, -1
  %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) #4
  %18 = tail call double @dlamch_(ptr noundef nonnull @.str.1) #4
  %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
  %21 = call i32 @dlabad_(ptr noundef nonnull %12, ptr noundef nonnull %11) #4
  %22 = load i64, ptr %0, align 8, !tbaa !5
  %23 = add nsw i64 %22, -1
  store i64 %23, ptr %8, align 8, !tbaa !5
  %24 = 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) #4
  %25 = load i64, ptr %0, align 8, !tbaa !5
  %26 = add nsw i64 %25, -1
  store i64 %26, ptr %8, align 8, !tbaa !5
  %.not.not136 = icmp sgt i64 %25, 1
  br i1 %.not.not136, label %.lr.ph139, label %50

.lr.ph139:                                        ; preds = %7
  %27 = getelementptr inbounds i8, ptr %9, i64 8
  br label %.lr.ph

.loopexit:                                        ; preds = %31
  %exitcond.not = icmp eq i64 %28, %25
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

.lr.ph:                                           ; preds = %.loopexit, %.lr.ph139
  %.0127138 = phi i64 [ 1, %.lr.ph139 ], [ %28, %.loopexit ]
  %28 = add nuw nsw i64 %.0127138, 1
  %29 = mul nsw i64 %.0127138, %13
  %invariant.gep = getelementptr %struct.doublecomplex, ptr %15, i64 %29
  %30 = getelementptr inbounds %struct.doublecomplex, ptr %16, i64 %.0127138
  br label %31

31:                                               ; preds = %.lr.ph, %31
  %.0132 = phi i64 [ %28, %.lr.ph ], [ %47, %31 ]
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %.0132
  %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 %.0132
  %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
  %47 = add nuw nsw i64 %.0132, 1
  %.not130.not = icmp slt i64 %.0132, %25
  br i1 %.not130.not, label %31, label %.loopexit, !llvm.loop !16

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

50:                                               ; preds = %._crit_edge, %7
  %.lcssa135.lcssa = phi double [ %49, %._crit_edge ], [ undef, %7 ]
  store double %.lcssa135.lcssa, ptr %9, align 16, !tbaa !13
  store double 1.000000e+00, ptr %6, align 8, !tbaa !9
  %51 = call i64 @f2c_izamax(ptr noundef nonnull %0, ptr noundef %3, ptr noundef nonnull @c__1) #4
  %52 = load double, ptr %12, align 8, !tbaa !9
  %53 = fmul double %52, 2.000000e+00
  %54 = getelementptr inbounds %struct.doublecomplex, ptr %16, i64 %51
  %55 = call double @z_abs(ptr noundef nonnull %54) #4
  %56 = fmul double %53, %55
  %57 = load i64, ptr %0, align 8, !tbaa !5
  %58 = add i64 %13, 1
  %59 = mul i64 %57, %58
  %60 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %59
  %61 = call double @z_abs(ptr noundef %60) #4
  %62 = fcmp ogt double %56, %61
  br i1 %62, label %63, label %72

63:                                               ; preds = %50
  %64 = call double @z_abs(ptr noundef nonnull %54) #4
  %65 = insertelement <2 x double> poison, double %64, i64 0
  %66 = shufflevector <2 x double> %65, <2 x double> poison, <2 x i32> zeroinitializer
  %67 = fdiv <2 x double> <double 5.000000e-01, double 0.000000e+00>, %66
  store <2 x double> %67, ptr %9, align 16, !tbaa !9
  store <2 x double> %67, ptr %10, align 16, !tbaa !9
  %68 = call i32 @f2c_zscal(ptr noundef nonnull %0, ptr noundef nonnull %10, ptr noundef %3, ptr noundef nonnull @c__1) #4
  %69 = load double, ptr %10, align 16, !tbaa !13
  %70 = load double, ptr %6, align 8, !tbaa !9
  %71 = fmul double %69, %70
  store double %71, ptr %6, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %63, %50
  %73 = load i64, ptr %0, align 8, !tbaa !5
  %74 = icmp sgt i64 %73, 0
  br i1 %74, label %.lr.ph154, label %._crit_edge155

.lr.ph154:                                        ; preds = %72, %120
  %.1128152 = phi i64 [ %121, %120 ], [ %73, %72 ]
  %75 = mul i64 %.1128152, %58
  %76 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %75
  call void @z_div(ptr noundef nonnull %9, ptr noundef nonnull @c_b13, ptr noundef %76) #4
  %77 = getelementptr inbounds %struct.doublecomplex, ptr %16, i64 %.1128152
  %78 = load double, ptr %77, align 8, !tbaa !13
  %79 = getelementptr inbounds i8, ptr %77, i64 8
  %80 = load double, ptr %79, align 8, !tbaa !15
  %81 = fneg double %80
  %82 = load <2 x double>, ptr %9, align 16, !tbaa !9
  store <2 x double> %82, ptr %10, align 16, !tbaa !9
  %83 = insertelement <2 x double> poison, double %80, i64 0
  %84 = insertelement <2 x double> %83, double %81, i64 1
  %85 = fmul <2 x double> %82, %84
  %86 = shufflevector <2 x double> %85, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %87 = insertelement <2 x double> poison, double %78, i64 0
  %88 = shufflevector <2 x double> %87, <2 x double> poison, <2 x i32> zeroinitializer
  %89 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %88, <2 x double> %82, <2 x double> %86)
  store <2 x double> %89, ptr %9, align 16, !tbaa !9
  store <2 x double> %89, ptr %77, align 8, !tbaa !9
  %90 = load i64, ptr %0, align 8, !tbaa !5
  store i64 %90, ptr %8, align 8, !tbaa !5
  %.not129.not143 = icmp slt i64 %.1128152, %90
  br i1 %.not129.not143, label %.lr.ph146, label %120

.lr.ph146:                                        ; preds = %.lr.ph154
  %91 = getelementptr %struct.doublecomplex, ptr %15, i64 %.1128152
  %92 = shufflevector <2 x double> %82, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  br label %93

93:                                               ; preds = %.lr.ph146, %93
  %.1.in144 = phi i64 [ %.1128152, %.lr.ph146 ], [ %.1, %93 ]
  %94 = phi <2 x double> [ %89, %.lr.ph146 ], [ %119, %93 ]
  %.1 = add nuw nsw i64 %.1.in144, 1
  %95 = mul nsw i64 %.1, %13
  %96 = getelementptr %struct.doublecomplex, ptr %91, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !13
  %98 = getelementptr inbounds i8, ptr %96, i64 8
  %99 = load double, ptr %98, align 8, !tbaa !15
  %100 = fneg double %99
  %101 = getelementptr %struct.doublecomplex, ptr %3, i64 %.1.in144
  %102 = load double, ptr %101, align 8, !tbaa !13
  %103 = getelementptr inbounds i8, ptr %101, i64 8
  %104 = load double, ptr %103, align 8, !tbaa !15
  %105 = fneg double %104
  %106 = insertelement <2 x double> poison, double %100, i64 0
  %107 = insertelement <2 x double> %106, double %99, i64 1
  %108 = fmul <2 x double> %92, %107
  %109 = insertelement <2 x double> poison, double %97, i64 0
  %110 = shufflevector <2 x double> %109, <2 x double> poison, <2 x i32> zeroinitializer
  %111 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %110, <2 x double> %82, <2 x double> %108)
  %112 = insertelement <2 x double> poison, double %104, i64 0
  %113 = insertelement <2 x double> %112, double %105, i64 1
  %114 = fmul <2 x double> %111, %113
  %115 = shufflevector <2 x double> %114, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %116 = insertelement <2 x double> poison, double %102, i64 0
  %117 = shufflevector <2 x double> %116, <2 x double> poison, <2 x i32> zeroinitializer
  %118 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %117, <2 x double> %111, <2 x double> %115)
  %119 = fsub <2 x double> %94, %118
  store <2 x double> %119, ptr %77, align 8, !tbaa !9
  %.not129.not = icmp slt i64 %.1, %90
  br i1 %.not129.not, label %93, label %._crit_edge147, !llvm.loop !17

._crit_edge147:                                   ; preds = %93
  store <2 x double> %119, ptr %9, align 16, !tbaa !9
  br label %120

120:                                              ; preds = %._crit_edge147, %.lr.ph154
  %121 = add nsw i64 %.1128152, -1
  %122 = icmp sgt i64 %.1128152, 1
  br i1 %122, label %.lr.ph154, label %._crit_edge155, !llvm.loop !18

._crit_edge155:                                   ; preds = %120, %72
  %123 = phi i64 [ %73, %72 ], [ %90, %120 ]
  %124 = add nsw i64 %123, -1
  store i64 %124, ptr %8, align 8, !tbaa !5
  %125 = 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) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  ret i32 0
}

; 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 i32 @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 i64 @f2c_izamax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @z_abs(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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>) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"long", !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,DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass