; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4

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

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

59:                                               ; preds = %55, %9
  %60 = phi i1 [ true, %9 ], [ %58, %55 ]
  %61 = zext i1 %60 to i32
  store i32 %61, ptr %32, align 4, !tbaa !9
  %62 = load i32, ptr %32, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %70, label %64

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

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

70:                                               ; preds = %64, %59
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = icmp slt i32 %72, 0
  br i1 %73, label %74, label %76

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

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

82:                                               ; preds = %76
  br label %86

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

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

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

91:                                               ; preds = %86
  %92 = load ptr, ptr %14, 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 %18, align 8, !tbaa !5
  store i32 -5, ptr %96, align 4, !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 %18, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %109

104:                                              ; preds = %100
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = sub nsw i32 0, %106
  store i32 %107, ptr %21, align 4, !tbaa !9
  %108 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %21, i32 noundef 6)
  store i32 1, ptr %35, align 4
  br label %275

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

114:                                              ; preds = %109
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  store double 1.000000e+00, ptr %115, align 8, !tbaa !12
  store i32 1, ptr %35, align 4
  br label %275

116:                                              ; preds = %109
  %117 = load ptr, ptr %14, 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 1, ptr %35, align 4
  br label %275

121:                                              ; preds = %116
  br label %122

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

127:                                              ; preds = %122
  store i32 1, ptr %25, align 4, !tbaa !9
  br label %129

128:                                              ; preds = %122
  store i32 2, ptr %25, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %128, %127
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %262, %129
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds %struct.doublecomplex, ptr %132, i64 %136
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.doublecomplex, ptr %138, i64 1
  %140 = getelementptr inbounds [3 x i32], ptr %27, i64 0, i64 0
  call void @zlacn2_(ptr noundef %131, ptr noundef %137, ptr noundef %139, ptr noundef %31, ptr noundef %24, ptr noundef %140)
  %141 = load i32, ptr %24, align 4, !tbaa !9
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %263

143:                                              ; preds = %130
  %144 = load i32, ptr %24, align 4, !tbaa !9
  %145 = load i32, ptr %25, align 4, !tbaa !9
  %146 = icmp eq i32 %144, %145
  br i1 %146, label %147, label %176

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

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

205:                                              ; preds = %176, %147
  %206 = load double, ptr %28, align 8, !tbaa !12
  %207 = load double, ptr %30, align 8, !tbaa !12
  %208 = fmul double %206, %207
  store double %208, ptr %26, align 8, !tbaa !12
  %209 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 89, ptr %209, align 1, !tbaa !11
  %210 = load double, ptr %26, align 8, !tbaa !12
  %211 = fcmp une double %210, 1.000000e+00
  br i1 %211, label %212, label %262

212:                                              ; preds = %205
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.doublecomplex, ptr %214, i64 1
  %216 = call i32 @izamax_(ptr noundef %213, ptr noundef %215, ptr noundef @c__1)
  store i32 %216, ptr %29, align 4, !tbaa !9
  %217 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %217, ptr %21, align 4, !tbaa !9
  %218 = load double, ptr %26, align 8, !tbaa !12
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = load i32, ptr %21, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds %struct.doublecomplex, ptr %219, i64 %221
  %223 = getelementptr inbounds %struct.doublecomplex, ptr %222, i32 0, i32 0
  %224 = load double, ptr %223, align 8, !tbaa !14
  store double %224, ptr %22, align 8, !tbaa !12
  %225 = load double, ptr %22, align 8, !tbaa !12
  %226 = fcmp oge double %225, 0.000000e+00
  br i1 %226, label %227, label %229

227:                                              ; preds = %212
  %228 = load double, ptr %22, align 8, !tbaa !12
  br label %232

229:                                              ; preds = %212
  %230 = load double, ptr %22, align 8, !tbaa !12
  %231 = fneg double %230
  br label %232

232:                                              ; preds = %229, %227
  %233 = phi double [ %228, %227 ], [ %231, %229 ]
  %234 = load ptr, ptr %16, align 8, !tbaa !5
  %235 = load i32, ptr %29, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds %struct.doublecomplex, ptr %234, i64 %236
  %238 = call { double, double } @Cd(ptr noundef %237)
  %239 = extractvalue { double, double } %238, 0
  %240 = extractvalue { double, double } %238, 1
  store double %240, ptr %23, align 8, !tbaa !12
  %241 = load double, ptr %23, align 8, !tbaa !12
  %242 = fcmp oge double %241, 0.000000e+00
  br i1 %242, label %243, label %245

243:                                              ; preds = %232
  %244 = load double, ptr %23, align 8, !tbaa !12
  br label %248

245:                                              ; preds = %232
  %246 = load double, ptr %23, align 8, !tbaa !12
  %247 = fneg double %246
  br label %248

248:                                              ; preds = %245, %243
  %249 = phi double [ %244, %243 ], [ %247, %245 ]
  %250 = fadd double %233, %249
  %251 = load double, ptr %34, align 8, !tbaa !12
  %252 = fmul double %250, %251
  %253 = fcmp olt double %218, %252
  br i1 %253, label %257, label %254

254:                                              ; preds = %248
  %255 = load double, ptr %26, align 8, !tbaa !12
  %256 = fcmp oeq double %255, 0.000000e+00
  br i1 %256, label %257, label %258

257:                                              ; preds = %254, %248
  br label %274

258:                                              ; preds = %254
  %259 = load ptr, ptr %11, align 8, !tbaa !5
  %260 = load ptr, ptr %16, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.doublecomplex, ptr %260, i64 1
  call void @zdrscl_(ptr noundef %259, ptr noundef %26, ptr noundef %261, ptr noundef @c__1)
  br label %262

262:                                              ; preds = %258, %205
  br label %130

263:                                              ; preds = %130
  %264 = load double, ptr %31, align 8, !tbaa !12
  %265 = fcmp une double %264, 0.000000e+00
  br i1 %265, label %266, label %273

266:                                              ; preds = %263
  %267 = load double, ptr %31, align 8, !tbaa !12
  %268 = fdiv double 1.000000e+00, %267
  %269 = load ptr, ptr %14, align 8, !tbaa !5
  %270 = load double, ptr %269, align 8, !tbaa !12
  %271 = fdiv double %268, %270
  %272 = load ptr, ptr %15, align 8, !tbaa !5
  store double %271, ptr %272, align 8, !tbaa !12
  br label %273

273:                                              ; preds = %266, %263
  br label %274

274:                                              ; preds = %273, %257
  store i32 1, ptr %35, align 4
  br label %275

275:                                              ; preds = %274, %120, %114, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  ret void
}

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

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

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

declare double @dlamch_(ptr noundef) #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) #3

declare void @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 = { inlinehint 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 #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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 i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca [3 x i32], align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #5
  %18 = getelementptr inbounds i8, ptr %6, i64 -16
  store i32 0, ptr %8, align 4, !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 i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str) #5
  %.not88 = icmp eq i32 %22, 0
  br i1 %.not88, label %23, label %.thread

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

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

27:                                               ; preds = %.thread
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %25, i32 1)
  %29 = icmp slt i32 %28, %spec.select
  br i1 %29, label %.thread86.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 %.thread86.sink.split, label %33

33:                                               ; preds = %30
  %.pr = load i32, ptr %8, align 4, !tbaa !5
  %.not83 = icmp eq i32 %.pr, 0
  br i1 %.not83, label %37, label %.thread86

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

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

37:                                               ; preds = %33
  store double 0.000000e+00, ptr %5, align 8, !tbaa !10
  %38 = icmp eq i32 %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) #5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !10
  store i8 78, ptr %17, align 1, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !5
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %gep93 = getelementptr %struct.doublecomplex, ptr %6, i64 %46
  call void @zlacn2_(ptr noundef nonnull %1, ptr noundef %gep93, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #5
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %.not8494 = icmp eq i32 %47, 0
  br i1 %.not8494, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %43, %81
  %48 = phi i32 [ %84, %81 ], [ %47, %43 ]
  %49 = icmp eq i32 %48, %.
  br i1 %49, label %50, label %53

50:                                               ; preds = %.lr.ph
  call void @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 %14, ptr noundef %7, ptr noundef nonnull %8) #5
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %gep92 = getelementptr double, ptr %7, i64 %52
  call void @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 %15, ptr noundef %gep92, ptr noundef nonnull %8) #5
  br label %56

53:                                               ; preds = %.lr.ph
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %gep90 = getelementptr double, ptr %7, i64 %55
  call void @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 %15, ptr noundef %gep90, ptr noundef nonnull %8) #5
  call void @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 %14, ptr noundef %7, ptr noundef nonnull %8) #5
  br label %56

56:                                               ; preds = %53, %50
  %57 = load double, ptr %14, align 8, !tbaa !10
  %58 = load double, ptr %15, align 8, !tbaa !10
  %59 = fmul double %57, %58
  store double %59, ptr %12, align 8, !tbaa !10
  store i8 89, ptr %17, align 1, !tbaa !9
  %60 = fcmp une double %59, 1.000000e+00
  br i1 %60, label %61, label %81

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

80:                                               ; preds = %61
  call void @zdrscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #5
  br label %81

81:                                               ; preds = %80, %56
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %gep = getelementptr %struct.doublecomplex, ptr %6, i64 %83
  call void @zlacn2_(ptr noundef nonnull %1, ptr noundef %gep, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #5
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %.not84 = icmp eq i32 %84, 0
  br i1 %.not84, label %._crit_edge, label %.lr.ph

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

87:                                               ; preds = %._crit_edge
  %88 = fdiv double 1.000000e+00, %85
  %89 = load double, ptr %4, align 8, !tbaa !10
  %90 = fdiv double %88, %89
  store double %90, ptr %5, align 8, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %61, %87, %._crit_edge, %40, %39, %.thread86
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  ret void
}

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

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

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) local_unnamed_addr #3

declare void @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 i32 @llvm.umax.i32(i32, i32) #4

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 = { inlinehint 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"int", !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,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass