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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @zgecon_(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) #0 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, 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 i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca double, align 8
  %31 = alloca [3 x i64], align 16
  %32 = alloca double, align 8
  %33 = alloca i64, align 8
  %34 = alloca [1 x i8], align 1
  %35 = alloca double, align 8
  %36 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = load i64, ptr %37, align 8, !tbaa !9
  store i64 %38, ptr %20, align 8, !tbaa !9
  %39 = load i64, ptr %20, align 8, !tbaa !9
  %40 = add nsw i64 1, %39
  store i64 %40, ptr %21, align 8, !tbaa !9
  %41 = load i64, ptr %21, align 8, !tbaa !9
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = sub i64 0, %41
  %44 = getelementptr inbounds %struct.doublecomplex, ptr %42, i64 %43
  store ptr %44, ptr %13, align 8, !tbaa !5
  %45 = load ptr, ptr %17, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.doublecomplex, ptr %45, i32 -1
  store ptr %46, ptr %17, align 8, !tbaa !5
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i32 -1
  store ptr %48, ptr %18, align 8, !tbaa !5
  %49 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %49, align 8, !tbaa !9
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = zext i8 %51 to i32
  %53 = icmp eq i32 %52, 49
  br i1 %53, label %58, label %54

54:                                               ; preds = %9
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = call i64 @lsame_(ptr noundef %55, ptr noundef @.str)
  %57 = icmp ne i64 %56, 0
  br label %58

58:                                               ; preds = %54, %9
  %59 = phi i1 [ true, %9 ], [ %57, %54 ]
  %60 = zext i1 %59 to i32
  %61 = sext i32 %60 to i64
  store i64 %61, ptr %33, align 8, !tbaa !9
  %62 = load i64, ptr %33, align 8, !tbaa !9
  %63 = icmp ne i64 %62, 0
  br i1 %63, label %70, label %64

64:                                               ; preds = %58
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = call i64 @lsame_(ptr noundef %65, ptr noundef @.str.1)
  %67 = icmp ne i64 %66, 0
  br i1 %67, label %70, label %68

68:                                               ; preds = %64
  %69 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %69, align 8, !tbaa !9
  br label %100

70:                                               ; preds = %64, %58
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = icmp slt i64 %72, 0
  br i1 %73, label %74, label %76

74:                                               ; preds = %70
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %75, align 8, !tbaa !9
  br label %99

76:                                               ; preds = %70
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = icmp sge i64 1, %80
  br i1 %81, label %82, label %83

82:                                               ; preds = %76
  br label %86

83:                                               ; preds = %76
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = load i64, ptr %84, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %83, %82
  %87 = phi i64 [ 1, %82 ], [ %85, %83 ]
  %88 = icmp slt i64 %78, %87
  br i1 %88, label %89, label %91

89:                                               ; preds = %86
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -4, ptr %90, align 8, !tbaa !9
  br label %98

91:                                               ; preds = %86
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = load double, ptr %92, align 8, !tbaa !12
  %94 = fcmp olt double %93, 0.000000e+00
  br i1 %94, label %95, label %97

95:                                               ; preds = %91
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -5, ptr %96, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %95, %91
  br label %98

98:                                               ; preds = %97, %89
  br label %99

99:                                               ; preds = %98, %74
  br label %100

100:                                              ; preds = %99, %68
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = load i64, ptr %101, align 8, !tbaa !9
  %103 = icmp ne i64 %102, 0
  br i1 %103, label %104, label %109

104:                                              ; preds = %100
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = sub nsw i64 0, %106
  store i64 %107, ptr %22, align 8, !tbaa !9
  %108 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %22)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %270

109:                                              ; preds = %100
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %110, align 8, !tbaa !12
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = icmp eq i64 %112, 0
  br i1 %113, label %114, label %116

114:                                              ; preds = %109
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  store double 1.000000e+00, ptr %115, align 8, !tbaa !12
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %270

116:                                              ; preds = %109
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = load double, ptr %117, align 8, !tbaa !12
  %119 = fcmp oeq double %118, 0.000000e+00
  br i1 %119, label %120, label %121

120:                                              ; preds = %116
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %270

121:                                              ; preds = %116
  br label %122

122:                                              ; preds = %121
  %123 = call double @dlamch_(ptr noundef @.str.3)
  store double %123, ptr %35, align 8, !tbaa !12
  store double 0.000000e+00, ptr %32, align 8, !tbaa !12
  %124 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 78, ptr %124, align 1, !tbaa !11
  %125 = load i64, ptr %33, align 8, !tbaa !9
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %128

127:                                              ; preds = %122
  store i64 1, ptr %29, align 8, !tbaa !9
  br label %129

128:                                              ; preds = %122
  store i64 2, ptr %29, align 8, !tbaa !9
  br label %129

129:                                              ; preds = %128, %127
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %257, %129
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = add nsw i64 %134, 1
  %136 = getelementptr inbounds %struct.doublecomplex, ptr %132, i64 %135
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.doublecomplex, ptr %137, i64 1
  %139 = getelementptr inbounds [3 x i64], ptr %31, i64 0, i64 0
  %140 = call i32 @zlacn2_(ptr noundef %131, ptr noundef %136, ptr noundef %138, ptr noundef %32, ptr noundef %28, ptr noundef %139)
  %141 = load i64, ptr %28, align 8, !tbaa !9
  %142 = icmp ne i64 %141, 0
  br i1 %142, label %143, label %258

143:                                              ; preds = %130
  %144 = load i64, ptr %28, align 8, !tbaa !9
  %145 = load i64, ptr %29, align 8, !tbaa !9
  %146 = icmp eq i64 %144, %145
  br i1 %146, label %147, label %175

147:                                              ; preds = %143
  %148 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load i64, ptr %21, align 8, !tbaa !9
  %152 = getelementptr inbounds %struct.doublecomplex, ptr %150, i64 %151
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = load ptr, ptr %17, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.doublecomplex, ptr %154, i64 1
  %156 = load ptr, ptr %18, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %156, i64 1
  %158 = load ptr, ptr %19, align 8, !tbaa !5
  %159 = call i32 @zlatrs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %148, ptr noundef %149, ptr noundef %152, ptr noundef %153, ptr noundef %155, ptr noundef %25, ptr noundef %157, ptr noundef %158)
  %160 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = load i64, ptr %21, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.doublecomplex, ptr %162, i64 %163
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load ptr, ptr %17, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.doublecomplex, ptr %166, i64 1
  %168 = load ptr, ptr %18, align 8, !tbaa !5
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = load i64, ptr %169, align 8, !tbaa !9
  %171 = add nsw i64 %170, 1
  %172 = getelementptr inbounds double, ptr %168, i64 %171
  %173 = load ptr, ptr %19, align 8, !tbaa !5
  %174 = call i32 @zlatrs_(ptr noundef @.str.7, ptr noundef @.str.5, ptr noundef @.str.8, ptr noundef %160, ptr noundef %161, ptr noundef %164, ptr noundef %165, ptr noundef %167, ptr noundef %27, ptr noundef %172, ptr noundef %173)
  br label %203

175:                                              ; preds = %143
  %176 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = load ptr, ptr %13, align 8, !tbaa !5
  %179 = load i64, ptr %21, align 8, !tbaa !9
  %180 = getelementptr inbounds %struct.doublecomplex, ptr %178, i64 %179
  %181 = load ptr, ptr %14, align 8, !tbaa !5
  %182 = load ptr, ptr %17, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.doublecomplex, ptr %182, i64 1
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = load i64, ptr %185, align 8, !tbaa !9
  %187 = add nsw i64 %186, 1
  %188 = getelementptr inbounds double, ptr %184, i64 %187
  %189 = load ptr, ptr %19, align 8, !tbaa !5
  %190 = call i32 @zlatrs_(ptr noundef @.str.7, ptr noundef @.str.9, ptr noundef @.str.8, ptr noundef %176, ptr noundef %177, ptr noundef %180, ptr noundef %181, ptr noundef %183, ptr noundef %27, ptr noundef %188, ptr noundef %189)
  %191 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %192 = load ptr, ptr %12, align 8, !tbaa !5
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  %194 = load i64, ptr %21, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.doublecomplex, ptr %193, i64 %194
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = load ptr, ptr %17, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.doublecomplex, ptr %197, i64 1
  %199 = load ptr, ptr %18, align 8, !tbaa !5
  %200 = getelementptr inbounds double, ptr %199, i64 1
  %201 = load ptr, ptr %19, align 8, !tbaa !5
  %202 = call i32 @zlatrs_(ptr noundef @.str.4, ptr noundef @.str.9, ptr noundef @.str.6, ptr noundef %191, ptr noundef %192, ptr noundef %195, ptr noundef %196, ptr noundef %198, ptr noundef %25, ptr noundef %200, ptr noundef %201)
  br label %203

203:                                              ; preds = %175, %147
  %204 = load double, ptr %25, align 8, !tbaa !12
  %205 = load double, ptr %27, align 8, !tbaa !12
  %206 = fmul double %204, %205
  store double %206, ptr %30, align 8, !tbaa !12
  %207 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 89, ptr %207, align 1, !tbaa !11
  %208 = load double, ptr %30, align 8, !tbaa !12
  %209 = fcmp une double %208, 1.000000e+00
  br i1 %209, label %210, label %257

210:                                              ; preds = %203
  %211 = load ptr, ptr %12, align 8, !tbaa !5
  %212 = load ptr, ptr %17, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.doublecomplex, ptr %212, i64 1
  %214 = call i64 @f2c_izamax(ptr noundef %211, ptr noundef %213, ptr noundef @c__1)
  store i64 %214, ptr %26, align 8, !tbaa !9
  %215 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %215, ptr %22, align 8, !tbaa !9
  %216 = load double, ptr %30, align 8, !tbaa !12
  %217 = load ptr, ptr %17, align 8, !tbaa !5
  %218 = load i64, ptr %22, align 8, !tbaa !9
  %219 = getelementptr inbounds %struct.doublecomplex, ptr %217, i64 %218
  %220 = getelementptr inbounds %struct.doublecomplex, ptr %219, i32 0, i32 0
  %221 = load double, ptr %220, align 8, !tbaa !14
  store double %221, ptr %23, align 8, !tbaa !12
  %222 = load double, ptr %23, align 8, !tbaa !12
  %223 = fcmp oge double %222, 0.000000e+00
  br i1 %223, label %224, label %226

224:                                              ; preds = %210
  %225 = load double, ptr %23, align 8, !tbaa !12
  br label %229

226:                                              ; preds = %210
  %227 = load double, ptr %23, align 8, !tbaa !12
  %228 = fneg double %227
  br label %229

229:                                              ; preds = %226, %224
  %230 = phi double [ %225, %224 ], [ %228, %226 ]
  %231 = load ptr, ptr %17, align 8, !tbaa !5
  %232 = load i64, ptr %26, align 8, !tbaa !9
  %233 = getelementptr inbounds %struct.doublecomplex, ptr %231, i64 %232
  %234 = call double @d_imag(ptr noundef %233)
  store double %234, ptr %24, align 8, !tbaa !12
  %235 = load double, ptr %24, align 8, !tbaa !12
  %236 = fcmp oge double %235, 0.000000e+00
  br i1 %236, label %237, label %239

237:                                              ; preds = %229
  %238 = load double, ptr %24, align 8, !tbaa !12
  br label %242

239:                                              ; preds = %229
  %240 = load double, ptr %24, align 8, !tbaa !12
  %241 = fneg double %240
  br label %242

242:                                              ; preds = %239, %237
  %243 = phi double [ %238, %237 ], [ %241, %239 ]
  %244 = fadd double %230, %243
  %245 = load double, ptr %35, align 8, !tbaa !12
  %246 = fmul double %244, %245
  %247 = fcmp olt double %216, %246
  br i1 %247, label %251, label %248

248:                                              ; preds = %242
  %249 = load double, ptr %30, align 8, !tbaa !12
  %250 = fcmp oeq double %249, 0.000000e+00
  br i1 %250, label %251, label %252

251:                                              ; preds = %248, %242
  br label %269

252:                                              ; preds = %248
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  %254 = load ptr, ptr %17, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.doublecomplex, ptr %254, i64 1
  %256 = call i32 @zdrscl_(ptr noundef %253, ptr noundef %30, ptr noundef %255, ptr noundef @c__1)
  br label %257

257:                                              ; preds = %252, %203
  br label %130

258:                                              ; preds = %130
  %259 = load double, ptr %32, align 8, !tbaa !12
  %260 = fcmp une double %259, 0.000000e+00
  br i1 %260, label %261, label %268

261:                                              ; preds = %258
  %262 = load double, ptr %32, align 8, !tbaa !12
  %263 = fdiv double 1.000000e+00, %262
  %264 = load ptr, ptr %15, align 8, !tbaa !5
  %265 = load double, ptr %264, align 8, !tbaa !12
  %266 = fdiv double %263, %265
  %267 = load ptr, ptr %16, align 8, !tbaa !5
  store double %266, ptr %267, align 8, !tbaa !12
  br label %268

268:                                              ; preds = %261, %258
  br label %269

269:                                              ; preds = %268, %251
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %270

270:                                              ; preds = %269, %120, %114, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %271 = load i32, ptr %10, align 4
  ret i32 %271
}

; 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 double @dlamch_(ptr noundef) #2

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

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

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

declare double @d_imag(ptr noundef) #2

declare i32 @zdrscl_(ptr noundef, 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 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"", !13, i64 0, !13, i64 8}


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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @zgecon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef writeonly %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca [3 x i64], align 16
  %16 = alloca double, align 8
  %17 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #4
  %18 = getelementptr inbounds i8, ptr %6, i64 -16
  store i64 0, ptr %8, align 8, !tbaa !5
  %19 = load i8, ptr %0, align 1, !tbaa !9
  %20 = icmp eq i8 %19, 49
  br i1 %20, label %.thread, label %21

21:                                               ; preds = %9
  %22 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str) #4
  %.not89 = icmp eq i64 %22, 0
  br i1 %.not89, label %23, label %.thread

23:                                               ; preds = %21
  %24 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #4
  %.not = icmp eq i64 %24, 0
  br i1 %.not, label %.thread87.sink.split, label %.thread

.thread:                                          ; preds = %9, %23, %21
  %. = phi i64 [ 2, %23 ], [ 1, %21 ], [ 1, %9 ]
  %25 = load i64, ptr %1, align 8, !tbaa !5
  %26 = icmp slt i64 %25, 0
  br i1 %26, label %.thread87.sink.split, label %27

27:                                               ; preds = %.thread
  %28 = load i64, ptr %3, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %25, i64 1)
  %29 = icmp slt i64 %28, %spec.select
  br i1 %29, label %.thread87.sink.split, label %30

30:                                               ; preds = %27
  %31 = load double, ptr %4, align 8, !tbaa !10
  %32 = fcmp olt double %31, 0.000000e+00
  br i1 %32, label %.thread87.sink.split, label %33

33:                                               ; preds = %30
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not84 = icmp eq i64 %.pr, 0
  br i1 %.not84, label %37, label %.thread87

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

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

37:                                               ; preds = %33
  store double 0.000000e+00, ptr %5, align 8, !tbaa !10
  %38 = icmp eq i64 %25, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %37
  store double 1.000000e+00, ptr %5, align 8, !tbaa !10
  br label %.loopexit

40:                                               ; preds = %37
  %41 = load double, ptr %4, align 8, !tbaa !10
  %42 = fcmp oeq double %41, 0.000000e+00
  br i1 %42, label %.loopexit, label %43

43:                                               ; preds = %40
  %44 = tail call double @dlamch_(ptr noundef nonnull @.str.3) #4
  store double 0.000000e+00, ptr %16, align 8, !tbaa !10
  store i8 78, ptr %17, align 1, !tbaa !9
  store i64 0, ptr %13, align 8, !tbaa !5
  %45 = load i64, ptr %1, align 8, !tbaa !5
  %46 = getelementptr %struct.doublecomplex, ptr %6, i64 %45
  %47 = call i32 @zlacn2_(ptr noundef nonnull %1, ptr noundef %46, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #4
  %48 = load i64, ptr %13, align 8, !tbaa !5
  %.not8590 = icmp eq i64 %48, 0
  br i1 %.not8590, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %43, %85
  %49 = phi i64 [ %89, %85 ], [ %48, %43 ]
  %50 = icmp eq i64 %49, %.
  br i1 %50, label %51, label %56

51:                                               ; preds = %.lr.ph
  %52 = call i32 @zlatrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %11, ptr noundef %7, ptr noundef nonnull %8) #4
  %53 = load i64, ptr %1, align 8, !tbaa !5
  %54 = getelementptr double, ptr %7, i64 %53
  %55 = call i32 @zlatrs_(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.8, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %12, ptr noundef %54, ptr noundef nonnull %8) #4
  br label %61

56:                                               ; preds = %.lr.ph
  %57 = load i64, ptr %1, align 8, !tbaa !5
  %58 = getelementptr double, ptr %7, i64 %57
  %59 = call i32 @zlatrs_(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.8, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %12, ptr noundef %58, ptr noundef nonnull %8) #4
  %60 = call i32 @zlatrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %11, ptr noundef %7, ptr noundef nonnull %8) #4
  br label %61

61:                                               ; preds = %56, %51
  %62 = load double, ptr %11, align 8, !tbaa !10
  %63 = load double, ptr %12, align 8, !tbaa !10
  %64 = fmul double %62, %63
  store double %64, ptr %14, align 8, !tbaa !10
  store i8 89, ptr %17, align 1, !tbaa !9
  %65 = fcmp une double %64, 1.000000e+00
  br i1 %65, label %66, label %85

66:                                               ; preds = %61
  %67 = call i64 @f2c_izamax(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %68 = load double, ptr %14, align 8, !tbaa !10
  %69 = getelementptr inbounds %struct.doublecomplex, ptr %18, i64 %67
  %70 = load double, ptr %69, align 8, !tbaa !12
  %71 = call double @d_imag(ptr noundef nonnull %69) #4
  %72 = insertelement <2 x double> poison, double %70, i64 0
  %73 = insertelement <2 x double> %72, double %71, i64 1
  %74 = fcmp oge <2 x double> %73, zeroinitializer
  %75 = fneg <2 x double> %73
  %76 = select <2 x i1> %74, <2 x double> %73, <2 x double> %75
  %shift = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %77 = fadd <2 x double> %76, %shift
  %78 = extractelement <2 x double> %77, i64 0
  %79 = fmul double %44, %78
  %80 = fcmp olt double %68, %79
  %81 = load double, ptr %14, align 8
  %82 = fcmp oeq double %81, 0.000000e+00
  %or.cond = select i1 %80, i1 true, i1 %82
  br i1 %or.cond, label %.loopexit, label %83

83:                                               ; preds = %66
  %84 = call i32 @zdrscl_(ptr noundef nonnull %1, ptr noundef nonnull %14, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %85

85:                                               ; preds = %83, %61
  %86 = load i64, ptr %1, align 8, !tbaa !5
  %87 = getelementptr %struct.doublecomplex, ptr %6, i64 %86
  %88 = call i32 @zlacn2_(ptr noundef nonnull %1, ptr noundef %87, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #4
  %89 = load i64, ptr %13, align 8, !tbaa !5
  %.not85 = icmp eq i64 %89, 0
  br i1 %.not85, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %85, %43
  %90 = load double, ptr %16, align 8, !tbaa !10
  %91 = fcmp une double %90, 0.000000e+00
  br i1 %91, label %92, label %.loopexit

92:                                               ; preds = %._crit_edge
  %93 = fdiv double 1.000000e+00, %90
  %94 = load double, ptr %4, align 8, !tbaa !10
  %95 = fdiv double %93, %94
  store double %95, ptr %5, align 8, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %66, %92, %._crit_edge, %40, %39, %.thread87
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #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 double @dlamch_(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 @zlatrs_(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 i64 @f2c_izamax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @d_imag(ptr noundef) local_unnamed_addr #2

declare i32 @zdrscl_(ptr noundef, 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 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"", !11, i64 0, !11, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass