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

; 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 [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = 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 @stbcon_(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, ptr noundef %9, ptr noundef %10) #0 {
  %12 = alloca i32, align 4
  %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 ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca float, align 4
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca float, align 4
  %32 = alloca [3 x i64], align 16
  %33 = alloca float, align 4
  %34 = alloca i64, align 8
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca i64, align 8
  %38 = alloca [1 x i8], align 1
  %39 = alloca float, align 4
  %40 = alloca i64, align 8
  %41 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store ptr %3, ptr %16, align 8, !tbaa !5
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  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 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #3
  %42 = load ptr, ptr %19, align 8, !tbaa !5
  %43 = load i64, ptr %42, align 8, !tbaa !9
  store i64 %43, ptr %24, align 8, !tbaa !9
  %44 = load i64, ptr %24, align 8, !tbaa !9
  %45 = add nsw i64 1, %44
  store i64 %45, ptr %25, align 8, !tbaa !9
  %46 = load i64, ptr %25, align 8, !tbaa !9
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  %48 = sub i64 0, %46
  %49 = getelementptr inbounds float, ptr %47, i64 %48
  store ptr %49, ptr %18, align 8, !tbaa !5
  %50 = load ptr, ptr %21, align 8, !tbaa !5
  %51 = getelementptr inbounds float, ptr %50, i32 -1
  store ptr %51, ptr %21, align 8, !tbaa !5
  %52 = load ptr, ptr %22, align 8, !tbaa !5
  %53 = getelementptr inbounds i64, ptr %52, i32 -1
  store ptr %53, ptr %22, align 8, !tbaa !5
  %54 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 0, ptr %54, align 8, !tbaa !9
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = call i64 @lsame_(ptr noundef %55, ptr noundef @.str)
  store i64 %56, ptr %34, align 8, !tbaa !9
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = load i8, ptr %57, align 1, !tbaa !11
  %59 = zext i8 %58 to i32
  %60 = icmp eq i32 %59, 49
  br i1 %60, label %65, label %61

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

65:                                               ; preds = %61, %11
  %66 = phi i1 [ true, %11 ], [ %64, %61 ]
  %67 = zext i1 %66 to i32
  %68 = sext i32 %67 to i64
  store i64 %68, ptr %37, align 8, !tbaa !9
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = call i64 @lsame_(ptr noundef %69, ptr noundef @.str.2)
  store i64 %70, ptr %40, align 8, !tbaa !9
  %71 = load i64, ptr %37, align 8, !tbaa !9
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %79, label %73

73:                                               ; preds = %65
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = call i64 @lsame_(ptr noundef %74, ptr noundef @.str.3)
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %79, label %77

77:                                               ; preds = %73
  %78 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -1, ptr %78, align 8, !tbaa !9
  br label %123

79:                                               ; preds = %73, %65
  %80 = load i64, ptr %34, align 8, !tbaa !9
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %88, label %82

82:                                               ; preds = %79
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = call i64 @lsame_(ptr noundef %83, ptr noundef @.str.4)
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %88, label %86

86:                                               ; preds = %82
  %87 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -2, ptr %87, align 8, !tbaa !9
  br label %122

88:                                               ; preds = %82, %79
  %89 = load i64, ptr %40, align 8, !tbaa !9
  %90 = icmp ne i64 %89, 0
  br i1 %90, label %97, label %91

91:                                               ; preds = %88
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = call i64 @lsame_(ptr noundef %92, ptr noundef @.str)
  %94 = icmp ne i64 %93, 0
  br i1 %94, label %97, label %95

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

97:                                               ; preds = %91, %88
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = load i64, ptr %98, align 8, !tbaa !9
  %100 = icmp slt i64 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %97
  %102 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -4, ptr %102, align 8, !tbaa !9
  br label %120

103:                                              ; preds = %97
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = icmp slt i64 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %103
  %108 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -5, ptr %108, align 8, !tbaa !9
  br label %119

109:                                              ; preds = %103
  %110 = load ptr, ptr %19, align 8, !tbaa !5
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = load ptr, ptr %17, align 8, !tbaa !5
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = add nsw i64 %113, 1
  %115 = icmp slt i64 %111, %114
  br i1 %115, label %116, label %118

116:                                              ; preds = %109
  %117 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -7, ptr %117, align 8, !tbaa !9
  br label %118

118:                                              ; preds = %116, %109
  br label %119

119:                                              ; preds = %118, %107
  br label %120

120:                                              ; preds = %119, %101
  br label %121

121:                                              ; preds = %120, %95
  br label %122

122:                                              ; preds = %121, %86
  br label %123

123:                                              ; preds = %122, %77
  %124 = load ptr, ptr %23, align 8, !tbaa !5
  %125 = load i64, ptr %124, align 8, !tbaa !9
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %132

127:                                              ; preds = %123
  %128 = load ptr, ptr %23, align 8, !tbaa !5
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = sub nsw i64 0, %129
  store i64 %130, ptr %26, align 8, !tbaa !9
  %131 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %26)
  store i32 0, ptr %12, align 4
  store i32 1, ptr %41, align 4
  br label %286

132:                                              ; preds = %123
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = icmp eq i64 %134, 0
  br i1 %135, label %136, label %138

136:                                              ; preds = %132
  %137 = load ptr, ptr %20, align 8, !tbaa !5
  store float 1.000000e+00, ptr %137, align 4, !tbaa !12
  store i32 0, ptr %12, align 4
  store i32 1, ptr %41, align 4
  br label %286

138:                                              ; preds = %132
  %139 = load ptr, ptr %20, align 8, !tbaa !5
  store float 0.000000e+00, ptr %139, align 4, !tbaa !12
  %140 = call double @slamch_(ptr noundef @.str.6)
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = load i64, ptr %141, align 8, !tbaa !9
  %143 = icmp sge i64 1, %142
  br i1 %143, label %144, label %145

144:                                              ; preds = %138
  br label %148

145:                                              ; preds = %138
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  %147 = load i64, ptr %146, align 8, !tbaa !9
  br label %148

148:                                              ; preds = %145, %144
  %149 = phi i64 [ 1, %144 ], [ %147, %145 ]
  %150 = sitofp i64 %149 to float
  %151 = fpext float %150 to double
  %152 = fmul double %140, %151
  %153 = fptrunc double %152 to float
  store float %153, ptr %39, align 4, !tbaa !12
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = load ptr, ptr %18, align 8, !tbaa !5
  %160 = load i64, ptr %25, align 8, !tbaa !9
  %161 = getelementptr inbounds float, ptr %159, i64 %160
  %162 = load ptr, ptr %19, align 8, !tbaa !5
  %163 = load ptr, ptr %21, align 8, !tbaa !5
  %164 = getelementptr inbounds float, ptr %163, i64 1
  %165 = call double @slantb_(ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef %161, ptr noundef %162, ptr noundef %164)
  %166 = fptrunc double %165 to float
  store float %166, ptr %33, align 4, !tbaa !12
  %167 = load float, ptr %33, align 4, !tbaa !12
  %168 = fcmp ogt float %167, 0.000000e+00
  br i1 %168, label %169, label %284

169:                                              ; preds = %148
  store float 0.000000e+00, ptr %36, align 4, !tbaa !12
  %170 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  store i8 78, ptr %170, align 1, !tbaa !11
  %171 = load i64, ptr %37, align 8, !tbaa !9
  %172 = icmp ne i64 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %169
  store i64 1, ptr %30, align 8, !tbaa !9
  br label %175

174:                                              ; preds = %169
  store i64 2, ptr %30, align 8, !tbaa !9
  br label %175

175:                                              ; preds = %174, %173
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %176

176:                                              ; preds = %273, %175
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = load ptr, ptr %21, align 8, !tbaa !5
  %179 = load ptr, ptr %16, align 8, !tbaa !5
  %180 = load i64, ptr %179, align 8, !tbaa !9
  %181 = add nsw i64 %180, 1
  %182 = getelementptr inbounds float, ptr %178, i64 %181
  %183 = load ptr, ptr %21, align 8, !tbaa !5
  %184 = getelementptr inbounds float, ptr %183, i64 1
  %185 = load ptr, ptr %22, align 8, !tbaa !5
  %186 = getelementptr inbounds i64, ptr %185, i64 1
  %187 = getelementptr inbounds [3 x i64], ptr %32, i64 0, i64 0
  %188 = call i32 @slacn2_(ptr noundef %177, ptr noundef %182, ptr noundef %184, ptr noundef %186, ptr noundef %36, ptr noundef %29, ptr noundef %187)
  %189 = load i64, ptr %29, align 8, !tbaa !9
  %190 = icmp ne i64 %189, 0
  br i1 %190, label %191, label %274

191:                                              ; preds = %176
  %192 = load i64, ptr %29, align 8, !tbaa !9
  %193 = load i64, ptr %30, align 8, !tbaa !9
  %194 = icmp eq i64 %192, %193
  br i1 %194, label %195, label %215

195:                                              ; preds = %191
  %196 = load ptr, ptr %14, align 8, !tbaa !5
  %197 = load ptr, ptr %15, align 8, !tbaa !5
  %198 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  %199 = load ptr, ptr %16, align 8, !tbaa !5
  %200 = load ptr, ptr %17, align 8, !tbaa !5
  %201 = load ptr, ptr %18, align 8, !tbaa !5
  %202 = load i64, ptr %25, align 8, !tbaa !9
  %203 = getelementptr inbounds float, ptr %201, i64 %202
  %204 = load ptr, ptr %19, align 8, !tbaa !5
  %205 = load ptr, ptr %21, align 8, !tbaa !5
  %206 = getelementptr inbounds float, ptr %205, i64 1
  %207 = load ptr, ptr %21, align 8, !tbaa !5
  %208 = load ptr, ptr %16, 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 %23, align 8, !tbaa !5
  %214 = call i32 @slatbs_(ptr noundef %196, ptr noundef @.str.7, ptr noundef %197, ptr noundef %198, ptr noundef %199, ptr noundef %200, ptr noundef %203, ptr noundef %204, ptr noundef %206, ptr noundef %31, ptr noundef %212, ptr noundef %213)
  br label %235

215:                                              ; preds = %191
  %216 = load ptr, ptr %14, align 8, !tbaa !5
  %217 = load ptr, ptr %15, align 8, !tbaa !5
  %218 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = load ptr, ptr %17, align 8, !tbaa !5
  %221 = load ptr, ptr %18, align 8, !tbaa !5
  %222 = load i64, ptr %25, align 8, !tbaa !9
  %223 = getelementptr inbounds float, ptr %221, i64 %222
  %224 = load ptr, ptr %19, align 8, !tbaa !5
  %225 = load ptr, ptr %21, align 8, !tbaa !5
  %226 = getelementptr inbounds float, ptr %225, i64 1
  %227 = load ptr, ptr %21, align 8, !tbaa !5
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  %229 = load i64, ptr %228, align 8, !tbaa !9
  %230 = shl i64 %229, 1
  %231 = add nsw i64 %230, 1
  %232 = getelementptr inbounds float, ptr %227, i64 %231
  %233 = load ptr, ptr %23, align 8, !tbaa !5
  %234 = call i32 @slatbs_(ptr noundef %216, ptr noundef @.str.8, ptr noundef %217, ptr noundef %218, ptr noundef %219, ptr noundef %220, ptr noundef %223, ptr noundef %224, ptr noundef %226, ptr noundef %31, ptr noundef %232, ptr noundef %233)
  br label %235

235:                                              ; preds = %215, %195
  %236 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  store i8 89, ptr %236, align 1, !tbaa !11
  %237 = load float, ptr %31, align 4, !tbaa !12
  %238 = fcmp une float %237, 1.000000e+00
  br i1 %238, label %239, label %273

239:                                              ; preds = %235
  %240 = load ptr, ptr %16, align 8, !tbaa !5
  %241 = load ptr, ptr %21, align 8, !tbaa !5
  %242 = getelementptr inbounds float, ptr %241, i64 1
  %243 = call i64 @f2c_isamax(ptr noundef %240, ptr noundef %242, ptr noundef @c__1)
  store i64 %243, ptr %28, align 8, !tbaa !9
  %244 = load ptr, ptr %21, align 8, !tbaa !5
  %245 = load i64, ptr %28, align 8, !tbaa !9
  %246 = getelementptr inbounds float, ptr %244, i64 %245
  %247 = load float, ptr %246, align 4, !tbaa !12
  store float %247, ptr %27, align 4, !tbaa !12
  %248 = load float, ptr %27, align 4, !tbaa !12
  %249 = fcmp oge float %248, 0.000000e+00
  br i1 %249, label %250, label %252

250:                                              ; preds = %239
  %251 = load float, ptr %27, align 4, !tbaa !12
  br label %255

252:                                              ; preds = %239
  %253 = load float, ptr %27, align 4, !tbaa !12
  %254 = fneg float %253
  br label %255

255:                                              ; preds = %252, %250
  %256 = phi float [ %251, %250 ], [ %254, %252 ]
  %257 = fpext float %256 to double
  %258 = fptrunc double %257 to float
  store float %258, ptr %35, align 4, !tbaa !12
  %259 = load float, ptr %31, align 4, !tbaa !12
  %260 = load float, ptr %35, align 4, !tbaa !12
  %261 = load float, ptr %39, align 4, !tbaa !12
  %262 = fmul float %260, %261
  %263 = fcmp olt float %259, %262
  br i1 %263, label %267, label %264

264:                                              ; preds = %255
  %265 = load float, ptr %31, align 4, !tbaa !12
  %266 = fcmp oeq float %265, 0.000000e+00
  br i1 %266, label %267, label %268

267:                                              ; preds = %264, %255
  br label %285

268:                                              ; preds = %264
  %269 = load ptr, ptr %16, align 8, !tbaa !5
  %270 = load ptr, ptr %21, align 8, !tbaa !5
  %271 = getelementptr inbounds float, ptr %270, i64 1
  %272 = call i32 @srscl_(ptr noundef %269, ptr noundef %31, ptr noundef %271, ptr noundef @c__1)
  br label %273

273:                                              ; preds = %268, %235
  br label %176

274:                                              ; preds = %176
  %275 = load float, ptr %36, align 4, !tbaa !12
  %276 = fcmp une float %275, 0.000000e+00
  br i1 %276, label %277, label %283

277:                                              ; preds = %274
  %278 = load float, ptr %33, align 4, !tbaa !12
  %279 = fdiv float 1.000000e+00, %278
  %280 = load float, ptr %36, align 4, !tbaa !12
  %281 = fdiv float %279, %280
  %282 = load ptr, ptr %20, align 8, !tbaa !5
  store float %281, ptr %282, align 4, !tbaa !12
  br label %283

283:                                              ; preds = %277, %274
  br label %284

284:                                              ; preds = %283, %148
  br label %285

285:                                              ; preds = %284, %267
  store i32 0, ptr %12, align 4
  store i32 1, ptr %41, align 4
  br label %286

286:                                              ; preds = %285, %136, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 24, 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 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  %287 = load i32, ptr %12, align 4
  ret i32 %287
}

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

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

declare i32 @slatbs_(ptr noundef, 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 [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = 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 @stbcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef writeonly %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = alloca i64, align 8
  %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 %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #3
  %18 = getelementptr inbounds i8, ptr %8, i64 -4
  store i64 0, ptr %10, align 8, !tbaa !5
  %19 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #3
  %20 = load i8, ptr %0, align 1, !tbaa !9
  %21 = icmp eq i8 %20, 49
  br i1 %21, label %.thread, label %23

.thread:                                          ; preds = %11
  %22 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br label %28

23:                                               ; preds = %11
  %24 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
  %.not104 = icmp eq i64 %24, 0
  %25 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br i1 %.not104, label %26, label %28

26:                                               ; preds = %23
  %27 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.3) #3
  %.not = icmp eq i64 %27, 0
  br i1 %.not, label %.thread102.sink.split, label %28

28:                                               ; preds = %.thread, %26, %23
  %29 = phi i64 [ %22, %.thread ], [ %25, %26 ], [ %25, %23 ]
  %. = phi i64 [ 1, %.thread ], [ 2, %26 ], [ 1, %23 ]
  %.not93 = icmp eq i64 %19, 0
  br i1 %.not93, label %30, label %32

30:                                               ; preds = %28
  %31 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #3
  %.not94 = icmp eq i64 %31, 0
  br i1 %.not94, label %.thread102.sink.split, label %32

32:                                               ; preds = %30, %28
  %.not95 = icmp eq i64 %29, 0
  br i1 %.not95, label %33, label %35

33:                                               ; preds = %32
  %34 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #3
  %.not96 = icmp eq i64 %34, 0
  br i1 %.not96, label %.thread102.sink.split, label %35

35:                                               ; preds = %33, %32
  %36 = load i64, ptr %3, align 8, !tbaa !5
  %37 = icmp slt i64 %36, 0
  br i1 %37, label %.thread102.sink.split, label %38

38:                                               ; preds = %35
  %39 = load i64, ptr %4, align 8, !tbaa !5
  %40 = icmp slt i64 %39, 0
  br i1 %40, label %.thread102.sink.split, label %41

41:                                               ; preds = %38
  %42 = load i64, ptr %6, align 8, !tbaa !5
  %.not97 = icmp sgt i64 %42, %39
  br i1 %.not97, label %43, label %.thread102.sink.split

43:                                               ; preds = %41
  %.pr = load i64, ptr %10, align 8, !tbaa !5
  %.not98 = icmp eq i64 %.pr, 0
  br i1 %.not98, label %47, label %.thread102

.thread102.sink.split:                            ; preds = %41, %38, %35, %33, %30, %26
  %.sink = phi i64 [ -1, %26 ], [ -2, %30 ], [ -3, %33 ], [ -4, %35 ], [ -5, %38 ], [ -7, %41 ]
  store i64 %.sink, ptr %10, align 8, !tbaa !5
  br label %.thread102

.thread102:                                       ; preds = %.thread102.sink.split, %43
  %44 = phi i64 [ %.pr, %43 ], [ %.sink, %.thread102.sink.split ]
  %45 = sub nsw i64 0, %44
  store i64 %45, ptr %12, align 8, !tbaa !5
  %46 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %12) #3
  br label %.loopexit

47:                                               ; preds = %43
  %48 = icmp eq i64 %36, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  store float 1.000000e+00, ptr %7, align 4, !tbaa !10
  br label %.loopexit

50:                                               ; preds = %47
  store float 0.000000e+00, ptr %7, align 4, !tbaa !10
  %51 = tail call double @slamch_(ptr noundef nonnull @.str.6) #3
  %52 = load i64, ptr %3, align 8, !tbaa !5
  %53 = icmp slt i64 %52, 2
  %54 = uitofp nneg i64 %52 to float
  %55 = fpext float %54 to double
  %56 = select i1 %53, double 1.000000e+00, double %55
  %57 = fmul double %51, %56
  %58 = fptrunc double %57 to float
  %59 = tail call double @slantb_(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %8) #3
  %60 = fptrunc double %59 to float
  %61 = fcmp ogt float %60, 0.000000e+00
  br i1 %61, label %62, label %.loopexit

62:                                               ; preds = %50
  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
  %63 = load i64, ptr %3, align 8, !tbaa !5
  %64 = getelementptr float, ptr %8, i64 %63
  %65 = call i32 @slacn2_(ptr noundef nonnull %3, ptr noundef %64, ptr noundef %8, ptr noundef %9, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #3
  %66 = load i64, ptr %13, align 8, !tbaa !5
  %.not99105 = icmp eq i64 %66, 0
  br i1 %.not99105, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %62, %87
  %67 = phi i64 [ %91, %87 ], [ %66, %62 ]
  %68 = icmp eq i64 %67, %.
  %69 = load i64, ptr %3, align 8, !tbaa !5
  %.idx100 = shl i64 %69, 3
  %70 = getelementptr i8, ptr %8, i64 %.idx100
  %.str.7..str.8 = select i1 %68, ptr @.str.7, ptr @.str.8
  %71 = call i32 @slatbs_(ptr noundef %1, ptr noundef nonnull %.str.7..str.8, ptr noundef %2, ptr noundef nonnull %17, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %8, ptr noundef nonnull %14, ptr noundef %70, ptr noundef nonnull %10) #3
  store i8 89, ptr %17, align 1, !tbaa !9
  %72 = load float, ptr %14, align 4, !tbaa !10
  %73 = fcmp une float %72, 1.000000e+00
  br i1 %73, label %74, label %87

74:                                               ; preds = %.lr.ph
  %75 = call i64 @f2c_isamax(ptr noundef nonnull %3, ptr noundef %8, ptr noundef nonnull @c__1) #3
  %76 = getelementptr inbounds float, ptr %18, i64 %75
  %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 = load float, ptr %14, align 4
  %82 = fmul float %80, %58
  %83 = fcmp olt float %81, %82
  %84 = fcmp oeq float %81, 0.000000e+00
  %or.cond = or i1 %84, %83
  br i1 %or.cond, label %.loopexit, label %85

85:                                               ; preds = %74
  %86 = call i32 @srscl_(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull %8, ptr noundef nonnull @c__1) #3
  br label %87

87:                                               ; preds = %85, %.lr.ph
  %88 = load i64, ptr %3, align 8, !tbaa !5
  %89 = getelementptr float, ptr %8, i64 %88
  %90 = call i32 @slacn2_(ptr noundef nonnull %3, ptr noundef %89, ptr noundef %8, ptr noundef %9, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #3
  %91 = load i64, ptr %13, align 8, !tbaa !5
  %.not99 = icmp eq i64 %91, 0
  br i1 %.not99, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %87, %62
  %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, %60
  %96 = fdiv float %95, %92
  store float %96, ptr %7, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %74, %._crit_edge, %94, %50, %49, %.thread102
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  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 double @slantb_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 @slatbs_(ptr noundef, 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

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 = { 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,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass