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

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

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

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

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

69:                                               ; preds = %63, %58
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = icmp slt i32 %71, 0
  br i1 %72, label %73, label %75

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

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

81:                                               ; preds = %75
  br label %85

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

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

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

90:                                               ; preds = %85
  %91 = load ptr, ptr %14, 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 %18, align 8, !tbaa !5
  store i32 -5, ptr %95, align 4, !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 %18, align 8, !tbaa !5
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %108

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

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

113:                                              ; preds = %108
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  store double 1.000000e+00, ptr %114, align 8, !tbaa !12
  store i32 1, ptr %34, align 4
  br label %269

115:                                              ; preds = %108
  %116 = load ptr, ptr %14, 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 1, ptr %34, align 4
  br label %269

120:                                              ; preds = %115
  br label %121

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

126:                                              ; preds = %121
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %128

127:                                              ; preds = %121
  store i32 2, ptr %24, align 4, !tbaa !9
  br label %128

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

129:                                              ; preds = %256, %128
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %131, i64 %135
  %137 = load ptr, ptr %16, align 8, !tbaa !5
  %138 = getelementptr inbounds double, ptr %137, i64 1
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = getelementptr inbounds i32, ptr %139, i64 1
  %141 = getelementptr inbounds [3 x i32], ptr %26, i64 0, i64 0
  call void @dlacn2_(ptr noundef %130, ptr noundef %136, ptr noundef %138, ptr noundef %140, ptr noundef %30, ptr noundef %23, ptr noundef %141)
  %142 = load i32, ptr %23, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %257

144:                                              ; preds = %129
  %145 = load i32, ptr %23, align 4, !tbaa !9
  %146 = load i32, ptr %24, align 4, !tbaa !9
  %147 = icmp eq i32 %145, %146
  br i1 %147, label %148, label %183

148:                                              ; preds = %144
  %149 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %156, i64 1
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load i32, ptr %159, align 4, !tbaa !9
  %161 = shl i32 %160, 1
  %162 = add nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds double, ptr %158, i64 %163
  %165 = load ptr, ptr %18, align 8, !tbaa !5
  call void @dlatrs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %149, ptr noundef %150, ptr noundef %154, ptr noundef %155, ptr noundef %157, ptr noundef %27, ptr noundef %164, ptr noundef %165)
  %166 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = load ptr, ptr %12, align 8, !tbaa !5
  %169 = load i32, ptr %20, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds double, ptr %168, i64 %170
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = load ptr, ptr %16, align 8, !tbaa !5
  %174 = getelementptr inbounds double, ptr %173, i64 1
  %175 = load ptr, ptr %16, align 8, !tbaa !5
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = load i32, ptr %176, align 4, !tbaa !9
  %178 = mul nsw i32 %177, 3
  %179 = add nsw i32 %178, 1
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds double, ptr %175, i64 %180
  %182 = load ptr, ptr %18, align 8, !tbaa !5
  call void @dlatrs_(ptr noundef @.str.7, ptr noundef @.str.5, ptr noundef @.str.8, ptr noundef %166, ptr noundef %167, ptr noundef %171, ptr noundef %172, ptr noundef %174, ptr noundef %29, ptr noundef %181, ptr noundef %182)
  br label %218

183:                                              ; preds = %144
  %184 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = load i32, ptr %20, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %186, i64 %188
  %190 = load ptr, ptr %13, align 8, !tbaa !5
  %191 = load ptr, ptr %16, align 8, !tbaa !5
  %192 = getelementptr inbounds double, ptr %191, i64 1
  %193 = load ptr, ptr %16, align 8, !tbaa !5
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = load i32, ptr %194, align 4, !tbaa !9
  %196 = mul nsw i32 %195, 3
  %197 = add nsw i32 %196, 1
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds double, ptr %193, i64 %198
  %200 = load ptr, ptr %18, align 8, !tbaa !5
  call void @dlatrs_(ptr noundef @.str.7, ptr noundef @.str.9, ptr noundef @.str.8, ptr noundef %184, ptr noundef %185, ptr noundef %189, ptr noundef %190, ptr noundef %192, ptr noundef %29, ptr noundef %199, ptr noundef %200)
  %201 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = load ptr, ptr %12, align 8, !tbaa !5
  %204 = load i32, ptr %20, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds double, ptr %203, i64 %205
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  %208 = load ptr, ptr %16, align 8, !tbaa !5
  %209 = getelementptr inbounds double, ptr %208, i64 1
  %210 = load ptr, ptr %16, align 8, !tbaa !5
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = load i32, ptr %211, align 4, !tbaa !9
  %213 = shl i32 %212, 1
  %214 = add nsw i32 %213, 1
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds double, ptr %210, i64 %215
  %217 = load ptr, ptr %18, align 8, !tbaa !5
  call void @dlatrs_(ptr noundef @.str.4, ptr noundef @.str.9, ptr noundef @.str.6, ptr noundef %201, ptr noundef %202, ptr noundef %206, ptr noundef %207, ptr noundef %209, ptr noundef %27, ptr noundef %216, ptr noundef %217)
  br label %218

218:                                              ; preds = %183, %148
  %219 = load double, ptr %27, align 8, !tbaa !12
  %220 = load double, ptr %29, align 8, !tbaa !12
  %221 = fmul double %219, %220
  store double %221, ptr %25, align 8, !tbaa !12
  %222 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 89, ptr %222, align 1, !tbaa !11
  %223 = load double, ptr %25, align 8, !tbaa !12
  %224 = fcmp une double %223, 1.000000e+00
  br i1 %224, label %225, label %256

225:                                              ; preds = %218
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = load ptr, ptr %16, align 8, !tbaa !5
  %228 = getelementptr inbounds double, ptr %227, i64 1
  %229 = call i32 @idamax_(ptr noundef %226, ptr noundef %228, ptr noundef @c__1)
  store i32 %229, ptr %28, align 4, !tbaa !9
  %230 = load double, ptr %25, align 8, !tbaa !12
  %231 = load ptr, ptr %16, align 8, !tbaa !5
  %232 = load i32, ptr %28, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds double, ptr %231, i64 %233
  %235 = load double, ptr %234, align 8, !tbaa !12
  store double %235, ptr %22, align 8, !tbaa !12
  %236 = load double, ptr %22, align 8, !tbaa !12
  %237 = fcmp oge double %236, 0.000000e+00
  br i1 %237, label %238, label %240

238:                                              ; preds = %225
  %239 = load double, ptr %22, align 8, !tbaa !12
  br label %243

240:                                              ; preds = %225
  %241 = load double, ptr %22, align 8, !tbaa !12
  %242 = fneg double %241
  br label %243

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

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

251:                                              ; preds = %248, %243
  br label %268

252:                                              ; preds = %248
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = load ptr, ptr %16, align 8, !tbaa !5
  %255 = getelementptr inbounds double, ptr %254, i64 1
  call void @drscl_(ptr noundef %253, ptr noundef %25, ptr noundef %255, ptr noundef @c__1)
  br label %256

256:                                              ; preds = %252, %218
  br label %129

257:                                              ; preds = %129
  %258 = load double, ptr %30, align 8, !tbaa !12
  %259 = fcmp une double %258, 0.000000e+00
  br i1 %259, label %260, label %267

260:                                              ; preds = %257
  %261 = load double, ptr %30, align 8, !tbaa !12
  %262 = fdiv double 1.000000e+00, %261
  %263 = load ptr, ptr %14, align 8, !tbaa !5
  %264 = load double, ptr %263, align 8, !tbaa !12
  %265 = fdiv double %262, %264
  %266 = load ptr, ptr %15, align 8, !tbaa !5
  store double %265, ptr %266, align 8, !tbaa !12
  br label %267

267:                                              ; preds = %260, %257
  br label %268

268:                                              ; preds = %267, %251
  store i32 1, ptr %34, align 4
  br label %269

269:                                              ; preds = %268, %119, %113, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  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 @dlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare void @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 = !{!"int", !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 i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @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 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) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 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) #4
  %.not86 = icmp eq i32 %22, 0
  br i1 %.not86, label %23, label %.thread

23:                                               ; preds = %21
  %24 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #4
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %.thread84.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 %.thread84.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 %.thread84.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 %.thread84.sink.split, label %33

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

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

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

.lr.ph:                                           ; preds = %43, %85
  %48 = phi i32 [ %88, %85 ], [ %47, %43 ]
  %49 = icmp eq i32 %48, %.
  %50 = load i32, ptr %1, align 4, !tbaa !5
  br i1 %49, label %51, label %59

51:                                               ; preds = %.lr.ph
  %52 = shl i32 %50, 1
  %53 = or disjoint i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds double, ptr %18, i64 %54
  call void @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 %14, ptr noundef nonnull %55, ptr noundef nonnull %8) #4
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = mul nsw i32 %56, 3
  %58 = sext i32 %57 to i64
  %gep90 = getelementptr double, ptr %6, i64 %58
  call void @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 %15, ptr noundef %gep90, ptr noundef nonnull %8) #4
  br label %67

59:                                               ; preds = %.lr.ph
  %60 = mul nsw i32 %50, 3
  %61 = sext i32 %60 to i64
  %gep88 = getelementptr double, ptr %6, i64 %61
  call void @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 %15, ptr noundef %gep88, ptr noundef nonnull %8) #4
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = shl i32 %62, 1
  %64 = or disjoint i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds double, ptr %18, i64 %65
  call void @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 %14, ptr noundef nonnull %66, ptr noundef nonnull %8) #4
  br label %67

67:                                               ; preds = %59, %51
  %68 = load double, ptr %14, align 8, !tbaa !10
  %69 = load double, ptr %15, align 8, !tbaa !10
  %70 = fmul double %68, %69
  store double %70, ptr %12, align 8, !tbaa !10
  store i8 89, ptr %17, align 1, !tbaa !9
  %71 = fcmp une double %70, 1.000000e+00
  br i1 %71, label %72, label %85

72:                                               ; preds = %67
  %73 = call i32 @idamax_(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %74 = load double, ptr %12, align 8
  %75 = sext i32 %73 to i64
  %76 = getelementptr inbounds double, ptr %18, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !10
  %78 = fcmp oge double %77, 0.000000e+00
  %79 = fneg double %77
  %80 = select i1 %78, double %77, double %79
  %81 = fmul double %44, %80
  %82 = fcmp olt double %74, %81
  %83 = fcmp oeq double %74, 0.000000e+00
  %or.cond = or i1 %83, %82
  br i1 %or.cond, label %.loopexit, label %84

84:                                               ; preds = %72
  call void @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %85

85:                                               ; preds = %84, %67
  %86 = load i32, ptr %1, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %gep = getelementptr double, ptr %6, i64 %87
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %88 = load i32, ptr %11, align 4, !tbaa !5
  %.not82 = icmp eq i32 %88, 0
  br i1 %.not82, label %._crit_edge, label %.lr.ph

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

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

.loopexit:                                        ; preds = %72, %91, %._crit_edge, %40, %39, %.thread84
  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 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  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 @dlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @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 i32 @llvm.umax.i32(i32, i32) #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 = !{!"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}


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