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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @zgtsvx_(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, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21) #0 {
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca i64, align 8
  %47 = alloca i64, align 8
  %48 = alloca i64, align 8
  %49 = alloca i64, align 8
  %50 = alloca i64, align 8
  %51 = alloca [1 x i8], align 1
  %52 = alloca double, align 8
  %53 = alloca i64, align 8
  %54 = alloca i64, align 8
  %55 = alloca i32, align 4
  store ptr %0, ptr %24, align 8, !tbaa !5
  store ptr %1, ptr %25, align 8, !tbaa !5
  store ptr %2, ptr %26, align 8, !tbaa !5
  store ptr %3, ptr %27, align 8, !tbaa !5
  store ptr %4, ptr %28, align 8, !tbaa !5
  store ptr %5, ptr %29, align 8, !tbaa !5
  store ptr %6, ptr %30, align 8, !tbaa !5
  store ptr %7, ptr %31, align 8, !tbaa !5
  store ptr %8, ptr %32, align 8, !tbaa !5
  store ptr %9, ptr %33, align 8, !tbaa !5
  store ptr %10, ptr %34, align 8, !tbaa !5
  store ptr %11, ptr %35, align 8, !tbaa !5
  store ptr %12, ptr %36, align 8, !tbaa !5
  store ptr %13, ptr %37, align 8, !tbaa !5
  store ptr %14, ptr %38, align 8, !tbaa !5
  store ptr %15, ptr %39, align 8, !tbaa !5
  store ptr %16, ptr %40, align 8, !tbaa !5
  store ptr %17, ptr %41, align 8, !tbaa !5
  store ptr %18, ptr %42, align 8, !tbaa !5
  store ptr %19, ptr %43, align 8, !tbaa !5
  store ptr %20, ptr %44, align 8, !tbaa !5
  store ptr %21, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #3
  %56 = load ptr, ptr %28, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.doublecomplex, ptr %56, i32 -1
  store ptr %57, ptr %28, align 8, !tbaa !5
  %58 = load ptr, ptr %29, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.doublecomplex, ptr %58, i32 -1
  store ptr %59, ptr %29, align 8, !tbaa !5
  %60 = load ptr, ptr %30, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.doublecomplex, ptr %60, i32 -1
  store ptr %61, ptr %30, align 8, !tbaa !5
  %62 = load ptr, ptr %31, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.doublecomplex, ptr %62, i32 -1
  store ptr %63, ptr %31, align 8, !tbaa !5
  %64 = load ptr, ptr %32, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %64, i32 -1
  store ptr %65, ptr %32, align 8, !tbaa !5
  %66 = load ptr, ptr %33, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.doublecomplex, ptr %66, i32 -1
  store ptr %67, ptr %33, align 8, !tbaa !5
  %68 = load ptr, ptr %34, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.doublecomplex, ptr %68, i32 -1
  store ptr %69, ptr %34, align 8, !tbaa !5
  %70 = load ptr, ptr %35, align 8, !tbaa !5
  %71 = getelementptr inbounds i64, ptr %70, i32 -1
  store ptr %71, ptr %35, align 8, !tbaa !5
  %72 = load ptr, ptr %37, align 8, !tbaa !5
  %73 = load i64, ptr %72, align 8, !tbaa !9
  store i64 %73, ptr %46, align 8, !tbaa !9
  %74 = load i64, ptr %46, align 8, !tbaa !9
  %75 = add nsw i64 1, %74
  store i64 %75, ptr %47, align 8, !tbaa !9
  %76 = load i64, ptr %47, align 8, !tbaa !9
  %77 = load ptr, ptr %36, align 8, !tbaa !5
  %78 = sub i64 0, %76
  %79 = getelementptr inbounds %struct.doublecomplex, ptr %77, i64 %78
  store ptr %79, ptr %36, align 8, !tbaa !5
  %80 = load ptr, ptr %39, align 8, !tbaa !5
  %81 = load i64, ptr %80, align 8, !tbaa !9
  store i64 %81, ptr %48, align 8, !tbaa !9
  %82 = load i64, ptr %48, align 8, !tbaa !9
  %83 = add nsw i64 1, %82
  store i64 %83, ptr %49, align 8, !tbaa !9
  %84 = load i64, ptr %49, align 8, !tbaa !9
  %85 = load ptr, ptr %38, align 8, !tbaa !5
  %86 = sub i64 0, %84
  %87 = getelementptr inbounds %struct.doublecomplex, ptr %85, i64 %86
  store ptr %87, ptr %38, align 8, !tbaa !5
  %88 = load ptr, ptr %41, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %88, i32 -1
  store ptr %89, ptr %41, align 8, !tbaa !5
  %90 = load ptr, ptr %42, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i32 -1
  store ptr %91, ptr %42, align 8, !tbaa !5
  %92 = load ptr, ptr %43, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.doublecomplex, ptr %92, i32 -1
  store ptr %93, ptr %43, align 8, !tbaa !5
  %94 = load ptr, ptr %44, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i32 -1
  store ptr %95, ptr %44, align 8, !tbaa !5
  %96 = load ptr, ptr %45, align 8, !tbaa !5
  store i64 0, ptr %96, align 8, !tbaa !9
  %97 = load ptr, ptr %24, align 8, !tbaa !5
  %98 = call i64 @lsame_(ptr noundef %97, ptr noundef @.str)
  store i64 %98, ptr %53, align 8, !tbaa !9
  %99 = load ptr, ptr %25, align 8, !tbaa !5
  %100 = call i64 @lsame_(ptr noundef %99, ptr noundef @.str)
  store i64 %100, ptr %54, align 8, !tbaa !9
  %101 = load i64, ptr %53, align 8, !tbaa !9
  %102 = icmp ne i64 %101, 0
  br i1 %102, label %109, label %103

103:                                              ; preds = %22
  %104 = load ptr, ptr %24, align 8, !tbaa !5
  %105 = call i64 @lsame_(ptr noundef %104, ptr noundef @.str.1)
  %106 = icmp ne i64 %105, 0
  br i1 %106, label %109, label %107

107:                                              ; preds = %103
  %108 = load ptr, ptr %45, align 8, !tbaa !5
  store i64 -1, ptr %108, align 8, !tbaa !9
  br label %169

109:                                              ; preds = %103, %22
  %110 = load i64, ptr %54, align 8, !tbaa !9
  %111 = icmp ne i64 %110, 0
  br i1 %111, label %122, label %112

112:                                              ; preds = %109
  %113 = load ptr, ptr %25, align 8, !tbaa !5
  %114 = call i64 @lsame_(ptr noundef %113, ptr noundef @.str.2)
  %115 = icmp ne i64 %114, 0
  br i1 %115, label %122, label %116

116:                                              ; preds = %112
  %117 = load ptr, ptr %25, align 8, !tbaa !5
  %118 = call i64 @lsame_(ptr noundef %117, ptr noundef @.str.3)
  %119 = icmp ne i64 %118, 0
  br i1 %119, label %122, label %120

120:                                              ; preds = %116
  %121 = load ptr, ptr %45, align 8, !tbaa !5
  store i64 -2, ptr %121, align 8, !tbaa !9
  br label %168

122:                                              ; preds = %116, %112, %109
  %123 = load ptr, ptr %26, align 8, !tbaa !5
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = icmp slt i64 %124, 0
  br i1 %125, label %126, label %128

126:                                              ; preds = %122
  %127 = load ptr, ptr %45, align 8, !tbaa !5
  store i64 -3, ptr %127, align 8, !tbaa !9
  br label %167

128:                                              ; preds = %122
  %129 = load ptr, ptr %27, align 8, !tbaa !5
  %130 = load i64, ptr %129, align 8, !tbaa !9
  %131 = icmp slt i64 %130, 0
  br i1 %131, label %132, label %134

132:                                              ; preds = %128
  %133 = load ptr, ptr %45, align 8, !tbaa !5
  store i64 -4, ptr %133, align 8, !tbaa !9
  br label %166

134:                                              ; preds = %128
  %135 = load ptr, ptr %37, align 8, !tbaa !5
  %136 = load i64, ptr %135, align 8, !tbaa !9
  %137 = load ptr, ptr %26, align 8, !tbaa !5
  %138 = load i64, ptr %137, align 8, !tbaa !9
  %139 = icmp sge i64 1, %138
  br i1 %139, label %140, label %141

140:                                              ; preds = %134
  br label %144

141:                                              ; preds = %134
  %142 = load ptr, ptr %26, align 8, !tbaa !5
  %143 = load i64, ptr %142, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %141, %140
  %145 = phi i64 [ 1, %140 ], [ %143, %141 ]
  %146 = icmp slt i64 %136, %145
  br i1 %146, label %147, label %149

147:                                              ; preds = %144
  %148 = load ptr, ptr %45, align 8, !tbaa !5
  store i64 -14, ptr %148, align 8, !tbaa !9
  br label %165

149:                                              ; preds = %144
  %150 = load ptr, ptr %39, align 8, !tbaa !5
  %151 = load i64, ptr %150, align 8, !tbaa !9
  %152 = load ptr, ptr %26, align 8, !tbaa !5
  %153 = load i64, ptr %152, align 8, !tbaa !9
  %154 = icmp sge i64 1, %153
  br i1 %154, label %155, label %156

155:                                              ; preds = %149
  br label %159

156:                                              ; preds = %149
  %157 = load ptr, ptr %26, align 8, !tbaa !5
  %158 = load i64, ptr %157, align 8, !tbaa !9
  br label %159

159:                                              ; preds = %156, %155
  %160 = phi i64 [ 1, %155 ], [ %158, %156 ]
  %161 = icmp slt i64 %151, %160
  br i1 %161, label %162, label %164

162:                                              ; preds = %159
  %163 = load ptr, ptr %45, align 8, !tbaa !5
  store i64 -16, ptr %163, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %162, %159
  br label %165

165:                                              ; preds = %164, %147
  br label %166

166:                                              ; preds = %165, %132
  br label %167

167:                                              ; preds = %166, %126
  br label %168

168:                                              ; preds = %167, %120
  br label %169

169:                                              ; preds = %168, %107
  %170 = load ptr, ptr %45, align 8, !tbaa !5
  %171 = load i64, ptr %170, align 8, !tbaa !9
  %172 = icmp ne i64 %171, 0
  br i1 %172, label %173, label %178

173:                                              ; preds = %169
  %174 = load ptr, ptr %45, align 8, !tbaa !5
  %175 = load i64, ptr %174, align 8, !tbaa !9
  %176 = sub nsw i64 0, %175
  store i64 %176, ptr %50, align 8, !tbaa !9
  %177 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %50)
  store i32 0, ptr %23, align 4
  store i32 1, ptr %55, align 4
  br label %339

178:                                              ; preds = %169
  %179 = load i64, ptr %53, align 8, !tbaa !9
  %180 = icmp ne i64 %179, 0
  br i1 %180, label %181, label %228

181:                                              ; preds = %178
  %182 = load ptr, ptr %26, align 8, !tbaa !5
  %183 = load ptr, ptr %29, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.doublecomplex, ptr %183, i64 1
  %185 = load ptr, ptr %32, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.doublecomplex, ptr %185, i64 1
  %187 = call i32 @f2c_zcopy(ptr noundef %182, ptr noundef %184, ptr noundef @c__1, ptr noundef %186, ptr noundef @c__1)
  %188 = load ptr, ptr %26, align 8, !tbaa !5
  %189 = load i64, ptr %188, align 8, !tbaa !9
  %190 = icmp sgt i64 %189, 1
  br i1 %190, label %191, label %208

191:                                              ; preds = %181
  %192 = load ptr, ptr %26, align 8, !tbaa !5
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = sub nsw i64 %193, 1
  store i64 %194, ptr %50, align 8, !tbaa !9
  %195 = load ptr, ptr %28, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.doublecomplex, ptr %195, i64 1
  %197 = load ptr, ptr %31, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.doublecomplex, ptr %197, i64 1
  %199 = call i32 @f2c_zcopy(ptr noundef %50, ptr noundef %196, ptr noundef @c__1, ptr noundef %198, ptr noundef @c__1)
  %200 = load ptr, ptr %26, align 8, !tbaa !5
  %201 = load i64, ptr %200, align 8, !tbaa !9
  %202 = sub nsw i64 %201, 1
  store i64 %202, ptr %50, align 8, !tbaa !9
  %203 = load ptr, ptr %30, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.doublecomplex, ptr %203, i64 1
  %205 = load ptr, ptr %33, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.doublecomplex, ptr %205, i64 1
  %207 = call i32 @f2c_zcopy(ptr noundef %50, ptr noundef %204, ptr noundef @c__1, ptr noundef %206, ptr noundef @c__1)
  br label %208

208:                                              ; preds = %191, %181
  %209 = load ptr, ptr %26, align 8, !tbaa !5
  %210 = load ptr, ptr %31, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.doublecomplex, ptr %210, i64 1
  %212 = load ptr, ptr %32, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.doublecomplex, ptr %212, i64 1
  %214 = load ptr, ptr %33, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.doublecomplex, ptr %214, i64 1
  %216 = load ptr, ptr %34, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.doublecomplex, ptr %216, i64 1
  %218 = load ptr, ptr %35, align 8, !tbaa !5
  %219 = getelementptr inbounds i64, ptr %218, i64 1
  %220 = load ptr, ptr %45, align 8, !tbaa !5
  %221 = call i32 @zgttrf_(ptr noundef %209, ptr noundef %211, ptr noundef %213, ptr noundef %215, ptr noundef %217, ptr noundef %219, ptr noundef %220)
  %222 = load ptr, ptr %45, align 8, !tbaa !5
  %223 = load i64, ptr %222, align 8, !tbaa !9
  %224 = icmp sgt i64 %223, 0
  br i1 %224, label %225, label %227

225:                                              ; preds = %208
  %226 = load ptr, ptr %40, align 8, !tbaa !5
  store double 0.000000e+00, ptr %226, align 8, !tbaa !11
  store i32 0, ptr %23, align 4
  store i32 1, ptr %55, align 4
  br label %339

227:                                              ; preds = %208
  br label %228

228:                                              ; preds = %227, %178
  %229 = load i64, ptr %54, align 8, !tbaa !9
  %230 = icmp ne i64 %229, 0
  br i1 %230, label %231, label %233

231:                                              ; preds = %228
  %232 = getelementptr inbounds [1 x i8], ptr %51, i64 0, i64 0
  store i8 49, ptr %232, align 1, !tbaa !13
  br label %235

233:                                              ; preds = %228
  %234 = getelementptr inbounds [1 x i8], ptr %51, i64 0, i64 0
  store i8 73, ptr %234, align 1, !tbaa !13
  br label %235

235:                                              ; preds = %233, %231
  %236 = getelementptr inbounds [1 x i8], ptr %51, i64 0, i64 0
  %237 = load ptr, ptr %26, align 8, !tbaa !5
  %238 = load ptr, ptr %28, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.doublecomplex, ptr %238, i64 1
  %240 = load ptr, ptr %29, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.doublecomplex, ptr %240, i64 1
  %242 = load ptr, ptr %30, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.doublecomplex, ptr %242, i64 1
  %244 = call double @zlangt_(ptr noundef %236, ptr noundef %237, ptr noundef %239, ptr noundef %241, ptr noundef %243)
  store double %244, ptr %52, align 8, !tbaa !11
  %245 = getelementptr inbounds [1 x i8], ptr %51, i64 0, i64 0
  %246 = load ptr, ptr %26, align 8, !tbaa !5
  %247 = load ptr, ptr %31, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.doublecomplex, ptr %247, i64 1
  %249 = load ptr, ptr %32, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.doublecomplex, ptr %249, i64 1
  %251 = load ptr, ptr %33, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.doublecomplex, ptr %251, i64 1
  %253 = load ptr, ptr %34, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.doublecomplex, ptr %253, i64 1
  %255 = load ptr, ptr %35, align 8, !tbaa !5
  %256 = getelementptr inbounds i64, ptr %255, i64 1
  %257 = load ptr, ptr %40, align 8, !tbaa !5
  %258 = load ptr, ptr %43, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.doublecomplex, ptr %258, i64 1
  %260 = load ptr, ptr %45, align 8, !tbaa !5
  %261 = call i32 @zgtcon_(ptr noundef %245, ptr noundef %246, ptr noundef %248, ptr noundef %250, ptr noundef %252, ptr noundef %254, ptr noundef %256, ptr noundef %52, ptr noundef %257, ptr noundef %259, ptr noundef %260)
  %262 = load ptr, ptr %26, align 8, !tbaa !5
  %263 = load ptr, ptr %27, align 8, !tbaa !5
  %264 = load ptr, ptr %36, align 8, !tbaa !5
  %265 = load i64, ptr %47, align 8, !tbaa !9
  %266 = getelementptr inbounds %struct.doublecomplex, ptr %264, i64 %265
  %267 = load ptr, ptr %37, align 8, !tbaa !5
  %268 = load ptr, ptr %38, align 8, !tbaa !5
  %269 = load i64, ptr %49, align 8, !tbaa !9
  %270 = getelementptr inbounds %struct.doublecomplex, ptr %268, i64 %269
  %271 = load ptr, ptr %39, align 8, !tbaa !5
  %272 = call i32 @zlacpy_(ptr noundef @.str.5, ptr noundef %262, ptr noundef %263, ptr noundef %266, ptr noundef %267, ptr noundef %270, ptr noundef %271)
  %273 = load ptr, ptr %25, align 8, !tbaa !5
  %274 = load ptr, ptr %26, align 8, !tbaa !5
  %275 = load ptr, ptr %27, align 8, !tbaa !5
  %276 = load ptr, ptr %31, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.doublecomplex, ptr %276, i64 1
  %278 = load ptr, ptr %32, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.doublecomplex, ptr %278, i64 1
  %280 = load ptr, ptr %33, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.doublecomplex, ptr %280, i64 1
  %282 = load ptr, ptr %34, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.doublecomplex, ptr %282, i64 1
  %284 = load ptr, ptr %35, align 8, !tbaa !5
  %285 = getelementptr inbounds i64, ptr %284, i64 1
  %286 = load ptr, ptr %38, align 8, !tbaa !5
  %287 = load i64, ptr %49, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.doublecomplex, ptr %286, i64 %287
  %289 = load ptr, ptr %39, align 8, !tbaa !5
  %290 = load ptr, ptr %45, align 8, !tbaa !5
  %291 = call i32 @zgttrs_(ptr noundef %273, ptr noundef %274, ptr noundef %275, ptr noundef %277, ptr noundef %279, ptr noundef %281, ptr noundef %283, ptr noundef %285, ptr noundef %288, ptr noundef %289, ptr noundef %290)
  %292 = load ptr, ptr %25, align 8, !tbaa !5
  %293 = load ptr, ptr %26, align 8, !tbaa !5
  %294 = load ptr, ptr %27, align 8, !tbaa !5
  %295 = load ptr, ptr %28, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.doublecomplex, ptr %295, i64 1
  %297 = load ptr, ptr %29, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.doublecomplex, ptr %297, i64 1
  %299 = load ptr, ptr %30, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.doublecomplex, ptr %299, i64 1
  %301 = load ptr, ptr %31, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.doublecomplex, ptr %301, i64 1
  %303 = load ptr, ptr %32, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.doublecomplex, ptr %303, i64 1
  %305 = load ptr, ptr %33, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.doublecomplex, ptr %305, i64 1
  %307 = load ptr, ptr %34, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.doublecomplex, ptr %307, i64 1
  %309 = load ptr, ptr %35, align 8, !tbaa !5
  %310 = getelementptr inbounds i64, ptr %309, i64 1
  %311 = load ptr, ptr %36, align 8, !tbaa !5
  %312 = load i64, ptr %47, align 8, !tbaa !9
  %313 = getelementptr inbounds %struct.doublecomplex, ptr %311, i64 %312
  %314 = load ptr, ptr %37, align 8, !tbaa !5
  %315 = load ptr, ptr %38, align 8, !tbaa !5
  %316 = load i64, ptr %49, align 8, !tbaa !9
  %317 = getelementptr inbounds %struct.doublecomplex, ptr %315, i64 %316
  %318 = load ptr, ptr %39, align 8, !tbaa !5
  %319 = load ptr, ptr %41, align 8, !tbaa !5
  %320 = getelementptr inbounds double, ptr %319, i64 1
  %321 = load ptr, ptr %42, align 8, !tbaa !5
  %322 = getelementptr inbounds double, ptr %321, i64 1
  %323 = load ptr, ptr %43, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.doublecomplex, ptr %323, i64 1
  %325 = load ptr, ptr %44, align 8, !tbaa !5
  %326 = getelementptr inbounds double, ptr %325, i64 1
  %327 = load ptr, ptr %45, align 8, !tbaa !5
  %328 = call i32 @zgtrfs_(ptr noundef %292, ptr noundef %293, ptr noundef %294, ptr noundef %296, ptr noundef %298, ptr noundef %300, ptr noundef %302, ptr noundef %304, ptr noundef %306, ptr noundef %308, ptr noundef %310, ptr noundef %313, ptr noundef %314, ptr noundef %317, ptr noundef %318, ptr noundef %320, ptr noundef %322, ptr noundef %324, ptr noundef %326, ptr noundef %327)
  %329 = load ptr, ptr %40, align 8, !tbaa !5
  %330 = load double, ptr %329, align 8, !tbaa !11
  %331 = call double @dlamch_(ptr noundef @.str.6)
  %332 = fcmp olt double %330, %331
  br i1 %332, label %333, label %338

333:                                              ; preds = %235
  %334 = load ptr, ptr %26, align 8, !tbaa !5
  %335 = load i64, ptr %334, align 8, !tbaa !9
  %336 = add nsw i64 %335, 1
  %337 = load ptr, ptr %45, align 8, !tbaa !5
  store i64 %336, ptr %337, align 8, !tbaa !9
  br label %338

338:                                              ; preds = %333, %235
  store i32 0, ptr %23, align 4
  store i32 1, ptr %55, align 4
  br label %339

339:                                              ; preds = %338, %225, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #3
  %340 = load i32, ptr %23, align 4
  ret i32 %340
}

; 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

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

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

declare double @zlangt_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

declare double @dlamch_(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 = { 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 = !{!7, !7, i64 0}


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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @zgtsvx_(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, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21) local_unnamed_addr #0 {
  %23 = alloca i64, align 8
  %24 = alloca [1 x i8], align 1
  %25 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #4
  store i64 0, ptr %21, align 8, !tbaa !5
  %26 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %27 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %26, 0
  br i1 %.not, label %28, label %30

28:                                               ; preds = %22
  %29 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not126 = icmp eq i64 %29, 0
  br i1 %.not126, label %.thread.sink.split, label %30

30:                                               ; preds = %28, %22
  %.not127 = icmp eq i64 %27, 0
  br i1 %.not127, label %31, label %35

31:                                               ; preds = %30
  %32 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.2) #4
  %.not128 = icmp eq i64 %32, 0
  br i1 %.not128, label %33, label %35

33:                                               ; preds = %31
  %34 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #4
  %.not129 = icmp eq i64 %34, 0
  br i1 %.not129, label %.thread.sink.split, label %35

35:                                               ; preds = %33, %31, %30
  %36 = load i64, ptr %2, align 8, !tbaa !5
  %37 = icmp slt i64 %36, 0
  br i1 %37, label %.thread.sink.split, label %38

38:                                               ; preds = %35
  %39 = load i64, ptr %3, align 8, !tbaa !5
  %40 = icmp slt i64 %39, 0
  br i1 %40, label %.thread.sink.split, label %41

41:                                               ; preds = %38
  %42 = load i64, ptr %13, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %36, i64 1)
  %43 = icmp slt i64 %42, %spec.select
  br i1 %43, label %.thread.sink.split, label %44

44:                                               ; preds = %41
  %45 = load i64, ptr %15, align 8, !tbaa !5
  %46 = icmp slt i64 %45, %spec.select
  br i1 %46, label %.thread.sink.split, label %47

47:                                               ; preds = %44
  %.pr = load i64, ptr %21, align 8, !tbaa !5
  %.not130 = icmp eq i64 %.pr, 0
  br i1 %.not130, label %51, label %.thread

.thread.sink.split:                               ; preds = %44, %41, %38, %35, %33, %28
  %.sink = phi i64 [ -1, %28 ], [ -2, %33 ], [ -3, %35 ], [ -4, %38 ], [ -14, %41 ], [ -16, %44 ]
  store i64 %.sink, ptr %21, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %47
  %48 = phi i64 [ %.pr, %47 ], [ %.sink, %.thread.sink.split ]
  %49 = sub nsw i64 0, %48
  store i64 %49, ptr %23, align 8, !tbaa !5
  %50 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %23) #4
  br label %79

51:                                               ; preds = %47
  br i1 %.not, label %67, label %52

52:                                               ; preds = %51
  %53 = tail call i32 @f2c_zcopy(ptr noundef nonnull %2, ptr noundef %5, ptr noundef nonnull @c__1, ptr noundef %8, ptr noundef nonnull @c__1) #4
  %54 = load i64, ptr %2, align 8, !tbaa !5
  %55 = icmp sgt i64 %54, 1
  br i1 %55, label %56, label %62

56:                                               ; preds = %52
  %57 = add nsw i64 %54, -1
  store i64 %57, ptr %23, align 8, !tbaa !5
  %58 = call i32 @f2c_zcopy(ptr noundef nonnull %23, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %7, ptr noundef nonnull @c__1) #4
  %59 = load i64, ptr %2, align 8, !tbaa !5
  %60 = add nsw i64 %59, -1
  store i64 %60, ptr %23, align 8, !tbaa !5
  %61 = call i32 @f2c_zcopy(ptr noundef nonnull %23, ptr noundef %6, ptr noundef nonnull @c__1, ptr noundef %9, ptr noundef nonnull @c__1) #4
  br label %62

62:                                               ; preds = %56, %52
  %63 = call i32 @zgttrf_(ptr noundef nonnull %2, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef nonnull %21) #4
  %64 = load i64, ptr %21, align 8, !tbaa !5
  %65 = icmp sgt i64 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %62
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  br label %79

67:                                               ; preds = %62, %51
  %. = select i1 %.not127, i8 73, i8 49
  store i8 %., ptr %24, align 1, !tbaa !11
  %68 = call double @zlangt_(ptr noundef nonnull %24, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %5, ptr noundef %6) #4
  store double %68, ptr %25, align 8, !tbaa !9
  %69 = call i32 @zgtcon_(ptr noundef nonnull %24, ptr noundef nonnull %2, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef nonnull %25, ptr noundef %16, ptr noundef %19, ptr noundef nonnull %21) #4
  %70 = call i32 @zlacpy_(ptr noundef nonnull @.str.5, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %12, ptr noundef nonnull %13, ptr noundef %14, ptr noundef nonnull %15) #4
  %71 = call i32 @zgttrs_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %14, ptr noundef nonnull %15, ptr noundef nonnull %21) #4
  %72 = call i32 @zgtrfs_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef nonnull %13, ptr noundef %14, ptr noundef nonnull %15, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef nonnull %21) #4
  %73 = load double, ptr %16, align 8, !tbaa !9
  %74 = call double @dlamch_(ptr noundef nonnull @.str.6) #4
  %75 = fcmp olt double %73, %74
  br i1 %75, label %76, label %79

76:                                               ; preds = %67
  %77 = load i64, ptr %2, align 8, !tbaa !5
  %78 = add nsw i64 %77, 1
  store i64 %78, ptr %21, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %67, %76, %66, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #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 i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare double @zlangt_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

declare double @dlamch_(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 i64 @llvm.umax.i64(i64, i64) #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 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass