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

; 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 [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@c__1 = external hidden global i64, align 8

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

54:                                               ; preds = %10
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = call i64 @lsame_(ptr noundef %55, ptr noundef @.str.1)
  %57 = icmp ne i64 %56, 0
  br i1 %57, label %60, label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -1, ptr %59, align 8, !tbaa !9
  br label %91

60:                                               ; preds = %54, %10
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = icmp slt i64 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %60
  %65 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -2, ptr %65, align 8, !tbaa !9
  br label %90

66:                                               ; preds = %60
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = icmp slt i64 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %66
  %71 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -3, ptr %71, align 8, !tbaa !9
  br label %89

72:                                               ; preds = %66
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = add nsw i64 %76, 1
  %78 = icmp slt i64 %74, %77
  br i1 %78, label %79, label %81

79:                                               ; preds = %72
  %80 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -5, ptr %80, align 8, !tbaa !9
  br label %88

81:                                               ; preds = %72
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = load float, ptr %82, align 4, !tbaa !11
  %84 = fcmp olt float %83, 0.000000e+00
  br i1 %84, label %85, label %87

85:                                               ; preds = %81
  %86 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -6, ptr %86, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %85, %81
  br label %88

88:                                               ; preds = %87, %79
  br label %89

89:                                               ; preds = %88, %70
  br label %90

90:                                               ; preds = %89, %64
  br label %91

91:                                               ; preds = %90, %58
  %92 = load ptr, ptr %21, align 8, !tbaa !5
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = icmp ne i64 %93, 0
  br i1 %94, label %95, label %100

95:                                               ; preds = %91
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = sub nsw i64 0, %97
  store i64 %98, ptr %24, align 8, !tbaa !9
  %99 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %24)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %36, align 4
  br label %260

100:                                              ; preds = %91
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  store float 0.000000e+00, ptr %101, align 4, !tbaa !11
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load i64, ptr %102, align 8, !tbaa !9
  %104 = icmp eq i64 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %100
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  store float 1.000000e+00, ptr %106, align 4, !tbaa !11
  store i32 0, ptr %11, align 4
  store i32 1, ptr %36, align 4
  br label %260

107:                                              ; preds = %100
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = load float, ptr %108, align 4, !tbaa !11
  %110 = fcmp oeq float %109, 0.000000e+00
  br i1 %110, label %111, label %112

111:                                              ; preds = %107
  store i32 0, ptr %11, align 4
  store i32 1, ptr %36, align 4
  br label %260

112:                                              ; preds = %107
  br label %113

113:                                              ; preds = %112
  %114 = call double @slamch_(ptr noundef @.str.3)
  %115 = fptrunc double %114 to float
  store float %115, ptr %35, align 4, !tbaa !11
  store i64 0, ptr %27, align 8, !tbaa !9
  %116 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 78, ptr %116, align 1, !tbaa !13
  br label %117

117:                                              ; preds = %247, %113
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load ptr, ptr %19, align 8, !tbaa !5
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = add nsw i64 %121, 1
  %123 = getelementptr inbounds float, ptr %119, i64 %122
  %124 = load ptr, ptr %19, align 8, !tbaa !5
  %125 = getelementptr inbounds float, ptr %124, i64 1
  %126 = load ptr, ptr %20, align 8, !tbaa !5
  %127 = getelementptr inbounds i64, ptr %126, i64 1
  %128 = getelementptr inbounds [3 x i64], ptr %29, i64 0, i64 0
  %129 = call i32 @slacn2_(ptr noundef %118, ptr noundef %123, ptr noundef %125, ptr noundef %127, ptr noundef %33, ptr noundef %27, ptr noundef %128)
  %130 = load i64, ptr %27, align 8, !tbaa !9
  %131 = icmp ne i64 %130, 0
  br i1 %131, label %132, label %248

132:                                              ; preds = %117
  %133 = load i64, ptr %30, align 8, !tbaa !9
  %134 = icmp ne i64 %133, 0
  br i1 %134, label %135, label %171

135:                                              ; preds = %132
  %136 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = load i64, ptr %23, align 8, !tbaa !9
  %141 = getelementptr inbounds float, ptr %139, i64 %140
  %142 = load ptr, ptr %16, align 8, !tbaa !5
  %143 = load ptr, ptr %19, align 8, !tbaa !5
  %144 = getelementptr inbounds float, ptr %143, i64 1
  %145 = load ptr, ptr %19, align 8, !tbaa !5
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = shl i64 %147, 1
  %149 = add nsw i64 %148, 1
  %150 = getelementptr inbounds float, ptr %145, i64 %149
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = call i32 @slatbs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %141, ptr noundef %142, ptr noundef %144, ptr noundef %31, ptr noundef %150, ptr noundef %151)
  %153 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 89, ptr %153, align 1, !tbaa !13
  %154 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  %158 = load i64, ptr %23, align 8, !tbaa !9
  %159 = getelementptr inbounds float, ptr %157, i64 %158
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = load ptr, ptr %19, align 8, !tbaa !5
  %162 = getelementptr inbounds float, ptr %161, i64 1
  %163 = load ptr, ptr %19, align 8, !tbaa !5
  %164 = load ptr, ptr %13, align 8, !tbaa !5
  %165 = load i64, ptr %164, align 8, !tbaa !9
  %166 = shl i64 %165, 1
  %167 = add nsw i64 %166, 1
  %168 = getelementptr inbounds float, ptr %163, i64 %167
  %169 = load ptr, ptr %21, align 8, !tbaa !5
  %170 = call i32 @slatbs_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %159, ptr noundef %160, ptr noundef %162, ptr noundef %32, ptr noundef %168, ptr noundef %169)
  br label %207

171:                                              ; preds = %132
  %172 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  %174 = load ptr, ptr %14, align 8, !tbaa !5
  %175 = load ptr, ptr %15, align 8, !tbaa !5
  %176 = load i64, ptr %23, align 8, !tbaa !9
  %177 = getelementptr inbounds float, ptr %175, i64 %176
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = load ptr, ptr %19, align 8, !tbaa !5
  %180 = getelementptr inbounds float, ptr %179, i64 1
  %181 = load ptr, ptr %19, align 8, !tbaa !5
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = load i64, ptr %182, align 8, !tbaa !9
  %184 = shl i64 %183, 1
  %185 = add nsw i64 %184, 1
  %186 = getelementptr inbounds float, ptr %181, i64 %185
  %187 = load ptr, ptr %21, align 8, !tbaa !5
  %188 = call i32 @slatbs_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %172, ptr noundef %173, ptr noundef %174, ptr noundef %177, ptr noundef %178, ptr noundef %180, ptr noundef %31, ptr noundef %186, ptr noundef %187)
  %189 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 89, ptr %189, align 1, !tbaa !13
  %190 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  %193 = load ptr, ptr %15, align 8, !tbaa !5
  %194 = load i64, ptr %23, align 8, !tbaa !9
  %195 = getelementptr inbounds float, ptr %193, i64 %194
  %196 = load ptr, ptr %16, align 8, !tbaa !5
  %197 = load ptr, ptr %19, align 8, !tbaa !5
  %198 = getelementptr inbounds float, ptr %197, i64 1
  %199 = load ptr, ptr %19, align 8, !tbaa !5
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = load i64, ptr %200, align 8, !tbaa !9
  %202 = shl i64 %201, 1
  %203 = add nsw i64 %202, 1
  %204 = getelementptr inbounds float, ptr %199, i64 %203
  %205 = load ptr, ptr %21, align 8, !tbaa !5
  %206 = call i32 @slatbs_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %190, ptr noundef %191, ptr noundef %192, ptr noundef %195, ptr noundef %196, ptr noundef %198, ptr noundef %32, ptr noundef %204, ptr noundef %205)
  br label %207

207:                                              ; preds = %171, %135
  %208 = load float, ptr %31, align 4, !tbaa !11
  %209 = load float, ptr %32, align 4, !tbaa !11
  %210 = fmul float %208, %209
  store float %210, ptr %28, align 4, !tbaa !11
  %211 = load float, ptr %28, align 4, !tbaa !11
  %212 = fcmp une float %211, 1.000000e+00
  br i1 %212, label %213, label %247

213:                                              ; preds = %207
  %214 = load ptr, ptr %13, align 8, !tbaa !5
  %215 = load ptr, ptr %19, align 8, !tbaa !5
  %216 = getelementptr inbounds float, ptr %215, i64 1
  %217 = call i64 @f2c_isamax(ptr noundef %214, ptr noundef %216, ptr noundef @c__1)
  store i64 %217, ptr %26, align 8, !tbaa !9
  %218 = load float, ptr %28, align 4, !tbaa !11
  %219 = fpext float %218 to double
  %220 = load ptr, ptr %19, align 8, !tbaa !5
  %221 = load i64, ptr %26, align 8, !tbaa !9
  %222 = getelementptr inbounds float, ptr %220, i64 %221
  %223 = load float, ptr %222, align 4, !tbaa !11
  store float %223, ptr %25, align 4, !tbaa !11
  %224 = load float, ptr %25, align 4, !tbaa !11
  %225 = fcmp oge float %224, 0.000000e+00
  br i1 %225, label %226, label %228

226:                                              ; preds = %213
  %227 = load float, ptr %25, align 4, !tbaa !11
  br label %231

228:                                              ; preds = %213
  %229 = load float, ptr %25, align 4, !tbaa !11
  %230 = fneg float %229
  br label %231

231:                                              ; preds = %228, %226
  %232 = phi float [ %227, %226 ], [ %230, %228 ]
  %233 = fpext float %232 to double
  %234 = load float, ptr %35, align 4, !tbaa !11
  %235 = fpext float %234 to double
  %236 = fmul double %233, %235
  %237 = fcmp olt double %219, %236
  br i1 %237, label %241, label %238

238:                                              ; preds = %231
  %239 = load float, ptr %28, align 4, !tbaa !11
  %240 = fcmp oeq float %239, 0.000000e+00
  br i1 %240, label %241, label %242

241:                                              ; preds = %238, %231
  br label %259

242:                                              ; preds = %238
  %243 = load ptr, ptr %13, align 8, !tbaa !5
  %244 = load ptr, ptr %19, align 8, !tbaa !5
  %245 = getelementptr inbounds float, ptr %244, i64 1
  %246 = call i32 @srscl_(ptr noundef %243, ptr noundef %28, ptr noundef %245, ptr noundef @c__1)
  br label %247

247:                                              ; preds = %242, %207
  br label %117

248:                                              ; preds = %117
  %249 = load float, ptr %33, align 4, !tbaa !11
  %250 = fcmp une float %249, 0.000000e+00
  br i1 %250, label %251, label %258

251:                                              ; preds = %248
  %252 = load float, ptr %33, align 4, !tbaa !11
  %253 = fdiv float 1.000000e+00, %252
  %254 = load ptr, ptr %17, align 8, !tbaa !5
  %255 = load float, ptr %254, align 4, !tbaa !11
  %256 = fdiv float %253, %255
  %257 = load ptr, ptr %18, align 8, !tbaa !5
  store float %256, ptr %257, align 4, !tbaa !11
  br label %258

258:                                              ; preds = %251, %248
  br label %259

259:                                              ; preds = %258, %241
  store i32 0, ptr %11, align 4
  store i32 1, ptr %36, align 4
  br label %260

260:                                              ; preds = %259, %111, %105, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 24, 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 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %261 = load i32, ptr %11, align 4
  ret i32 %261
}

; 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 @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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!7, !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 [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @spbcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr nocapture noundef writeonly %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #0 {
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca float, align 4
  %14 = alloca [3 x i64], align 16
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #3
  %19 = getelementptr inbounds i8, ptr %7, i64 -4
  store i64 0, ptr %9, align 8, !tbaa !5
  %20 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %.not = icmp eq i64 %20, 0
  br i1 %.not, label %21, label %23

21:                                               ; preds = %10
  %22 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not83 = icmp eq i64 %22, 0
  br i1 %.not83, label %.thread.sink.split, label %23

23:                                               ; preds = %21, %10
  %24 = load i64, ptr %1, align 8, !tbaa !5
  %25 = icmp slt i64 %24, 0
  br i1 %25, label %.thread.sink.split, label %26

26:                                               ; preds = %23
  %27 = load i64, ptr %2, align 8, !tbaa !5
  %28 = icmp slt i64 %27, 0
  br i1 %28, label %.thread.sink.split, label %29

29:                                               ; preds = %26
  %30 = load i64, ptr %4, align 8, !tbaa !5
  %.not84 = icmp sgt i64 %30, %27
  br i1 %.not84, label %31, label %.thread.sink.split

31:                                               ; preds = %29
  %32 = load float, ptr %5, align 4, !tbaa !9
  %33 = fcmp olt float %32, 0.000000e+00
  br i1 %33, label %.thread.sink.split, label %34

34:                                               ; preds = %31
  %.pr = load i64, ptr %9, align 8, !tbaa !5
  %.not85 = icmp eq i64 %.pr, 0
  br i1 %.not85, label %38, label %.thread

.thread.sink.split:                               ; preds = %31, %29, %26, %23, %21
  %.sink = phi i64 [ -1, %21 ], [ -2, %23 ], [ -3, %26 ], [ -5, %29 ], [ -6, %31 ]
  store i64 %.sink, ptr %9, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %34
  %35 = phi i64 [ %.pr, %34 ], [ %.sink, %.thread.sink.split ]
  %36 = sub nsw i64 0, %35
  store i64 %36, ptr %11, align 8, !tbaa !5
  %37 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %11) #3
  br label %.loopexit

38:                                               ; preds = %34
  store float 0.000000e+00, ptr %6, align 4, !tbaa !9
  %39 = icmp eq i64 %24, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  store float 1.000000e+00, ptr %6, align 4, !tbaa !9
  br label %.loopexit

41:                                               ; preds = %38
  %42 = load float, ptr %5, align 4, !tbaa !9
  %43 = fcmp oeq float %42, 0.000000e+00
  br i1 %43, label %.loopexit, label %44

44:                                               ; preds = %41
  %45 = tail call double @slamch_(ptr noundef nonnull @.str.3) #3
  store i64 0, ptr %12, align 8, !tbaa !5
  store i8 78, ptr %18, align 1, !tbaa !11
  %46 = load i64, ptr %1, align 8, !tbaa !5
  %47 = getelementptr float, ptr %7, i64 %46
  %48 = call i32 @slacn2_(ptr noundef nonnull %1, ptr noundef %47, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %49 = load i64, ptr %12, align 8, !tbaa !5
  %.not8691 = icmp eq i64 %49, 0
  br i1 %.not8691, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %44
  %50 = fptrunc double %45 to float
  %51 = fpext float %50 to double
  br i1 %.not, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %77
  %52 = load i64, ptr %1, align 8, !tbaa !5
  %.idx.us = shl i64 %52, 3
  %53 = getelementptr i8, ptr %7, i64 %.idx.us
  %54 = call i32 @slatbs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %15, ptr noundef %53, ptr noundef nonnull %9) #3
  store i8 89, ptr %18, align 1, !tbaa !11
  %55 = load i64, ptr %1, align 8, !tbaa !5
  %.idx87.us = shl i64 %55, 3
  %56 = getelementptr i8, ptr %7, i64 %.idx87.us
  %57 = call i32 @slatbs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %16, ptr noundef %56, ptr noundef nonnull %9) #3
  %58 = load float, ptr %15, align 4, !tbaa !9
  %59 = load float, ptr %16, align 4, !tbaa !9
  %60 = fmul float %58, %59
  store float %60, ptr %13, align 4, !tbaa !9
  %61 = fcmp une float %60, 1.000000e+00
  br i1 %61, label %62, label %77

62:                                               ; preds = %.lr.ph.split.us
  %63 = call i64 @f2c_isamax(ptr noundef nonnull %1, ptr noundef %7, ptr noundef nonnull @c__1) #3
  %64 = load float, ptr %13, align 4
  %65 = fpext float %64 to double
  %66 = getelementptr inbounds float, ptr %19, i64 %63
  %67 = load float, ptr %66, align 4, !tbaa !9
  %68 = fcmp oge float %67, 0.000000e+00
  %69 = fneg float %67
  %70 = select i1 %68, float %67, float %69
  %71 = fpext float %70 to double
  %72 = fmul double %51, %71
  %73 = fcmp ogt double %72, %65
  %74 = fcmp oeq float %64, 0.000000e+00
  %or.cond.us = or i1 %74, %73
  br i1 %or.cond.us, label %.loopexit, label %75

75:                                               ; preds = %62
  %76 = call i32 @srscl_(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #3
  br label %77

77:                                               ; preds = %75, %.lr.ph.split.us
  %78 = load i64, ptr %1, align 8, !tbaa !5
  %79 = getelementptr float, ptr %7, i64 %78
  %80 = call i32 @slacn2_(ptr noundef nonnull %1, ptr noundef %79, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %81 = load i64, ptr %12, align 8, !tbaa !5
  %.not86.us = icmp eq i64 %81, 0
  br i1 %.not86.us, label %._crit_edge, label %.lr.ph.split.us

.lr.ph.split:                                     ; preds = %.lr.ph, %107
  %82 = load i64, ptr %1, align 8, !tbaa !5
  %.idx88 = shl i64 %82, 3
  %83 = getelementptr i8, ptr %7, i64 %.idx88
  %84 = call i32 @slatbs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %15, ptr noundef %83, ptr noundef nonnull %9) #3
  store i8 89, ptr %18, align 1, !tbaa !11
  %85 = load i64, ptr %1, align 8, !tbaa !5
  %.idx89 = shl i64 %85, 3
  %86 = getelementptr i8, ptr %7, i64 %.idx89
  %87 = call i32 @slatbs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %16, ptr noundef %86, ptr noundef nonnull %9) #3
  %88 = load float, ptr %15, align 4, !tbaa !9
  %89 = load float, ptr %16, align 4, !tbaa !9
  %90 = fmul float %88, %89
  store float %90, ptr %13, align 4, !tbaa !9
  %91 = fcmp une float %90, 1.000000e+00
  br i1 %91, label %92, label %107

92:                                               ; preds = %.lr.ph.split
  %93 = call i64 @f2c_isamax(ptr noundef nonnull %1, ptr noundef %7, ptr noundef nonnull @c__1) #3
  %94 = load float, ptr %13, align 4
  %95 = fpext float %94 to double
  %96 = getelementptr inbounds float, ptr %19, i64 %93
  %97 = load float, ptr %96, align 4, !tbaa !9
  %98 = fcmp oge float %97, 0.000000e+00
  %99 = fneg float %97
  %100 = select i1 %98, float %97, float %99
  %101 = fpext float %100 to double
  %102 = fmul double %51, %101
  %103 = fcmp ogt double %102, %95
  %104 = fcmp oeq float %94, 0.000000e+00
  %or.cond = or i1 %104, %103
  br i1 %or.cond, label %.loopexit, label %105

105:                                              ; preds = %92
  %106 = call i32 @srscl_(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #3
  br label %107

107:                                              ; preds = %105, %.lr.ph.split
  %108 = load i64, ptr %1, align 8, !tbaa !5
  %109 = getelementptr float, ptr %7, i64 %108
  %110 = call i32 @slacn2_(ptr noundef nonnull %1, ptr noundef %109, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #3
  %111 = load i64, ptr %12, align 8, !tbaa !5
  %.not86 = icmp eq i64 %111, 0
  br i1 %.not86, label %._crit_edge, label %.lr.ph.split

._crit_edge:                                      ; preds = %107, %77, %44
  %112 = load float, ptr %17, align 4, !tbaa !9
  %113 = fcmp une float %112, 0.000000e+00
  br i1 %113, label %114, label %.loopexit

114:                                              ; preds = %._crit_edge
  %115 = fdiv float 1.000000e+00, %112
  %116 = load float, ptr %5, align 4, !tbaa !9
  %117 = fdiv float %115, %116
  store float %117, ptr %6, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %92, %62, %114, %._crit_edge, %41, %40, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #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 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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}


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