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

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

@.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 [10 x i8], align 1
@c__1 = external hidden global i64, align 8

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

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

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

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

67:                                               ; preds = %63
  %68 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %68, align 8, !tbaa !9
  br label %99

69:                                               ; preds = %63, %57
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = icmp slt i64 %71, 0
  br i1 %72, label %73, label %75

73:                                               ; preds = %69
  %74 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %74, align 8, !tbaa !9
  br label %98

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

81:                                               ; preds = %75
  br label %85

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

85:                                               ; preds = %82, %81
  %86 = phi i64 [ 1, %81 ], [ %84, %82 ]
  %87 = icmp slt i64 %77, %86
  br i1 %87, label %88, label %90

88:                                               ; preds = %85
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -4, ptr %89, align 8, !tbaa !9
  br label %97

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

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

96:                                               ; preds = %94, %90
  br label %97

97:                                               ; preds = %96, %88
  br label %98

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

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

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

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

113:                                              ; preds = %108
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  store double 1.000000e+00, ptr %114, align 8, !tbaa !12
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %265

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

119:                                              ; preds = %115
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %265

120:                                              ; preds = %115
  br label %121

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

126:                                              ; preds = %121
  store i64 1, ptr %28, align 8, !tbaa !9
  br label %128

127:                                              ; preds = %121
  store i64 2, ptr %28, align 8, !tbaa !9
  br label %128

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

129:                                              ; preds = %252, %128
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = load ptr, ptr %17, align 8, !tbaa !5
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = load i64, ptr %132, align 8, !tbaa !9
  %134 = add nsw i64 %133, 1
  %135 = getelementptr inbounds double, ptr %131, i64 %134
  %136 = load ptr, ptr %17, align 8, !tbaa !5
  %137 = getelementptr inbounds double, ptr %136, i64 1
  %138 = load ptr, ptr %18, align 8, !tbaa !5
  %139 = getelementptr inbounds i64, ptr %138, i64 1
  %140 = getelementptr inbounds [3 x i64], ptr %30, i64 0, i64 0
  %141 = call i32 @dlacn2_(ptr noundef %130, ptr noundef %135, ptr noundef %137, ptr noundef %139, ptr noundef %31, ptr noundef %27, ptr noundef %140)
  %142 = load i64, ptr %27, align 8, !tbaa !9
  %143 = icmp ne i64 %142, 0
  br i1 %143, label %144, label %253

144:                                              ; preds = %129
  %145 = load i64, ptr %27, align 8, !tbaa !9
  %146 = load i64, ptr %28, align 8, !tbaa !9
  %147 = icmp eq i64 %145, %146
  br i1 %147, label %148, label %181

148:                                              ; preds = %144
  %149 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  %152 = load i64, ptr %21, align 8, !tbaa !9
  %153 = getelementptr inbounds double, ptr %151, i64 %152
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load ptr, ptr %17, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %155, i64 1
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = load i64, ptr %158, align 8, !tbaa !9
  %160 = shl i64 %159, 1
  %161 = add nsw i64 %160, 1
  %162 = getelementptr inbounds double, ptr %157, i64 %161
  %163 = load ptr, ptr %19, align 8, !tbaa !5
  %164 = call i32 @dlatrs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %149, ptr noundef %150, ptr noundef %153, ptr noundef %154, ptr noundef %156, ptr noundef %24, ptr noundef %162, ptr noundef %163)
  %165 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  %168 = load i64, ptr %21, align 8, !tbaa !9
  %169 = getelementptr inbounds double, ptr %167, i64 %168
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  %171 = load ptr, ptr %17, align 8, !tbaa !5
  %172 = getelementptr inbounds double, ptr %171, i64 1
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = load i64, ptr %174, align 8, !tbaa !9
  %176 = mul nsw i64 %175, 3
  %177 = add nsw i64 %176, 1
  %178 = getelementptr inbounds double, ptr %173, i64 %177
  %179 = load ptr, ptr %19, align 8, !tbaa !5
  %180 = call i32 @dlatrs_(ptr noundef @.str.7, ptr noundef @.str.5, ptr noundef @.str.8, ptr noundef %165, ptr noundef %166, ptr noundef %169, ptr noundef %170, ptr noundef %172, ptr noundef %26, ptr noundef %178, ptr noundef %179)
  br label %214

181:                                              ; preds = %144
  %182 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %183 = load ptr, ptr %12, align 8, !tbaa !5
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = load i64, ptr %21, align 8, !tbaa !9
  %186 = getelementptr inbounds double, ptr %184, i64 %185
  %187 = load ptr, ptr %14, align 8, !tbaa !5
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = getelementptr inbounds double, ptr %188, i64 1
  %190 = load ptr, ptr %17, align 8, !tbaa !5
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  %192 = load i64, ptr %191, align 8, !tbaa !9
  %193 = mul nsw i64 %192, 3
  %194 = add nsw i64 %193, 1
  %195 = getelementptr inbounds double, ptr %190, i64 %194
  %196 = load ptr, ptr %19, align 8, !tbaa !5
  %197 = call i32 @dlatrs_(ptr noundef @.str.7, ptr noundef @.str.9, ptr noundef @.str.8, ptr noundef %182, ptr noundef %183, ptr noundef %186, ptr noundef %187, ptr noundef %189, ptr noundef %26, ptr noundef %195, ptr noundef %196)
  %198 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = load i64, ptr %21, align 8, !tbaa !9
  %202 = getelementptr inbounds double, ptr %200, i64 %201
  %203 = load ptr, ptr %14, align 8, !tbaa !5
  %204 = load ptr, ptr %17, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %204, i64 1
  %206 = load ptr, ptr %17, align 8, !tbaa !5
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = load i64, ptr %207, align 8, !tbaa !9
  %209 = shl i64 %208, 1
  %210 = add nsw i64 %209, 1
  %211 = getelementptr inbounds double, ptr %206, i64 %210
  %212 = load ptr, ptr %19, align 8, !tbaa !5
  %213 = call i32 @dlatrs_(ptr noundef @.str.4, ptr noundef @.str.9, ptr noundef @.str.6, ptr noundef %198, ptr noundef %199, ptr noundef %202, ptr noundef %203, ptr noundef %205, ptr noundef %24, ptr noundef %211, ptr noundef %212)
  br label %214

214:                                              ; preds = %181, %148
  %215 = load double, ptr %24, align 8, !tbaa !12
  %216 = load double, ptr %26, align 8, !tbaa !12
  %217 = fmul double %215, %216
  store double %217, ptr %29, align 8, !tbaa !12
  %218 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 89, ptr %218, align 1, !tbaa !11
  %219 = load double, ptr %29, align 8, !tbaa !12
  %220 = fcmp une double %219, 1.000000e+00
  br i1 %220, label %221, label %252

221:                                              ; preds = %214
  %222 = load ptr, ptr %12, align 8, !tbaa !5
  %223 = load ptr, ptr %17, align 8, !tbaa !5
  %224 = getelementptr inbounds double, ptr %223, i64 1
  %225 = call i64 @f2c_idamax(ptr noundef %222, ptr noundef %224, ptr noundef @c__1)
  store i64 %225, ptr %25, align 8, !tbaa !9
  %226 = load double, ptr %29, align 8, !tbaa !12
  %227 = load ptr, ptr %17, align 8, !tbaa !5
  %228 = load i64, ptr %25, align 8, !tbaa !9
  %229 = getelementptr inbounds double, ptr %227, i64 %228
  %230 = load double, ptr %229, align 8, !tbaa !12
  store double %230, ptr %23, align 8, !tbaa !12
  %231 = load double, ptr %23, align 8, !tbaa !12
  %232 = fcmp oge double %231, 0.000000e+00
  br i1 %232, label %233, label %235

233:                                              ; preds = %221
  %234 = load double, ptr %23, align 8, !tbaa !12
  br label %238

235:                                              ; preds = %221
  %236 = load double, ptr %23, align 8, !tbaa !12
  %237 = fneg double %236
  br label %238

238:                                              ; preds = %235, %233
  %239 = phi double [ %234, %233 ], [ %237, %235 ]
  %240 = load double, ptr %34, align 8, !tbaa !12
  %241 = fmul double %239, %240
  %242 = fcmp olt double %226, %241
  br i1 %242, label %246, label %243

243:                                              ; preds = %238
  %244 = load double, ptr %29, align 8, !tbaa !12
  %245 = fcmp oeq double %244, 0.000000e+00
  br i1 %245, label %246, label %247

246:                                              ; preds = %243, %238
  br label %264

247:                                              ; preds = %243
  %248 = load ptr, ptr %12, align 8, !tbaa !5
  %249 = load ptr, ptr %17, align 8, !tbaa !5
  %250 = getelementptr inbounds double, ptr %249, i64 1
  %251 = call i32 @drscl_(ptr noundef %248, ptr noundef %29, ptr noundef %250, ptr noundef @c__1)
  br label %252

252:                                              ; preds = %247, %214
  br label %129

253:                                              ; preds = %129
  %254 = load double, ptr %31, align 8, !tbaa !12
  %255 = fcmp une double %254, 0.000000e+00
  br i1 %255, label %256, label %263

256:                                              ; preds = %253
  %257 = load double, ptr %31, align 8, !tbaa !12
  %258 = fdiv double 1.000000e+00, %257
  %259 = load ptr, ptr %15, align 8, !tbaa !5
  %260 = load double, ptr %259, align 8, !tbaa !12
  %261 = fdiv double %258, %260
  %262 = load ptr, ptr %16, align 8, !tbaa !5
  store double %261, ptr %262, align 8, !tbaa !12
  br label %263

263:                                              ; preds = %256, %253
  br label %264

264:                                              ; preds = %263, %246
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %265

265:                                              ; preds = %264, %119, %113, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 24, 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
  %266 = load i32, ptr %10, align 4
  ret i32 %266
}

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

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

declare i32 @drscl_(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}


; 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 [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 [10 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @dgecon_(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 -8
  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
  %.not90 = icmp eq i64 %22, 0
  br i1 %.not90, 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 %.thread88.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 %.thread88.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 %.thread88.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 %.thread88.sink.split, label %33

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

.thread88.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 %.thread88

.thread88:                                        ; preds = %.thread88.sink.split, %33
  %34 = phi i64 [ %.pr, %33 ], [ %.sink, %.thread88.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 double, ptr %6, i64 %45
  %47 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %46, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #4
  %48 = load i64, ptr %13, align 8, !tbaa !5
  %.not8391 = icmp eq i64 %48, 0
  br i1 %.not8391, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %43, %82
  %49 = phi i64 [ %86, %82 ], [ %48, %43 ]
  %50 = icmp eq i64 %49, %.
  %51 = load i64, ptr %1, align 8, !tbaa !5
  br i1 %50, label %52, label %58

52:                                               ; preds = %.lr.ph
  %.idx85 = shl i64 %51, 4
  %53 = getelementptr i8, ptr %6, i64 %.idx85
  %54 = call i32 @dlatrs_(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 %53, ptr noundef nonnull %8) #4
  %55 = load i64, ptr %1, align 8, !tbaa !5
  %.idx86 = mul i64 %55, 24
  %56 = getelementptr i8, ptr %6, i64 %.idx86
  %57 = call i32 @dlatrs_(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 %56, ptr noundef nonnull %8) #4
  br label %64

58:                                               ; preds = %.lr.ph
  %.idx = mul i64 %51, 24
  %59 = getelementptr i8, ptr %6, i64 %.idx
  %60 = call i32 @dlatrs_(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 %59, ptr noundef nonnull %8) #4
  %61 = load i64, ptr %1, align 8, !tbaa !5
  %.idx84 = shl i64 %61, 4
  %62 = getelementptr i8, ptr %6, i64 %.idx84
  %63 = call i32 @dlatrs_(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 %62, ptr noundef nonnull %8) #4
  br label %64

64:                                               ; preds = %58, %52
  %65 = load double, ptr %11, align 8, !tbaa !10
  %66 = load double, ptr %12, align 8, !tbaa !10
  %67 = fmul double %65, %66
  store double %67, ptr %14, align 8, !tbaa !10
  store i8 89, ptr %17, align 1, !tbaa !9
  %68 = fcmp une double %67, 1.000000e+00
  br i1 %68, label %69, label %82

69:                                               ; preds = %64
  %70 = call i64 @f2c_idamax(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %71 = load double, ptr %14, align 8
  %72 = getelementptr inbounds double, ptr %18, i64 %70
  %73 = load double, ptr %72, align 8, !tbaa !10
  %74 = fcmp oge double %73, 0.000000e+00
  %75 = fneg double %73
  %76 = select i1 %74, double %73, double %75
  %77 = fmul double %44, %76
  %78 = fcmp olt double %71, %77
  %79 = fcmp oeq double %71, 0.000000e+00
  %or.cond = or i1 %79, %78
  br i1 %or.cond, label %.loopexit, label %80

80:                                               ; preds = %69
  %81 = call i32 @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %14, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %82

82:                                               ; preds = %80, %64
  %83 = load i64, ptr %1, align 8, !tbaa !5
  %84 = getelementptr double, ptr %6, i64 %83
  %85 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %84, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #4
  %86 = load i64, ptr %13, align 8, !tbaa !5
  %.not83 = icmp eq i64 %86, 0
  br i1 %.not83, label %._crit_edge, label %.lr.ph

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

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

.loopexit:                                        ; preds = %69, %89, %._crit_edge, %40, %39, %.thread88
  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 @dlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @drscl_(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}


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