; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (zla_gercond_x)

; 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
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local double @zla_gercond_x__(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, i64 noundef %11) #0 {
  %13 = alloca double, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca %struct.doublecomplex, align 8
  %38 = alloca %struct.doublecomplex, align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca double, align 8
  %42 = alloca i64, align 8
  %43 = alloca [3 x i64], align 16
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca i64, align 8
  %47 = alloca i32, align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store i64 %11, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, 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 8, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = load i64, ptr %48, align 8, !tbaa !9
  store i64 %49, ptr %26, align 8, !tbaa !9
  %50 = load i64, ptr %26, align 8, !tbaa !9
  %51 = add nsw i64 1, %50
  store i64 %51, ptr %27, align 8, !tbaa !9
  %52 = load i64, ptr %27, align 8, !tbaa !9
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = sub i64 0, %52
  %55 = getelementptr inbounds %struct.doublecomplex, ptr %53, i64 %54
  store ptr %55, ptr %16, align 8, !tbaa !5
  %56 = load ptr, ptr %19, align 8, !tbaa !5
  %57 = load i64, ptr %56, align 8, !tbaa !9
  store i64 %57, ptr %28, align 8, !tbaa !9
  %58 = load i64, ptr %28, align 8, !tbaa !9
  %59 = add nsw i64 1, %58
  store i64 %59, ptr %29, align 8, !tbaa !9
  %60 = load i64, ptr %29, align 8, !tbaa !9
  %61 = load ptr, ptr %18, align 8, !tbaa !5
  %62 = sub i64 0, %60
  %63 = getelementptr inbounds %struct.doublecomplex, ptr %61, i64 %62
  store ptr %63, ptr %18, align 8, !tbaa !5
  %64 = load ptr, ptr %20, align 8, !tbaa !5
  %65 = getelementptr inbounds i64, ptr %64, i32 -1
  store ptr %65, ptr %20, align 8, !tbaa !5
  %66 = load ptr, ptr %21, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.doublecomplex, ptr %66, i32 -1
  store ptr %67, ptr %21, align 8, !tbaa !5
  %68 = load ptr, ptr %23, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.doublecomplex, ptr %68, i32 -1
  store ptr %69, ptr %23, align 8, !tbaa !5
  %70 = load ptr, ptr %24, align 8, !tbaa !5
  %71 = getelementptr inbounds double, ptr %70, i32 -1
  store ptr %71, ptr %24, align 8, !tbaa !5
  store double 0.000000e+00, ptr %34, align 8, !tbaa !11
  %72 = load ptr, ptr %22, align 8, !tbaa !5
  store i64 0, ptr %72, align 8, !tbaa !9
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = call i64 @lsame_(ptr noundef %73, ptr noundef @.str)
  store i64 %74, ptr %46, align 8, !tbaa !9
  %75 = load i64, ptr %46, align 8, !tbaa !9
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %87, label %77

77:                                               ; preds = %12
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = call i64 @lsame_(ptr noundef %78, ptr noundef @.str.1)
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %87, label %81

81:                                               ; preds = %77
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = call i64 @lsame_(ptr noundef %82, ptr noundef @.str.2)
  %84 = icmp ne i64 %83, 0
  br i1 %84, label %87, label %85

85:                                               ; preds = %81
  %86 = load ptr, ptr %22, align 8, !tbaa !5
  store i64 -1, ptr %86, align 8, !tbaa !9
  br label %94

87:                                               ; preds = %81, %77, %12
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = icmp slt i64 %89, 0
  br i1 %90, label %91, label %93

91:                                               ; preds = %87
  %92 = load ptr, ptr %22, align 8, !tbaa !5
  store i64 -2, ptr %92, align 8, !tbaa !9
  br label %93

93:                                               ; preds = %91, %87
  br label %94

94:                                               ; preds = %93, %85
  %95 = load ptr, ptr %22, align 8, !tbaa !5
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %104

98:                                               ; preds = %94
  %99 = load ptr, ptr %22, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = sub nsw i64 0, %100
  store i64 %101, ptr %30, align 8, !tbaa !9
  %102 = call i32 @xerbla_(ptr noundef @.str.3, ptr noundef %30)
  %103 = load double, ptr %34, align 8, !tbaa !11
  store double %103, ptr %13, align 8
  store i32 1, ptr %47, align 4
  br label %599

104:                                              ; preds = %94
  store double 0.000000e+00, ptr %44, align 8, !tbaa !11
  %105 = load i64, ptr %46, align 8, !tbaa !9
  %106 = icmp ne i64 %105, 0
  br i1 %106, label %107, label %226

107:                                              ; preds = %104
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = load i64, ptr %108, align 8, !tbaa !9
  store i64 %109, ptr %30, align 8, !tbaa !9
  store i64 1, ptr %39, align 8, !tbaa !9
  br label %110

110:                                              ; preds = %222, %107
  %111 = load i64, ptr %39, align 8, !tbaa !9
  %112 = load i64, ptr %30, align 8, !tbaa !9
  %113 = icmp sle i64 %111, %112
  br i1 %113, label %114, label %225

114:                                              ; preds = %110
  store double 0.000000e+00, ptr %41, align 8, !tbaa !11
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = load i64, ptr %115, align 8, !tbaa !9
  store i64 %116, ptr %31, align 8, !tbaa !9
  store i64 1, ptr %40, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %205, %114
  %118 = load i64, ptr %40, align 8, !tbaa !9
  %119 = load i64, ptr %31, align 8, !tbaa !9
  %120 = icmp sle i64 %118, %119
  br i1 %120, label %121, label %208

121:                                              ; preds = %117
  %122 = load i64, ptr %39, align 8, !tbaa !9
  %123 = load i64, ptr %40, align 8, !tbaa !9
  %124 = load i64, ptr %26, align 8, !tbaa !9
  %125 = mul nsw i64 %123, %124
  %126 = add nsw i64 %122, %125
  store i64 %126, ptr %32, align 8, !tbaa !9
  %127 = load i64, ptr %40, align 8, !tbaa !9
  store i64 %127, ptr %33, align 8, !tbaa !9
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = load i64, ptr %32, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.doublecomplex, ptr %128, i64 %129
  %131 = getelementptr inbounds %struct.doublecomplex, ptr %130, i32 0, i32 0
  %132 = load double, ptr %131, align 8, !tbaa !13
  %133 = load ptr, ptr %21, align 8, !tbaa !5
  %134 = load i64, ptr %33, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.doublecomplex, ptr %133, i64 %134
  %136 = getelementptr inbounds %struct.doublecomplex, ptr %135, i32 0, i32 0
  %137 = load double, ptr %136, align 8, !tbaa !13
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = load i64, ptr %32, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct.doublecomplex, ptr %138, i64 %139
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %140, i32 0, i32 1
  %142 = load double, ptr %141, align 8, !tbaa !15
  %143 = load ptr, ptr %21, align 8, !tbaa !5
  %144 = load i64, ptr %33, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.doublecomplex, ptr %143, i64 %144
  %146 = getelementptr inbounds %struct.doublecomplex, ptr %145, i32 0, i32 1
  %147 = load double, ptr %146, align 8, !tbaa !15
  %148 = fmul double %142, %147
  %149 = fneg double %148
  %150 = call double @llvm.fmuladd.f64(double %132, double %137, double %149)
  %151 = getelementptr inbounds %struct.doublecomplex, ptr %38, i32 0, i32 0
  store double %150, ptr %151, align 8, !tbaa !13
  %152 = load ptr, ptr %16, align 8, !tbaa !5
  %153 = load i64, ptr %32, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.doublecomplex, ptr %152, i64 %153
  %155 = getelementptr inbounds %struct.doublecomplex, ptr %154, i32 0, i32 0
  %156 = load double, ptr %155, align 8, !tbaa !13
  %157 = load ptr, ptr %21, align 8, !tbaa !5
  %158 = load i64, ptr %33, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.doublecomplex, ptr %157, i64 %158
  %160 = getelementptr inbounds %struct.doublecomplex, ptr %159, i32 0, i32 1
  %161 = load double, ptr %160, align 8, !tbaa !15
  %162 = load ptr, ptr %16, align 8, !tbaa !5
  %163 = load i64, ptr %32, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.doublecomplex, ptr %162, i64 %163
  %165 = getelementptr inbounds %struct.doublecomplex, ptr %164, i32 0, i32 1
  %166 = load double, ptr %165, align 8, !tbaa !15
  %167 = load ptr, ptr %21, align 8, !tbaa !5
  %168 = load i64, ptr %33, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.doublecomplex, ptr %167, i64 %168
  %170 = getelementptr inbounds %struct.doublecomplex, ptr %169, i32 0, i32 0
  %171 = load double, ptr %170, align 8, !tbaa !13
  %172 = fmul double %166, %171
  %173 = call double @llvm.fmuladd.f64(double %156, double %161, double %172)
  %174 = getelementptr inbounds %struct.doublecomplex, ptr %38, i32 0, i32 1
  store double %173, ptr %174, align 8, !tbaa !15
  %175 = getelementptr inbounds %struct.doublecomplex, ptr %38, i32 0, i32 0
  %176 = load double, ptr %175, align 8, !tbaa !13
  %177 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  store double %176, ptr %177, align 8, !tbaa !13
  %178 = getelementptr inbounds %struct.doublecomplex, ptr %38, i32 0, i32 1
  %179 = load double, ptr %178, align 8, !tbaa !15
  %180 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 1
  store double %179, ptr %180, align 8, !tbaa !15
  %181 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  %182 = load double, ptr %181, align 8, !tbaa !13
  store double %182, ptr %35, align 8, !tbaa !11
  %183 = load double, ptr %35, align 8, !tbaa !11
  %184 = fcmp oge double %183, 0.000000e+00
  br i1 %184, label %185, label %187

185:                                              ; preds = %121
  %186 = load double, ptr %35, align 8, !tbaa !11
  br label %190

187:                                              ; preds = %121
  %188 = load double, ptr %35, align 8, !tbaa !11
  %189 = fneg double %188
  br label %190

190:                                              ; preds = %187, %185
  %191 = phi double [ %186, %185 ], [ %189, %187 ]
  %192 = call double @d_imag(ptr noundef %37)
  store double %192, ptr %36, align 8, !tbaa !11
  %193 = load double, ptr %36, align 8, !tbaa !11
  %194 = fcmp oge double %193, 0.000000e+00
  br i1 %194, label %195, label %197

195:                                              ; preds = %190
  %196 = load double, ptr %36, align 8, !tbaa !11
  br label %200

197:                                              ; preds = %190
  %198 = load double, ptr %36, align 8, !tbaa !11
  %199 = fneg double %198
  br label %200

200:                                              ; preds = %197, %195
  %201 = phi double [ %196, %195 ], [ %199, %197 ]
  %202 = fadd double %191, %201
  %203 = load double, ptr %41, align 8, !tbaa !11
  %204 = fadd double %203, %202
  store double %204, ptr %41, align 8, !tbaa !11
  br label %205

205:                                              ; preds = %200
  %206 = load i64, ptr %40, align 8, !tbaa !9
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %40, align 8, !tbaa !9
  br label %117, !llvm.loop !16

208:                                              ; preds = %117
  %209 = load double, ptr %41, align 8, !tbaa !11
  %210 = load ptr, ptr %24, align 8, !tbaa !5
  %211 = load i64, ptr %39, align 8, !tbaa !9
  %212 = getelementptr inbounds double, ptr %210, i64 %211
  store double %209, ptr %212, align 8, !tbaa !11
  %213 = load double, ptr %44, align 8, !tbaa !11
  %214 = load double, ptr %41, align 8, !tbaa !11
  %215 = fcmp oge double %213, %214
  br i1 %215, label %216, label %218

216:                                              ; preds = %208
  %217 = load double, ptr %44, align 8, !tbaa !11
  br label %220

218:                                              ; preds = %208
  %219 = load double, ptr %41, align 8, !tbaa !11
  br label %220

220:                                              ; preds = %218, %216
  %221 = phi double [ %217, %216 ], [ %219, %218 ]
  store double %221, ptr %44, align 8, !tbaa !11
  br label %222

222:                                              ; preds = %220
  %223 = load i64, ptr %39, align 8, !tbaa !9
  %224 = add nsw i64 %223, 1
  store i64 %224, ptr %39, align 8, !tbaa !9
  br label %110, !llvm.loop !18

225:                                              ; preds = %110
  br label %345

226:                                              ; preds = %104
  %227 = load ptr, ptr %15, align 8, !tbaa !5
  %228 = load i64, ptr %227, align 8, !tbaa !9
  store i64 %228, ptr %30, align 8, !tbaa !9
  store i64 1, ptr %39, align 8, !tbaa !9
  br label %229

229:                                              ; preds = %341, %226
  %230 = load i64, ptr %39, align 8, !tbaa !9
  %231 = load i64, ptr %30, align 8, !tbaa !9
  %232 = icmp sle i64 %230, %231
  br i1 %232, label %233, label %344

233:                                              ; preds = %229
  store double 0.000000e+00, ptr %41, align 8, !tbaa !11
  %234 = load ptr, ptr %15, align 8, !tbaa !5
  %235 = load i64, ptr %234, align 8, !tbaa !9
  store i64 %235, ptr %31, align 8, !tbaa !9
  store i64 1, ptr %40, align 8, !tbaa !9
  br label %236

236:                                              ; preds = %324, %233
  %237 = load i64, ptr %40, align 8, !tbaa !9
  %238 = load i64, ptr %31, align 8, !tbaa !9
  %239 = icmp sle i64 %237, %238
  br i1 %239, label %240, label %327

240:                                              ; preds = %236
  %241 = load i64, ptr %40, align 8, !tbaa !9
  %242 = load i64, ptr %39, align 8, !tbaa !9
  %243 = load i64, ptr %26, align 8, !tbaa !9
  %244 = mul nsw i64 %242, %243
  %245 = add nsw i64 %241, %244
  store i64 %245, ptr %32, align 8, !tbaa !9
  %246 = load i64, ptr %40, align 8, !tbaa !9
  store i64 %246, ptr %33, align 8, !tbaa !9
  %247 = load ptr, ptr %16, align 8, !tbaa !5
  %248 = load i64, ptr %32, align 8, !tbaa !9
  %249 = getelementptr inbounds %struct.doublecomplex, ptr %247, i64 %248
  %250 = getelementptr inbounds %struct.doublecomplex, ptr %249, i32 0, i32 0
  %251 = load double, ptr %250, align 8, !tbaa !13
  %252 = load ptr, ptr %21, align 8, !tbaa !5
  %253 = load i64, ptr %33, align 8, !tbaa !9
  %254 = getelementptr inbounds %struct.doublecomplex, ptr %252, i64 %253
  %255 = getelementptr inbounds %struct.doublecomplex, ptr %254, i32 0, i32 0
  %256 = load double, ptr %255, align 8, !tbaa !13
  %257 = load ptr, ptr %16, align 8, !tbaa !5
  %258 = load i64, ptr %32, align 8, !tbaa !9
  %259 = getelementptr inbounds %struct.doublecomplex, ptr %257, i64 %258
  %260 = getelementptr inbounds %struct.doublecomplex, ptr %259, i32 0, i32 1
  %261 = load double, ptr %260, align 8, !tbaa !15
  %262 = load ptr, ptr %21, align 8, !tbaa !5
  %263 = load i64, ptr %33, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.doublecomplex, ptr %262, i64 %263
  %265 = getelementptr inbounds %struct.doublecomplex, ptr %264, i32 0, i32 1
  %266 = load double, ptr %265, align 8, !tbaa !15
  %267 = fmul double %261, %266
  %268 = fneg double %267
  %269 = call double @llvm.fmuladd.f64(double %251, double %256, double %268)
  %270 = getelementptr inbounds %struct.doublecomplex, ptr %38, i32 0, i32 0
  store double %269, ptr %270, align 8, !tbaa !13
  %271 = load ptr, ptr %16, align 8, !tbaa !5
  %272 = load i64, ptr %32, align 8, !tbaa !9
  %273 = getelementptr inbounds %struct.doublecomplex, ptr %271, i64 %272
  %274 = getelementptr inbounds %struct.doublecomplex, ptr %273, i32 0, i32 0
  %275 = load double, ptr %274, align 8, !tbaa !13
  %276 = load ptr, ptr %21, align 8, !tbaa !5
  %277 = load i64, ptr %33, align 8, !tbaa !9
  %278 = getelementptr inbounds %struct.doublecomplex, ptr %276, i64 %277
  %279 = getelementptr inbounds %struct.doublecomplex, ptr %278, i32 0, i32 1
  %280 = load double, ptr %279, align 8, !tbaa !15
  %281 = load ptr, ptr %16, align 8, !tbaa !5
  %282 = load i64, ptr %32, align 8, !tbaa !9
  %283 = getelementptr inbounds %struct.doublecomplex, ptr %281, i64 %282
  %284 = getelementptr inbounds %struct.doublecomplex, ptr %283, i32 0, i32 1
  %285 = load double, ptr %284, align 8, !tbaa !15
  %286 = load ptr, ptr %21, align 8, !tbaa !5
  %287 = load i64, ptr %33, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.doublecomplex, ptr %286, i64 %287
  %289 = getelementptr inbounds %struct.doublecomplex, ptr %288, i32 0, i32 0
  %290 = load double, ptr %289, align 8, !tbaa !13
  %291 = fmul double %285, %290
  %292 = call double @llvm.fmuladd.f64(double %275, double %280, double %291)
  %293 = getelementptr inbounds %struct.doublecomplex, ptr %38, i32 0, i32 1
  store double %292, ptr %293, align 8, !tbaa !15
  %294 = getelementptr inbounds %struct.doublecomplex, ptr %38, i32 0, i32 0
  %295 = load double, ptr %294, align 8, !tbaa !13
  %296 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  store double %295, ptr %296, align 8, !tbaa !13
  %297 = getelementptr inbounds %struct.doublecomplex, ptr %38, i32 0, i32 1
  %298 = load double, ptr %297, align 8, !tbaa !15
  %299 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 1
  store double %298, ptr %299, align 8, !tbaa !15
  %300 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  %301 = load double, ptr %300, align 8, !tbaa !13
  store double %301, ptr %35, align 8, !tbaa !11
  %302 = load double, ptr %35, align 8, !tbaa !11
  %303 = fcmp oge double %302, 0.000000e+00
  br i1 %303, label %304, label %306

304:                                              ; preds = %240
  %305 = load double, ptr %35, align 8, !tbaa !11
  br label %309

306:                                              ; preds = %240
  %307 = load double, ptr %35, align 8, !tbaa !11
  %308 = fneg double %307
  br label %309

309:                                              ; preds = %306, %304
  %310 = phi double [ %305, %304 ], [ %308, %306 ]
  %311 = call double @d_imag(ptr noundef %37)
  store double %311, ptr %36, align 8, !tbaa !11
  %312 = load double, ptr %36, align 8, !tbaa !11
  %313 = fcmp oge double %312, 0.000000e+00
  br i1 %313, label %314, label %316

314:                                              ; preds = %309
  %315 = load double, ptr %36, align 8, !tbaa !11
  br label %319

316:                                              ; preds = %309
  %317 = load double, ptr %36, align 8, !tbaa !11
  %318 = fneg double %317
  br label %319

319:                                              ; preds = %316, %314
  %320 = phi double [ %315, %314 ], [ %318, %316 ]
  %321 = fadd double %310, %320
  %322 = load double, ptr %41, align 8, !tbaa !11
  %323 = fadd double %322, %321
  store double %323, ptr %41, align 8, !tbaa !11
  br label %324

324:                                              ; preds = %319
  %325 = load i64, ptr %40, align 8, !tbaa !9
  %326 = add nsw i64 %325, 1
  store i64 %326, ptr %40, align 8, !tbaa !9
  br label %236, !llvm.loop !19

327:                                              ; preds = %236
  %328 = load double, ptr %41, align 8, !tbaa !11
  %329 = load ptr, ptr %24, align 8, !tbaa !5
  %330 = load i64, ptr %39, align 8, !tbaa !9
  %331 = getelementptr inbounds double, ptr %329, i64 %330
  store double %328, ptr %331, align 8, !tbaa !11
  %332 = load double, ptr %44, align 8, !tbaa !11
  %333 = load double, ptr %41, align 8, !tbaa !11
  %334 = fcmp oge double %332, %333
  br i1 %334, label %335, label %337

335:                                              ; preds = %327
  %336 = load double, ptr %44, align 8, !tbaa !11
  br label %339

337:                                              ; preds = %327
  %338 = load double, ptr %41, align 8, !tbaa !11
  br label %339

339:                                              ; preds = %337, %335
  %340 = phi double [ %336, %335 ], [ %338, %337 ]
  store double %340, ptr %44, align 8, !tbaa !11
  br label %341

341:                                              ; preds = %339
  %342 = load i64, ptr %39, align 8, !tbaa !9
  %343 = add nsw i64 %342, 1
  store i64 %343, ptr %39, align 8, !tbaa !9
  br label %229, !llvm.loop !20

344:                                              ; preds = %229
  br label %345

345:                                              ; preds = %344, %225
  %346 = load ptr, ptr %15, align 8, !tbaa !5
  %347 = load i64, ptr %346, align 8, !tbaa !9
  %348 = icmp eq i64 %347, 0
  br i1 %348, label %349, label %351

349:                                              ; preds = %345
  store double 1.000000e+00, ptr %34, align 8, !tbaa !11
  %350 = load double, ptr %34, align 8, !tbaa !11
  store double %350, ptr %13, align 8
  store i32 1, ptr %47, align 4
  br label %599

351:                                              ; preds = %345
  %352 = load double, ptr %44, align 8, !tbaa !11
  %353 = fcmp oeq double %352, 0.000000e+00
  br i1 %353, label %354, label %356

354:                                              ; preds = %351
  %355 = load double, ptr %34, align 8, !tbaa !11
  store double %355, ptr %13, align 8
  store i32 1, ptr %47, align 4
  br label %599

356:                                              ; preds = %351
  br label %357

357:                                              ; preds = %356
  store double 0.000000e+00, ptr %45, align 8, !tbaa !11
  store i64 0, ptr %42, align 8, !tbaa !9
  br label %358

358:                                              ; preds = %590, %357
  %359 = load ptr, ptr %15, align 8, !tbaa !5
  %360 = load ptr, ptr %23, align 8, !tbaa !5
  %361 = load ptr, ptr %15, align 8, !tbaa !5
  %362 = load i64, ptr %361, align 8, !tbaa !9
  %363 = add nsw i64 %362, 1
  %364 = getelementptr inbounds %struct.doublecomplex, ptr %360, i64 %363
  %365 = load ptr, ptr %23, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.doublecomplex, ptr %365, i64 1
  %367 = getelementptr inbounds [3 x i64], ptr %43, i64 0, i64 0
  %368 = call i32 @zlacn2_(ptr noundef %359, ptr noundef %364, ptr noundef %366, ptr noundef %45, ptr noundef %42, ptr noundef %367)
  %369 = load i64, ptr %42, align 8, !tbaa !9
  %370 = icmp ne i64 %369, 0
  br i1 %370, label %371, label %591

371:                                              ; preds = %358
  %372 = load i64, ptr %42, align 8, !tbaa !9
  %373 = icmp eq i64 %372, 2
  br i1 %373, label %374, label %482

374:                                              ; preds = %371
  %375 = load ptr, ptr %15, align 8, !tbaa !5
  %376 = load i64, ptr %375, align 8, !tbaa !9
  store i64 %376, ptr %30, align 8, !tbaa !9
  store i64 1, ptr %39, align 8, !tbaa !9
  br label %377

377:                                              ; preds = %419, %374
  %378 = load i64, ptr %39, align 8, !tbaa !9
  %379 = load i64, ptr %30, align 8, !tbaa !9
  %380 = icmp sle i64 %378, %379
  br i1 %380, label %381, label %422

381:                                              ; preds = %377
  %382 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %382, ptr %31, align 8, !tbaa !9
  %383 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %383, ptr %32, align 8, !tbaa !9
  %384 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %384, ptr %33, align 8, !tbaa !9
  %385 = load ptr, ptr %24, align 8, !tbaa !5
  %386 = load i64, ptr %33, align 8, !tbaa !9
  %387 = getelementptr inbounds double, ptr %385, i64 %386
  %388 = load double, ptr %387, align 8, !tbaa !11
  %389 = load ptr, ptr %23, align 8, !tbaa !5
  %390 = load i64, ptr %32, align 8, !tbaa !9
  %391 = getelementptr inbounds %struct.doublecomplex, ptr %389, i64 %390
  %392 = getelementptr inbounds %struct.doublecomplex, ptr %391, i32 0, i32 0
  %393 = load double, ptr %392, align 8, !tbaa !13
  %394 = fmul double %388, %393
  %395 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  store double %394, ptr %395, align 8, !tbaa !13
  %396 = load ptr, ptr %24, align 8, !tbaa !5
  %397 = load i64, ptr %33, align 8, !tbaa !9
  %398 = getelementptr inbounds double, ptr %396, i64 %397
  %399 = load double, ptr %398, align 8, !tbaa !11
  %400 = load ptr, ptr %23, align 8, !tbaa !5
  %401 = load i64, ptr %32, align 8, !tbaa !9
  %402 = getelementptr inbounds %struct.doublecomplex, ptr %400, i64 %401
  %403 = getelementptr inbounds %struct.doublecomplex, ptr %402, i32 0, i32 1
  %404 = load double, ptr %403, align 8, !tbaa !15
  %405 = fmul double %399, %404
  %406 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 1
  store double %405, ptr %406, align 8, !tbaa !15
  %407 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  %408 = load double, ptr %407, align 8, !tbaa !13
  %409 = load ptr, ptr %23, align 8, !tbaa !5
  %410 = load i64, ptr %31, align 8, !tbaa !9
  %411 = getelementptr inbounds %struct.doublecomplex, ptr %409, i64 %410
  %412 = getelementptr inbounds %struct.doublecomplex, ptr %411, i32 0, i32 0
  store double %408, ptr %412, align 8, !tbaa !13
  %413 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 1
  %414 = load double, ptr %413, align 8, !tbaa !15
  %415 = load ptr, ptr %23, align 8, !tbaa !5
  %416 = load i64, ptr %31, align 8, !tbaa !9
  %417 = getelementptr inbounds %struct.doublecomplex, ptr %415, i64 %416
  %418 = getelementptr inbounds %struct.doublecomplex, ptr %417, i32 0, i32 1
  store double %414, ptr %418, align 8, !tbaa !15
  br label %419

419:                                              ; preds = %381
  %420 = load i64, ptr %39, align 8, !tbaa !9
  %421 = add nsw i64 %420, 1
  store i64 %421, ptr %39, align 8, !tbaa !9
  br label %377, !llvm.loop !21

422:                                              ; preds = %377
  %423 = load i64, ptr %46, align 8, !tbaa !9
  %424 = icmp ne i64 %423, 0
  br i1 %424, label %425, label %438

425:                                              ; preds = %422
  %426 = load ptr, ptr %15, align 8, !tbaa !5
  %427 = load ptr, ptr %18, align 8, !tbaa !5
  %428 = load i64, ptr %29, align 8, !tbaa !9
  %429 = getelementptr inbounds %struct.doublecomplex, ptr %427, i64 %428
  %430 = load ptr, ptr %19, align 8, !tbaa !5
  %431 = load ptr, ptr %20, align 8, !tbaa !5
  %432 = getelementptr inbounds i64, ptr %431, i64 1
  %433 = load ptr, ptr %23, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.doublecomplex, ptr %433, i64 1
  %435 = load ptr, ptr %15, align 8, !tbaa !5
  %436 = load ptr, ptr %22, align 8, !tbaa !5
  %437 = call i32 @zgetrs_(ptr noundef @.str.4, ptr noundef %426, ptr noundef @c__1, ptr noundef %429, ptr noundef %430, ptr noundef %432, ptr noundef %434, ptr noundef %435, ptr noundef %436)
  br label %451

438:                                              ; preds = %422
  %439 = load ptr, ptr %15, align 8, !tbaa !5
  %440 = load ptr, ptr %18, align 8, !tbaa !5
  %441 = load i64, ptr %29, align 8, !tbaa !9
  %442 = getelementptr inbounds %struct.doublecomplex, ptr %440, i64 %441
  %443 = load ptr, ptr %19, align 8, !tbaa !5
  %444 = load ptr, ptr %20, align 8, !tbaa !5
  %445 = getelementptr inbounds i64, ptr %444, i64 1
  %446 = load ptr, ptr %23, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.doublecomplex, ptr %446, i64 1
  %448 = load ptr, ptr %15, align 8, !tbaa !5
  %449 = load ptr, ptr %22, align 8, !tbaa !5
  %450 = call i32 @zgetrs_(ptr noundef @.str.5, ptr noundef %439, ptr noundef @c__1, ptr noundef %442, ptr noundef %443, ptr noundef %445, ptr noundef %447, ptr noundef %448, ptr noundef %449)
  br label %451

451:                                              ; preds = %438, %425
  %452 = load ptr, ptr %15, align 8, !tbaa !5
  %453 = load i64, ptr %452, align 8, !tbaa !9
  store i64 %453, ptr %30, align 8, !tbaa !9
  store i64 1, ptr %39, align 8, !tbaa !9
  br label %454

454:                                              ; preds = %478, %451
  %455 = load i64, ptr %39, align 8, !tbaa !9
  %456 = load i64, ptr %30, align 8, !tbaa !9
  %457 = icmp sle i64 %455, %456
  br i1 %457, label %458, label %481

458:                                              ; preds = %454
  %459 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %459, ptr %31, align 8, !tbaa !9
  %460 = load ptr, ptr %23, align 8, !tbaa !5
  %461 = load i64, ptr %39, align 8, !tbaa !9
  %462 = getelementptr inbounds %struct.doublecomplex, ptr %460, i64 %461
  %463 = load ptr, ptr %21, align 8, !tbaa !5
  %464 = load i64, ptr %39, align 8, !tbaa !9
  %465 = getelementptr inbounds %struct.doublecomplex, ptr %463, i64 %464
  call void @z_div(ptr noundef %37, ptr noundef %462, ptr noundef %465)
  %466 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  %467 = load double, ptr %466, align 8, !tbaa !13
  %468 = load ptr, ptr %23, align 8, !tbaa !5
  %469 = load i64, ptr %31, align 8, !tbaa !9
  %470 = getelementptr inbounds %struct.doublecomplex, ptr %468, i64 %469
  %471 = getelementptr inbounds %struct.doublecomplex, ptr %470, i32 0, i32 0
  store double %467, ptr %471, align 8, !tbaa !13
  %472 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 1
  %473 = load double, ptr %472, align 8, !tbaa !15
  %474 = load ptr, ptr %23, align 8, !tbaa !5
  %475 = load i64, ptr %31, align 8, !tbaa !9
  %476 = getelementptr inbounds %struct.doublecomplex, ptr %474, i64 %475
  %477 = getelementptr inbounds %struct.doublecomplex, ptr %476, i32 0, i32 1
  store double %473, ptr %477, align 8, !tbaa !15
  br label %478

478:                                              ; preds = %458
  %479 = load i64, ptr %39, align 8, !tbaa !9
  %480 = add nsw i64 %479, 1
  store i64 %480, ptr %39, align 8, !tbaa !9
  br label %454, !llvm.loop !22

481:                                              ; preds = %454
  br label %590

482:                                              ; preds = %371
  %483 = load ptr, ptr %15, align 8, !tbaa !5
  %484 = load i64, ptr %483, align 8, !tbaa !9
  store i64 %484, ptr %30, align 8, !tbaa !9
  store i64 1, ptr %39, align 8, !tbaa !9
  br label %485

485:                                              ; preds = %509, %482
  %486 = load i64, ptr %39, align 8, !tbaa !9
  %487 = load i64, ptr %30, align 8, !tbaa !9
  %488 = icmp sle i64 %486, %487
  br i1 %488, label %489, label %512

489:                                              ; preds = %485
  %490 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %490, ptr %31, align 8, !tbaa !9
  %491 = load ptr, ptr %23, align 8, !tbaa !5
  %492 = load i64, ptr %39, align 8, !tbaa !9
  %493 = getelementptr inbounds %struct.doublecomplex, ptr %491, i64 %492
  %494 = load ptr, ptr %21, align 8, !tbaa !5
  %495 = load i64, ptr %39, align 8, !tbaa !9
  %496 = getelementptr inbounds %struct.doublecomplex, ptr %494, i64 %495
  call void @z_div(ptr noundef %37, ptr noundef %493, ptr noundef %496)
  %497 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  %498 = load double, ptr %497, align 8, !tbaa !13
  %499 = load ptr, ptr %23, align 8, !tbaa !5
  %500 = load i64, ptr %31, align 8, !tbaa !9
  %501 = getelementptr inbounds %struct.doublecomplex, ptr %499, i64 %500
  %502 = getelementptr inbounds %struct.doublecomplex, ptr %501, i32 0, i32 0
  store double %498, ptr %502, align 8, !tbaa !13
  %503 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 1
  %504 = load double, ptr %503, align 8, !tbaa !15
  %505 = load ptr, ptr %23, align 8, !tbaa !5
  %506 = load i64, ptr %31, align 8, !tbaa !9
  %507 = getelementptr inbounds %struct.doublecomplex, ptr %505, i64 %506
  %508 = getelementptr inbounds %struct.doublecomplex, ptr %507, i32 0, i32 1
  store double %504, ptr %508, align 8, !tbaa !15
  br label %509

509:                                              ; preds = %489
  %510 = load i64, ptr %39, align 8, !tbaa !9
  %511 = add nsw i64 %510, 1
  store i64 %511, ptr %39, align 8, !tbaa !9
  br label %485, !llvm.loop !23

512:                                              ; preds = %485
  %513 = load i64, ptr %46, align 8, !tbaa !9
  %514 = icmp ne i64 %513, 0
  br i1 %514, label %515, label %528

515:                                              ; preds = %512
  %516 = load ptr, ptr %15, align 8, !tbaa !5
  %517 = load ptr, ptr %18, align 8, !tbaa !5
  %518 = load i64, ptr %29, align 8, !tbaa !9
  %519 = getelementptr inbounds %struct.doublecomplex, ptr %517, i64 %518
  %520 = load ptr, ptr %19, align 8, !tbaa !5
  %521 = load ptr, ptr %20, align 8, !tbaa !5
  %522 = getelementptr inbounds i64, ptr %521, i64 1
  %523 = load ptr, ptr %23, align 8, !tbaa !5
  %524 = getelementptr inbounds %struct.doublecomplex, ptr %523, i64 1
  %525 = load ptr, ptr %15, align 8, !tbaa !5
  %526 = load ptr, ptr %22, align 8, !tbaa !5
  %527 = call i32 @zgetrs_(ptr noundef @.str.5, ptr noundef %516, ptr noundef @c__1, ptr noundef %519, ptr noundef %520, ptr noundef %522, ptr noundef %524, ptr noundef %525, ptr noundef %526)
  br label %541

528:                                              ; preds = %512
  %529 = load ptr, ptr %15, align 8, !tbaa !5
  %530 = load ptr, ptr %18, align 8, !tbaa !5
  %531 = load i64, ptr %29, align 8, !tbaa !9
  %532 = getelementptr inbounds %struct.doublecomplex, ptr %530, i64 %531
  %533 = load ptr, ptr %19, align 8, !tbaa !5
  %534 = load ptr, ptr %20, align 8, !tbaa !5
  %535 = getelementptr inbounds i64, ptr %534, i64 1
  %536 = load ptr, ptr %23, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.doublecomplex, ptr %536, i64 1
  %538 = load ptr, ptr %15, align 8, !tbaa !5
  %539 = load ptr, ptr %22, align 8, !tbaa !5
  %540 = call i32 @zgetrs_(ptr noundef @.str.4, ptr noundef %529, ptr noundef @c__1, ptr noundef %532, ptr noundef %533, ptr noundef %535, ptr noundef %537, ptr noundef %538, ptr noundef %539)
  br label %541

541:                                              ; preds = %528, %515
  %542 = load ptr, ptr %15, align 8, !tbaa !5
  %543 = load i64, ptr %542, align 8, !tbaa !9
  store i64 %543, ptr %30, align 8, !tbaa !9
  store i64 1, ptr %39, align 8, !tbaa !9
  br label %544

544:                                              ; preds = %586, %541
  %545 = load i64, ptr %39, align 8, !tbaa !9
  %546 = load i64, ptr %30, align 8, !tbaa !9
  %547 = icmp sle i64 %545, %546
  br i1 %547, label %548, label %589

548:                                              ; preds = %544
  %549 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %549, ptr %31, align 8, !tbaa !9
  %550 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %550, ptr %32, align 8, !tbaa !9
  %551 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %551, ptr %33, align 8, !tbaa !9
  %552 = load ptr, ptr %24, align 8, !tbaa !5
  %553 = load i64, ptr %33, align 8, !tbaa !9
  %554 = getelementptr inbounds double, ptr %552, i64 %553
  %555 = load double, ptr %554, align 8, !tbaa !11
  %556 = load ptr, ptr %23, align 8, !tbaa !5
  %557 = load i64, ptr %32, align 8, !tbaa !9
  %558 = getelementptr inbounds %struct.doublecomplex, ptr %556, i64 %557
  %559 = getelementptr inbounds %struct.doublecomplex, ptr %558, i32 0, i32 0
  %560 = load double, ptr %559, align 8, !tbaa !13
  %561 = fmul double %555, %560
  %562 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  store double %561, ptr %562, align 8, !tbaa !13
  %563 = load ptr, ptr %24, align 8, !tbaa !5
  %564 = load i64, ptr %33, align 8, !tbaa !9
  %565 = getelementptr inbounds double, ptr %563, i64 %564
  %566 = load double, ptr %565, align 8, !tbaa !11
  %567 = load ptr, ptr %23, align 8, !tbaa !5
  %568 = load i64, ptr %32, align 8, !tbaa !9
  %569 = getelementptr inbounds %struct.doublecomplex, ptr %567, i64 %568
  %570 = getelementptr inbounds %struct.doublecomplex, ptr %569, i32 0, i32 1
  %571 = load double, ptr %570, align 8, !tbaa !15
  %572 = fmul double %566, %571
  %573 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 1
  store double %572, ptr %573, align 8, !tbaa !15
  %574 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  %575 = load double, ptr %574, align 8, !tbaa !13
  %576 = load ptr, ptr %23, align 8, !tbaa !5
  %577 = load i64, ptr %31, align 8, !tbaa !9
  %578 = getelementptr inbounds %struct.doublecomplex, ptr %576, i64 %577
  %579 = getelementptr inbounds %struct.doublecomplex, ptr %578, i32 0, i32 0
  store double %575, ptr %579, align 8, !tbaa !13
  %580 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 1
  %581 = load double, ptr %580, align 8, !tbaa !15
  %582 = load ptr, ptr %23, align 8, !tbaa !5
  %583 = load i64, ptr %31, align 8, !tbaa !9
  %584 = getelementptr inbounds %struct.doublecomplex, ptr %582, i64 %583
  %585 = getelementptr inbounds %struct.doublecomplex, ptr %584, i32 0, i32 1
  store double %581, ptr %585, align 8, !tbaa !15
  br label %586

586:                                              ; preds = %548
  %587 = load i64, ptr %39, align 8, !tbaa !9
  %588 = add nsw i64 %587, 1
  store i64 %588, ptr %39, align 8, !tbaa !9
  br label %544, !llvm.loop !24

589:                                              ; preds = %544
  br label %590

590:                                              ; preds = %589, %481
  br label %358

591:                                              ; preds = %358
  %592 = load double, ptr %45, align 8, !tbaa !11
  %593 = fcmp une double %592, 0.000000e+00
  br i1 %593, label %594, label %597

594:                                              ; preds = %591
  %595 = load double, ptr %45, align 8, !tbaa !11
  %596 = fdiv double 1.000000e+00, %595
  store double %596, ptr %34, align 8, !tbaa !11
  br label %597

597:                                              ; preds = %594, %591
  %598 = load double, ptr %34, align 8, !tbaa !11
  store double %598, ptr %13, align 8
  store i32 1, ptr %47, align 4
  br label %599

599:                                              ; preds = %597, %354, %349, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  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 8, 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 8, ptr %26) #4
  %600 = load double, ptr %13, align 8
  ret double %600
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) #2

declare i32 @xerbla_(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 double @d_imag(ptr noundef) #2

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

declare i32 @zgetrs_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !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
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local double @zla_gercond_x__(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr nocapture noundef %10, i64 noundef %11) local_unnamed_addr #0 {
  %13 = alloca i64, align 8
  %14 = alloca %struct.doublecomplex, align 16
  %15 = alloca i64, align 8
  %16 = alloca [3 x i64], align 16
  %17 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  %18 = load i64, ptr %3, align 8, !tbaa !5
  %19 = xor i64 %18, -1
  %20 = getelementptr inbounds %struct.doublecomplex, ptr %2, i64 %19
  %21 = getelementptr inbounds i8, ptr %7, i64 -16
  %22 = getelementptr inbounds i8, ptr %9, i64 -16
  %23 = getelementptr inbounds i8, ptr %10, i64 -8
  store i64 0, ptr %8, align 8, !tbaa !5
  %24 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %24, 0
  br i1 %.not, label %25, label %29

25:                                               ; preds = %12
  %26 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not223 = icmp eq i64 %26, 0
  br i1 %.not223, label %27, label %29

27:                                               ; preds = %25
  %28 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not224 = icmp eq i64 %28, 0
  br i1 %.not224, label %.thread.sink.split, label %29

29:                                               ; preds = %27, %25, %12
  %30 = load i64, ptr %1, align 8, !tbaa !5
  %31 = icmp slt i64 %30, 0
  br i1 %31, label %.thread.sink.split, label %32

32:                                               ; preds = %29
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not225 = icmp eq i64 %.pr, 0
  br i1 %.not225, label %36, label %.thread

.thread.sink.split:                               ; preds = %29, %27
  %.sink = phi i64 [ -1, %27 ], [ -2, %29 ]
  store i64 %.sink, ptr %8, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %32
  %33 = phi i64 [ %.pr, %32 ], [ %.sink, %.thread.sink.split ]
  %34 = sub nsw i64 0, %33
  store i64 %34, ptr %13, align 8, !tbaa !5
  %35 = call i32 @xerbla_(ptr noundef nonnull @.str.3, ptr noundef nonnull %13) #4
  br label %201

36:                                               ; preds = %32
  %.not226255 = icmp eq i64 %30, 0
  br i1 %.not, label %69, label %37

37:                                               ; preds = %36
  br i1 %.not226255, label %.loopexit237, label %.lr.ph246.split

.lr.ph246.split:                                  ; preds = %37, %._crit_edge
  %.0211244 = phi double [ %67, %._crit_edge ], [ 0.000000e+00, %37 ]
  %.0216243 = phi i64 [ %68, %._crit_edge ], [ 1, %37 ]
  %38 = load i64, ptr %1, align 8, !tbaa !5
  %.not234239 = icmp slt i64 %38, 1
  br i1 %.not234239, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph246.split
  %39 = getelementptr %struct.doublecomplex, ptr %20, i64 %.0216243
  br label %40

40:                                               ; preds = %.lr.ph, %40
  %.0212241 = phi double [ 0.000000e+00, %.lr.ph ], [ %63, %40 ]
  %.0214240 = phi i64 [ 1, %.lr.ph ], [ %64, %40 ]
  %41 = mul nsw i64 %.0214240, %18
  %42 = getelementptr %struct.doublecomplex, ptr %39, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.doublecomplex, ptr %21, i64 %.0214240
  %45 = getelementptr inbounds i8, ptr %42, i64 8
  %46 = load double, ptr %45, align 8, !tbaa !12
  %47 = fneg double %46
  %48 = load <2 x double>, ptr %44, align 8, !tbaa !13
  %49 = insertelement <2 x double> poison, double %46, i64 0
  %50 = insertelement <2 x double> %49, double %47, i64 1
  %51 = fmul <2 x double> %48, %50
  %52 = shufflevector <2 x double> %51, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %53 = insertelement <2 x double> poison, double %43, i64 0
  %54 = shufflevector <2 x double> %53, <2 x double> poison, <2 x i32> zeroinitializer
  %55 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %54, <2 x double> %48, <2 x double> %52)
  store <2 x double> %55, ptr %14, align 16, !tbaa !13
  %56 = call double @d_imag(ptr noundef nonnull %14) #4
  %57 = insertelement <2 x double> %55, double %56, i64 1
  %58 = fcmp oge <2 x double> %57, zeroinitializer
  %59 = fneg <2 x double> %57
  %60 = select <2 x i1> %58, <2 x double> %57, <2 x double> %59
  %shift = shufflevector <2 x double> %60, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %61 = fadd <2 x double> %60, %shift
  %62 = extractelement <2 x double> %61, i64 0
  %63 = fadd double %.0212241, %62
  %64 = add nuw i64 %.0214240, 1
  %exitcond.not = icmp eq i64 %.0214240, %38
  br i1 %exitcond.not, label %._crit_edge, label %40, !llvm.loop !14

._crit_edge:                                      ; preds = %40, %.lr.ph246.split
  %.0212.lcssa = phi double [ 0.000000e+00, %.lr.ph246.split ], [ %63, %40 ]
  %65 = getelementptr inbounds double, ptr %23, i64 %.0216243
  store double %.0212.lcssa, ptr %65, align 8, !tbaa !13
  %66 = fcmp oge double %.0211244, %.0212.lcssa
  %67 = select i1 %66, double %.0211244, double %.0212.lcssa
  %68 = add nuw nsw i64 %.0216243, 1
  %.not228.not = icmp slt i64 %.0216243, %30
  br i1 %.not228.not, label %.lr.ph246.split, label %.loopexit237, !llvm.loop !16

69:                                               ; preds = %36
  br i1 %.not226255, label %.loopexit237, label %.lr.ph259.split

.lr.ph259.split:                                  ; preds = %69, %._crit_edge253
  %.1257 = phi double [ %97, %._crit_edge253 ], [ 0.000000e+00, %69 ]
  %.1217256 = phi i64 [ %98, %._crit_edge253 ], [ 1, %69 ]
  %70 = load i64, ptr %1, align 8, !tbaa !5
  %.not227248 = icmp slt i64 %70, 1
  br i1 %.not227248, label %._crit_edge253, label %.lr.ph252

.lr.ph252:                                        ; preds = %.lr.ph259.split
  %71 = mul nsw i64 %.1217256, %18
  %invariant.gep = getelementptr %struct.doublecomplex, ptr %20, i64 %71
  br label %72

72:                                               ; preds = %.lr.ph252, %72
  %.1213250 = phi double [ 0.000000e+00, %.lr.ph252 ], [ %93, %72 ]
  %.1215249 = phi i64 [ 1, %.lr.ph252 ], [ %94, %72 ]
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %.1215249
  %73 = load double, ptr %gep, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.doublecomplex, ptr %21, i64 %.1215249
  %75 = getelementptr inbounds i8, ptr %gep, i64 8
  %76 = load double, ptr %75, align 8, !tbaa !12
  %77 = fneg double %76
  %78 = load <2 x double>, ptr %74, align 8, !tbaa !13
  %79 = insertelement <2 x double> poison, double %76, i64 0
  %80 = insertelement <2 x double> %79, double %77, i64 1
  %81 = fmul <2 x double> %78, %80
  %82 = shufflevector <2 x double> %81, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %83 = insertelement <2 x double> poison, double %73, i64 0
  %84 = shufflevector <2 x double> %83, <2 x double> poison, <2 x i32> zeroinitializer
  %85 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %84, <2 x double> %78, <2 x double> %82)
  store <2 x double> %85, ptr %14, align 16, !tbaa !13
  %86 = call double @d_imag(ptr noundef nonnull %14) #4
  %87 = insertelement <2 x double> %85, double %86, i64 1
  %88 = fcmp oge <2 x double> %87, zeroinitializer
  %89 = fneg <2 x double> %87
  %90 = select <2 x i1> %88, <2 x double> %87, <2 x double> %89
  %shift340 = shufflevector <2 x double> %90, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %91 = fadd <2 x double> %90, %shift340
  %92 = extractelement <2 x double> %91, i64 0
  %93 = fadd double %.1213250, %92
  %94 = add nuw i64 %.1215249, 1
  %exitcond293.not = icmp eq i64 %.1215249, %70
  br i1 %exitcond293.not, label %._crit_edge253, label %72, !llvm.loop !18

._crit_edge253:                                   ; preds = %72, %.lr.ph259.split
  %.1213.lcssa = phi double [ 0.000000e+00, %.lr.ph259.split ], [ %93, %72 ]
  %95 = getelementptr inbounds double, ptr %23, i64 %.1217256
  store double %.1213.lcssa, ptr %95, align 8, !tbaa !13
  %96 = fcmp oge double %.1257, %.1213.lcssa
  %97 = select i1 %96, double %.1257, double %.1213.lcssa
  %98 = add nuw nsw i64 %.1217256, 1
  %.not226.not = icmp slt i64 %.1217256, %30
  br i1 %.not226.not, label %.lr.ph259.split, label %.loopexit237, !llvm.loop !19

.loopexit237:                                     ; preds = %._crit_edge, %._crit_edge253, %37, %69
  %.2 = phi double [ 0.000000e+00, %69 ], [ 0.000000e+00, %37 ], [ %97, %._crit_edge253 ], [ %67, %._crit_edge ]
  %99 = load i64, ptr %1, align 8, !tbaa !5
  %100 = icmp eq i64 %99, 0
  br i1 %100, label %201, label %101

101:                                              ; preds = %.loopexit237
  %102 = fcmp oeq double %.2, 0.000000e+00
  br i1 %102, label %201, label %103

103:                                              ; preds = %101
  store double 0.000000e+00, ptr %17, align 8, !tbaa !13
  store i64 0, ptr %15, align 8, !tbaa !5
  %.str.4..str.5 = select i1 %.not, ptr @.str.4, ptr @.str.5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.backedge, %103
  %104 = phi i64 [ %99, %103 ], [ %.be, %.loopexit.backedge ]
  %105 = getelementptr %struct.doublecomplex, ptr %9, i64 %104
  %106 = call i32 @zlacn2_(ptr noundef nonnull %1, ptr noundef %105, ptr noundef %9, ptr noundef nonnull %17, ptr noundef nonnull %15, ptr noundef nonnull %16) #4
  %107 = load i64, ptr %15, align 8, !tbaa !5
  switch i64 %107, label %155 [
    i64 0, label %197
    i64 2, label %108
  ]

108:                                              ; preds = %.loopexit
  %109 = load i64, ptr %1, align 8, !tbaa !5
  %.not232262 = icmp slt i64 %109, 1
  br i1 %.not232262, label %144, label %.lr.ph265.preheader

.lr.ph265.preheader:                              ; preds = %108
  %min.iters.check324 = icmp eq i64 %109, 1
  br i1 %min.iters.check324, label %.lr.ph265.preheader342, label %vector.memcheck316

vector.memcheck316:                               ; preds = %.lr.ph265.preheader
  %110 = shl i64 %109, 4
  %scevgep317 = getelementptr i8, ptr %9, i64 %110
  %111 = shl i64 %109, 3
  %scevgep318 = getelementptr i8, ptr %10, i64 %111
  %bound0319 = icmp ugt ptr %scevgep318, %9
  %bound1320 = icmp ugt ptr %scevgep317, %10
  %found.conflict321 = and i1 %bound0319, %bound1320
  br i1 %found.conflict321, label %.lr.ph265.preheader342, label %vector.ph325

vector.ph325:                                     ; preds = %vector.memcheck316
  %n.vec327 = and i64 %109, 9223372036854775806
  %ind.end328 = or i64 %109, 1
  br label %vector.body330

vector.body330:                                   ; preds = %vector.body330, %vector.ph325
  %index331 = phi i64 [ 0, %vector.ph325 ], [ %index.next338, %vector.body330 ]
  %112 = getelementptr double, ptr %10, i64 %index331
  %wide.load333 = load <2 x double>, ptr %112, align 8, !tbaa !13, !alias.scope !20
  %113 = getelementptr %struct.doublecomplex, ptr %9, i64 %index331
  %wide.vec334 = load <4 x double>, ptr %113, align 8, !tbaa !13
  %strided.vec335 = shufflevector <4 x double> %wide.vec334, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec336 = shufflevector <4 x double> %wide.vec334, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %114 = fmul <2 x double> %wide.load333, %strided.vec335
  %115 = fmul <2 x double> %wide.load333, %strided.vec336
  %interleaved.vec337 = shufflevector <2 x double> %114, <2 x double> %115, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec337, ptr %113, align 8, !tbaa !13
  %index.next338 = add nuw i64 %index331, 2
  %116 = icmp eq i64 %index.next338, %n.vec327
  br i1 %116, label %middle.block322, label %vector.body330, !llvm.loop !23

middle.block322:                                  ; preds = %vector.body330
  %cmp.n339 = icmp eq i64 %109, %n.vec327
  %117 = shufflevector <2 x double> %114, <2 x double> %115, <2 x i32> <i32 1, i32 3>
  br i1 %cmp.n339, label %._crit_edge266, label %.lr.ph265.preheader342

.lr.ph265.preheader342:                           ; preds = %middle.block322, %vector.memcheck316, %.lr.ph265.preheader
  %.2218263.ph = phi i64 [ 1, %vector.memcheck316 ], [ 1, %.lr.ph265.preheader ], [ %ind.end328, %middle.block322 ]
  %xtraiter = and i64 %109, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph265.prol.loopexit, label %.lr.ph265.prol

.lr.ph265.prol:                                   ; preds = %.lr.ph265.preheader342
  %118 = getelementptr inbounds double, ptr %23, i64 %.2218263.ph
  %119 = load double, ptr %118, align 8, !tbaa !13
  %120 = getelementptr inbounds %struct.doublecomplex, ptr %22, i64 %.2218263.ph
  %121 = load <2 x double>, ptr %120, align 8, !tbaa !13
  %122 = insertelement <2 x double> poison, double %119, i64 0
  %123 = shufflevector <2 x double> %122, <2 x double> poison, <2 x i32> zeroinitializer
  %124 = fmul <2 x double> %123, %121
  store <2 x double> %124, ptr %120, align 8, !tbaa !13
  %125 = add nuw i64 %.2218263.ph, 1
  br label %.lr.ph265.prol.loopexit

.lr.ph265.prol.loopexit:                          ; preds = %.lr.ph265.prol, %.lr.ph265.preheader342
  %.lcssa344.unr = phi <2 x double> [ poison, %.lr.ph265.preheader342 ], [ %124, %.lr.ph265.prol ]
  %.2218263.unr = phi i64 [ %.2218263.ph, %.lr.ph265.preheader342 ], [ %125, %.lr.ph265.prol ]
  %126 = icmp eq i64 %109, %.2218263.ph
  br i1 %126, label %._crit_edge266, label %.lr.ph265

.lr.ph265:                                        ; preds = %.lr.ph265.prol.loopexit, %.lr.ph265
  %.2218263 = phi i64 [ %142, %.lr.ph265 ], [ %.2218263.unr, %.lr.ph265.prol.loopexit ]
  %127 = getelementptr inbounds double, ptr %23, i64 %.2218263
  %128 = load double, ptr %127, align 8, !tbaa !13
  %129 = getelementptr inbounds %struct.doublecomplex, ptr %22, i64 %.2218263
  %130 = load <2 x double>, ptr %129, align 8, !tbaa !13
  %131 = insertelement <2 x double> poison, double %128, i64 0
  %132 = shufflevector <2 x double> %131, <2 x double> poison, <2 x i32> zeroinitializer
  %133 = fmul <2 x double> %132, %130
  store <2 x double> %133, ptr %129, align 8, !tbaa !13
  %134 = add nuw i64 %.2218263, 1
  %135 = getelementptr double, ptr %10, i64 %.2218263
  %136 = load double, ptr %135, align 8, !tbaa !13
  %137 = getelementptr %struct.doublecomplex, ptr %9, i64 %.2218263
  %138 = load <2 x double>, ptr %137, align 8, !tbaa !13
  %139 = insertelement <2 x double> poison, double %136, i64 0
  %140 = shufflevector <2 x double> %139, <2 x double> poison, <2 x i32> zeroinitializer
  %141 = fmul <2 x double> %140, %138
  store <2 x double> %141, ptr %137, align 8, !tbaa !13
  %142 = add nuw i64 %.2218263, 2
  %exitcond295.not.1 = icmp eq i64 %134, %109
  br i1 %exitcond295.not.1, label %._crit_edge266, label %.lr.ph265, !llvm.loop !26

._crit_edge266:                                   ; preds = %.lr.ph265.prol.loopexit, %.lr.ph265, %middle.block322
  %143 = phi <2 x double> [ %117, %middle.block322 ], [ %.lcssa344.unr, %.lr.ph265.prol.loopexit ], [ %141, %.lr.ph265 ]
  store <2 x double> %143, ptr %14, align 16, !tbaa !13
  br label %144

144:                                              ; preds = %._crit_edge266, %108
  br i1 %.not, label %147, label %145

145:                                              ; preds = %144
  %146 = call i32 @zgetrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull %1, ptr noundef nonnull @c__1, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %1, ptr noundef nonnull %8) #4
  br label %149

147:                                              ; preds = %144
  %148 = call i32 @zgetrs_(ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef nonnull @c__1, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %1, ptr noundef nonnull %8) #4
  br label %149

149:                                              ; preds = %147, %145
  %150 = load i64, ptr %1, align 8, !tbaa !5
  %.not233268 = icmp slt i64 %150, 1
  br i1 %.not233268, label %.loopexit.backedge, label %.lr.ph271

.lr.ph271:                                        ; preds = %149, %.lr.ph271
  %.3269 = phi i64 [ %154, %.lr.ph271 ], [ 1, %149 ]
  %151 = getelementptr inbounds %struct.doublecomplex, ptr %22, i64 %.3269
  %152 = getelementptr inbounds %struct.doublecomplex, ptr %21, i64 %.3269
  call void @z_div(ptr noundef nonnull %14, ptr noundef nonnull %151, ptr noundef nonnull %152) #4
  %153 = load <2 x double>, ptr %14, align 16, !tbaa !13
  store <2 x double> %153, ptr %151, align 8, !tbaa !13
  %154 = add nuw nsw i64 %.3269, 1
  %.not233.not = icmp slt i64 %.3269, %150
  br i1 %.not233.not, label %.lr.ph271, label %.loopexit.loopexit, !llvm.loop !27

155:                                              ; preds = %.loopexit
  %156 = load i64, ptr %1, align 8, !tbaa !5
  %.not230272 = icmp slt i64 %156, 1
  br i1 %.not230272, label %._crit_edge276, label %.lr.ph275

.lr.ph275:                                        ; preds = %155, %.lr.ph275
  %.4273 = phi i64 [ %160, %.lr.ph275 ], [ 1, %155 ]
  %157 = getelementptr inbounds %struct.doublecomplex, ptr %22, i64 %.4273
  %158 = getelementptr inbounds %struct.doublecomplex, ptr %21, i64 %.4273
  call void @z_div(ptr noundef nonnull %14, ptr noundef nonnull %157, ptr noundef nonnull %158) #4
  %159 = load <2 x double>, ptr %14, align 16, !tbaa !13
  store <2 x double> %159, ptr %157, align 8, !tbaa !13
  %160 = add nuw nsw i64 %.4273, 1
  %.not230.not = icmp slt i64 %.4273, %156
  br i1 %.not230.not, label %.lr.ph275, label %._crit_edge276, !llvm.loop !28

._crit_edge276:                                   ; preds = %.lr.ph275, %155
  %161 = call i32 @zgetrs_(ptr noundef nonnull %.str.4..str.5, ptr noundef nonnull %1, ptr noundef nonnull @c__1, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %1, ptr noundef nonnull %8) #4
  %162 = load i64, ptr %1, align 8, !tbaa !5
  %.not231277 = icmp slt i64 %162, 1
  br i1 %.not231277, label %.loopexit.backedge, label %.lr.ph280.preheader

.lr.ph280.preheader:                              ; preds = %._crit_edge276
  %min.iters.check = icmp eq i64 %162, 1
  br i1 %min.iters.check, label %.lr.ph280.preheader341, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph280.preheader
  %163 = shl i64 %162, 4
  %scevgep = getelementptr i8, ptr %9, i64 %163
  %164 = shl i64 %162, 3
  %scevgep314 = getelementptr i8, ptr %10, i64 %164
  %bound0 = icmp ugt ptr %scevgep314, %9
  %bound1 = icmp ugt ptr %scevgep, %10
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph280.preheader341, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %162, 9223372036854775806
  %ind.end = or i64 %162, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %165 = getelementptr double, ptr %10, i64 %index
  %wide.load = load <2 x double>, ptr %165, align 8, !tbaa !13, !alias.scope !29
  %166 = getelementptr %struct.doublecomplex, ptr %9, i64 %index
  %wide.vec = load <4 x double>, ptr %166, align 8, !tbaa !13
  %strided.vec = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec315 = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %167 = fmul <2 x double> %wide.load, %strided.vec
  %168 = fmul <2 x double> %wide.load, %strided.vec315
  %interleaved.vec = shufflevector <2 x double> %167, <2 x double> %168, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec, ptr %166, align 8, !tbaa !13
  %index.next = add nuw i64 %index, 2
  %169 = icmp eq i64 %index.next, %n.vec
  br i1 %169, label %middle.block, label %vector.body, !llvm.loop !32

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %162, %n.vec
  %170 = shufflevector <2 x double> %167, <2 x double> %168, <2 x i32> <i32 1, i32 3>
  br i1 %cmp.n, label %..loopexit_crit_edge, label %.lr.ph280.preheader341

.lr.ph280.preheader341:                           ; preds = %middle.block, %vector.memcheck, %.lr.ph280.preheader
  %.5278.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %.lr.ph280.preheader ], [ %ind.end, %middle.block ]
  %xtraiter353 = and i64 %162, 1
  %lcmp.mod354.not = icmp eq i64 %xtraiter353, 0
  br i1 %lcmp.mod354.not, label %.lr.ph280.prol.loopexit, label %.lr.ph280.prol

.lr.ph280.prol:                                   ; preds = %.lr.ph280.preheader341
  %171 = getelementptr inbounds double, ptr %23, i64 %.5278.ph
  %172 = load double, ptr %171, align 8, !tbaa !13
  %173 = getelementptr inbounds %struct.doublecomplex, ptr %22, i64 %.5278.ph
  %174 = load <2 x double>, ptr %173, align 8, !tbaa !13
  %175 = insertelement <2 x double> poison, double %172, i64 0
  %176 = shufflevector <2 x double> %175, <2 x double> poison, <2 x i32> zeroinitializer
  %177 = fmul <2 x double> %176, %174
  store <2 x double> %177, ptr %173, align 8, !tbaa !13
  %178 = add nuw i64 %.5278.ph, 1
  br label %.lr.ph280.prol.loopexit

.lr.ph280.prol.loopexit:                          ; preds = %.lr.ph280.prol, %.lr.ph280.preheader341
  %.lcssa347.unr = phi <2 x double> [ poison, %.lr.ph280.preheader341 ], [ %177, %.lr.ph280.prol ]
  %.5278.unr = phi i64 [ %.5278.ph, %.lr.ph280.preheader341 ], [ %178, %.lr.ph280.prol ]
  %179 = icmp eq i64 %162, %.5278.ph
  br i1 %179, label %..loopexit_crit_edge, label %.lr.ph280

.lr.ph280:                                        ; preds = %.lr.ph280.prol.loopexit, %.lr.ph280
  %.5278 = phi i64 [ %195, %.lr.ph280 ], [ %.5278.unr, %.lr.ph280.prol.loopexit ]
  %180 = getelementptr inbounds double, ptr %23, i64 %.5278
  %181 = load double, ptr %180, align 8, !tbaa !13
  %182 = getelementptr inbounds %struct.doublecomplex, ptr %22, i64 %.5278
  %183 = load <2 x double>, ptr %182, align 8, !tbaa !13
  %184 = insertelement <2 x double> poison, double %181, i64 0
  %185 = shufflevector <2 x double> %184, <2 x double> poison, <2 x i32> zeroinitializer
  %186 = fmul <2 x double> %185, %183
  store <2 x double> %186, ptr %182, align 8, !tbaa !13
  %187 = add nuw i64 %.5278, 1
  %188 = getelementptr double, ptr %10, i64 %.5278
  %189 = load double, ptr %188, align 8, !tbaa !13
  %190 = getelementptr %struct.doublecomplex, ptr %9, i64 %.5278
  %191 = load <2 x double>, ptr %190, align 8, !tbaa !13
  %192 = insertelement <2 x double> poison, double %189, i64 0
  %193 = shufflevector <2 x double> %192, <2 x double> poison, <2 x i32> zeroinitializer
  %194 = fmul <2 x double> %193, %191
  store <2 x double> %194, ptr %190, align 8, !tbaa !13
  %195 = add nuw i64 %.5278, 2
  %exitcond296.not.1 = icmp eq i64 %187, %162
  br i1 %exitcond296.not.1, label %..loopexit_crit_edge, label %.lr.ph280, !llvm.loop !33

..loopexit_crit_edge:                             ; preds = %.lr.ph280.prol.loopexit, %.lr.ph280, %middle.block
  %196 = phi <2 x double> [ %170, %middle.block ], [ %.lcssa347.unr, %.lr.ph280.prol.loopexit ], [ %194, %.lr.ph280 ]
  store <2 x double> %196, ptr %14, align 16, !tbaa !13
  br label %.loopexit.backedge

.loopexit.loopexit:                               ; preds = %.lr.ph271
  %.pre.pre = load i64, ptr %1, align 8, !tbaa !5
  br label %.loopexit.backedge

.loopexit.backedge:                               ; preds = %.loopexit.loopexit, %149, %._crit_edge276, %..loopexit_crit_edge
  %.be = phi i64 [ %.pre.pre, %.loopexit.loopexit ], [ %150, %149 ], [ %162, %._crit_edge276 ], [ %162, %..loopexit_crit_edge ]
  br label %.loopexit

197:                                              ; preds = %.loopexit
  %198 = load double, ptr %17, align 8, !tbaa !13
  %199 = fcmp une double %198, 0.000000e+00
  %200 = fdiv double 1.000000e+00, %198
  %.0219 = select i1 %199, double %200, double 0.000000e+00
  br label %201

201:                                              ; preds = %101, %.loopexit237, %197, %.thread
  %.0 = phi double [ 0.000000e+00, %.thread ], [ %.0219, %197 ], [ 1.000000e+00, %.loopexit237 ], [ 0.000000e+00, %101 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  ret double %.0
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @d_imag(ptr noundef) local_unnamed_addr #2

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

declare i32 @zgetrs_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8}
!11 = !{!"double", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15, !17}
!17 = !{!"llvm.loop.unswitch.partial.disable"}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15, !17}
!20 = !{!21}
!21 = distinct !{!21, !22}
!22 = distinct !{!22, !"LVerDomain"}
!23 = distinct !{!23, !15, !24, !25}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !15, !24}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = !{!30}
!30 = distinct !{!30, !31}
!31 = distinct !{!31, !"LVerDomain"}
!32 = distinct !{!32, !15, !24, !25}
!33 = distinct !{!33, !15, !24}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass