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

; 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 @sgecon_(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 float, align 4
  %24 = alloca float, align 4
  %25 = alloca i64, align 8
  %26 = alloca float, align 4
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca float, align 4
  %30 = alloca [3 x i64], align 16
  %31 = alloca float, align 4
  %32 = alloca i64, align 8
  %33 = alloca [1 x i8], align 1
  %34 = alloca float, align 4
  %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 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 4, 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 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, 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 4, 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 float, 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 float, 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 float, ptr %91, align 4, !tbaa !12
  %93 = fcmp olt float %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 %269

108:                                              ; preds = %99
  %109 = load ptr, ptr %16, align 8, !tbaa !5
  store float 0.000000e+00, ptr %109, align 4, !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 float 1.000000e+00, ptr %114, align 4, !tbaa !12
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %269

115:                                              ; preds = %108
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = load float, ptr %116, align 4, !tbaa !12
  %118 = fcmp oeq float %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 %269

120:                                              ; preds = %115
  br label %121

121:                                              ; preds = %120
  %122 = call double @slamch_(ptr noundef @.str.3)
  %123 = fptrunc double %122 to float
  store float %123, ptr %34, align 4, !tbaa !12
  store float 0.000000e+00, ptr %31, align 4, !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 i64, ptr %32, align 8, !tbaa !9
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %128

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

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

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

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

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

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

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

215:                                              ; preds = %182, %149
  %216 = load float, ptr %24, align 4, !tbaa !12
  %217 = load float, ptr %26, align 4, !tbaa !12
  %218 = fmul float %216, %217
  store float %218, ptr %29, align 4, !tbaa !12
  %219 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 89, ptr %219, align 1, !tbaa !11
  %220 = load float, ptr %29, align 4, !tbaa !12
  %221 = fcmp une float %220, 1.000000e+00
  br i1 %221, label %222, label %256

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

235:                                              ; preds = %222
  %236 = load float, ptr %23, align 4, !tbaa !12
  br label %240

237:                                              ; preds = %222
  %238 = load float, ptr %23, align 4, !tbaa !12
  %239 = fneg float %238
  br label %240

240:                                              ; preds = %237, %235
  %241 = phi float [ %236, %235 ], [ %239, %237 ]
  %242 = fpext float %241 to double
  %243 = load float, ptr %34, align 4, !tbaa !12
  %244 = fpext float %243 to double
  %245 = fmul double %242, %244
  %246 = fcmp olt double %228, %245
  br i1 %246, label %250, label %247

247:                                              ; preds = %240
  %248 = load float, ptr %29, align 4, !tbaa !12
  %249 = fcmp oeq float %248, 0.000000e+00
  br i1 %249, label %250, label %251

250:                                              ; preds = %247, %240
  br label %268

251:                                              ; preds = %247
  %252 = load ptr, ptr %12, align 8, !tbaa !5
  %253 = load ptr, ptr %17, align 8, !tbaa !5
  %254 = getelementptr inbounds float, ptr %253, i64 1
  %255 = call i32 @srscl_(ptr noundef %252, ptr noundef %29, ptr noundef %254, ptr noundef @c__1)
  br label %256

256:                                              ; preds = %251, %215
  br label %130

257:                                              ; preds = %130
  %258 = load float, ptr %31, align 4, !tbaa !12
  %259 = fcmp une float %258, 0.000000e+00
  br i1 %259, label %260, label %267

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

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

268:                                              ; preds = %267, %250
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %269

269:                                              ; preds = %268, %119, %113, %103
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 4, 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 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %270 = load i32, ptr %10, align 4
  ret i32 %270
}

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

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

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

declare i32 @srscl_(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 = !{!"float", !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 @sgecon_(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 float, align 4
  %12 = alloca float, align 4
  %13 = alloca i64, align 8
  %14 = alloca float, align 4
  %15 = alloca [3 x i64], align 16
  %16 = alloca float, align 4
  %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 4, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #4
  %18 = getelementptr inbounds i8, ptr %6, i64 -4
  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 float, ptr %4, align 4, !tbaa !10
  %32 = fcmp olt float %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 float 0.000000e+00, ptr %5, align 4, !tbaa !10
  %38 = icmp eq i64 %25, 0
  br i1 %38, label %39, label %40

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

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

43:                                               ; preds = %40
  %44 = tail call double @slamch_(ptr noundef nonnull @.str.3) #4
  store float 0.000000e+00, ptr %16, align 4, !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 float, ptr %6, i64 %45
  %47 = call i32 @slacn2_(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
  %49 = fptrunc double %44 to float
  %50 = fpext float %49 to double
  br label %51

51:                                               ; preds = %.lr.ph, %87
  %52 = phi i64 [ %48, %.lr.ph ], [ %91, %87 ]
  %53 = icmp eq i64 %52, %.
  %54 = load i64, ptr %1, align 8, !tbaa !5
  br i1 %53, label %55, label %61

55:                                               ; preds = %51
  %.idx85 = shl i64 %54, 3
  %56 = getelementptr i8, ptr %6, i64 %.idx85
  %57 = call i32 @slatrs_(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 %56, ptr noundef nonnull %8) #4
  %58 = load i64, ptr %1, align 8, !tbaa !5
  %.idx86 = mul i64 %58, 12
  %59 = getelementptr i8, ptr %6, i64 %.idx86
  %60 = call i32 @slatrs_(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 %59, ptr noundef nonnull %8) #4
  br label %67

61:                                               ; preds = %51
  %.idx = mul i64 %54, 12
  %62 = getelementptr i8, ptr %6, i64 %.idx
  %63 = call i32 @slatrs_(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 %62, ptr noundef nonnull %8) #4
  %64 = load i64, ptr %1, align 8, !tbaa !5
  %.idx84 = shl i64 %64, 3
  %65 = getelementptr i8, ptr %6, i64 %.idx84
  %66 = call i32 @slatrs_(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 %65, ptr noundef nonnull %8) #4
  br label %67

67:                                               ; preds = %61, %55
  %68 = load float, ptr %11, align 4, !tbaa !10
  %69 = load float, ptr %12, align 4, !tbaa !10
  %70 = fmul float %68, %69
  store float %70, ptr %14, align 4, !tbaa !10
  store i8 89, ptr %17, align 1, !tbaa !9
  %71 = fcmp une float %70, 1.000000e+00
  br i1 %71, label %72, label %87

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

85:                                               ; preds = %72
  %86 = call i32 @srscl_(ptr noundef nonnull %1, ptr noundef nonnull %14, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %87

87:                                               ; preds = %85, %67
  %88 = load i64, ptr %1, align 8, !tbaa !5
  %89 = getelementptr float, ptr %6, i64 %88
  %90 = call i32 @slacn2_(ptr noundef nonnull %1, ptr noundef %89, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #4
  %91 = load i64, ptr %13, align 8, !tbaa !5
  %.not83 = icmp eq i64 %91, 0
  br i1 %.not83, label %._crit_edge, label %51

._crit_edge:                                      ; preds = %87, %43
  %92 = load float, ptr %16, align 4, !tbaa !10
  %93 = fcmp une float %92, 0.000000e+00
  br i1 %93, label %94, label %.loopexit

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

.loopexit:                                        ; preds = %72, %94, %._crit_edge, %40, %39, %.thread88
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 @slamch_(ptr noundef) local_unnamed_addr #2

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

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

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


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