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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.complex = type { float, float }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.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 @cgtsvx_(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 float, align 4
  %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 4, 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.complex, 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.complex, 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.complex, 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.complex, 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.complex, 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.complex, 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.complex, 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.complex, 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.complex, 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 float, 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 float, 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.complex, 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 float, 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 %341

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.complex, ptr %183, i64 1
  %185 = load ptr, ptr %32, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.complex, ptr %185, i64 1
  %187 = call i32 @f2c_ccopy(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.complex, ptr %195, i64 1
  %197 = load ptr, ptr %31, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.complex, ptr %197, i64 1
  %199 = call i32 @f2c_ccopy(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.complex, ptr %203, i64 1
  %205 = load ptr, ptr %33, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.complex, ptr %205, i64 1
  %207 = call i32 @f2c_ccopy(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.complex, ptr %210, i64 1
  %212 = load ptr, ptr %32, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.complex, ptr %212, i64 1
  %214 = load ptr, ptr %33, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.complex, ptr %214, i64 1
  %216 = load ptr, ptr %34, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.complex, 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 @cgttrf_(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 float 0.000000e+00, ptr %226, align 4, !tbaa !11
  store i32 0, ptr %23, align 4
  store i32 1, ptr %55, align 4
  br label %341

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

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

340:                                              ; preds = %335, %235
  store i32 0, ptr %23, align 4
  store i32 1, ptr %55, align 4
  br label %341

341:                                              ; preds = %340, %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 4, 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
  %342 = load i32, ptr %23, align 4
  ret i32 %342
}

; 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_ccopy(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

declare i32 @cgtcon_(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 @clacpy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @cgttrs_(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 @cgtrfs_(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 @slamch_(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 = !{!"float", !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 @cgtsvx_(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 float, align 4
  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 4, 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 %81

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

52:                                               ; preds = %51
  %53 = tail call i32 @f2c_ccopy(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_ccopy(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_ccopy(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 @cgttrf_(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 float 0.000000e+00, ptr %16, align 4, !tbaa !9
  br label %81

67:                                               ; preds = %62, %51
  %. = select i1 %.not127, i8 73, i8 49
  store i8 %., ptr %24, align 1, !tbaa !11
  %68 = call double @clangt_(ptr noundef nonnull %24, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %5, ptr noundef %6) #4
  %69 = fptrunc double %68 to float
  store float %69, ptr %25, align 4, !tbaa !9
  %70 = call i32 @cgtcon_(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
  %71 = call i32 @clacpy_(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
  %72 = call i32 @cgttrs_(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
  %73 = call i32 @cgtrfs_(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
  %74 = load float, ptr %16, align 4, !tbaa !9
  %75 = fpext float %74 to double
  %76 = call double @slamch_(ptr noundef nonnull @.str.6) #4
  %77 = fcmp ogt double %76, %75
  br i1 %77, label %78, label %81

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

81:                                               ; preds = %67, %78, %66, %.thread
  call void @llvm.lifetime.end.p0(i64 4, 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_ccopy(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare i32 @cgtcon_(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 @clacpy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @cgttrs_(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 @cgtrfs_(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 @slamch_(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 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}


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