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

; 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
@c__1 = external hidden global i64, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @sptsvx_(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, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15) #0 {
  %17 = alloca i32, align 4
  %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 ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca float, align 4
  %40 = alloca i64, align 8
  %41 = alloca i32, align 4
  store ptr %0, ptr %18, align 8, !tbaa !5
  store ptr %1, ptr %19, align 8, !tbaa !5
  store ptr %2, ptr %20, align 8, !tbaa !5
  store ptr %3, ptr %21, align 8, !tbaa !5
  store ptr %4, ptr %22, align 8, !tbaa !5
  store ptr %5, ptr %23, align 8, !tbaa !5
  store ptr %6, ptr %24, align 8, !tbaa !5
  store ptr %7, ptr %25, align 8, !tbaa !5
  store ptr %8, ptr %26, align 8, !tbaa !5
  store ptr %9, ptr %27, align 8, !tbaa !5
  store ptr %10, ptr %28, align 8, !tbaa !5
  store ptr %11, ptr %29, align 8, !tbaa !5
  store ptr %12, ptr %30, align 8, !tbaa !5
  store ptr %13, ptr %31, align 8, !tbaa !5
  store ptr %14, ptr %32, align 8, !tbaa !5
  store ptr %15, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 8, 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 %21, align 8, !tbaa !5
  %43 = getelementptr inbounds float, ptr %42, i32 -1
  store ptr %43, ptr %21, align 8, !tbaa !5
  %44 = load ptr, ptr %22, align 8, !tbaa !5
  %45 = getelementptr inbounds float, ptr %44, i32 -1
  store ptr %45, ptr %22, align 8, !tbaa !5
  %46 = load ptr, ptr %23, align 8, !tbaa !5
  %47 = getelementptr inbounds float, ptr %46, i32 -1
  store ptr %47, ptr %23, align 8, !tbaa !5
  %48 = load ptr, ptr %24, align 8, !tbaa !5
  %49 = getelementptr inbounds float, ptr %48, i32 -1
  store ptr %49, ptr %24, align 8, !tbaa !5
  %50 = load ptr, ptr %26, align 8, !tbaa !5
  %51 = load i64, ptr %50, align 8, !tbaa !9
  store i64 %51, ptr %34, align 8, !tbaa !9
  %52 = load i64, ptr %34, align 8, !tbaa !9
  %53 = add nsw i64 1, %52
  store i64 %53, ptr %35, align 8, !tbaa !9
  %54 = load i64, ptr %35, align 8, !tbaa !9
  %55 = load ptr, ptr %25, align 8, !tbaa !5
  %56 = sub i64 0, %54
  %57 = getelementptr inbounds float, ptr %55, i64 %56
  store ptr %57, ptr %25, align 8, !tbaa !5
  %58 = load ptr, ptr %28, align 8, !tbaa !5
  %59 = load i64, ptr %58, align 8, !tbaa !9
  store i64 %59, ptr %36, align 8, !tbaa !9
  %60 = load i64, ptr %36, align 8, !tbaa !9
  %61 = add nsw i64 1, %60
  store i64 %61, ptr %37, align 8, !tbaa !9
  %62 = load i64, ptr %37, align 8, !tbaa !9
  %63 = load ptr, ptr %27, align 8, !tbaa !5
  %64 = sub i64 0, %62
  %65 = getelementptr inbounds float, ptr %63, i64 %64
  store ptr %65, ptr %27, align 8, !tbaa !5
  %66 = load ptr, ptr %30, align 8, !tbaa !5
  %67 = getelementptr inbounds float, ptr %66, i32 -1
  store ptr %67, ptr %30, align 8, !tbaa !5
  %68 = load ptr, ptr %31, align 8, !tbaa !5
  %69 = getelementptr inbounds float, ptr %68, i32 -1
  store ptr %69, ptr %31, align 8, !tbaa !5
  %70 = load ptr, ptr %32, align 8, !tbaa !5
  %71 = getelementptr inbounds float, ptr %70, i32 -1
  store ptr %71, ptr %32, align 8, !tbaa !5
  %72 = load ptr, ptr %33, align 8, !tbaa !5
  store i64 0, ptr %72, align 8, !tbaa !9
  %73 = load ptr, ptr %18, align 8, !tbaa !5
  %74 = call i64 @lsame_(ptr noundef %73, ptr noundef @.str)
  store i64 %74, ptr %40, align 8, !tbaa !9
  %75 = load i64, ptr %40, align 8, !tbaa !9
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %83, label %77

77:                                               ; preds = %16
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = call i64 @lsame_(ptr noundef %78, ptr noundef @.str.1)
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %83, label %81

81:                                               ; preds = %77
  %82 = load ptr, ptr %33, align 8, !tbaa !5
  store i64 -1, ptr %82, align 8, !tbaa !9
  br label %129

83:                                               ; preds = %77, %16
  %84 = load ptr, ptr %19, align 8, !tbaa !5
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = icmp slt i64 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %83
  %88 = load ptr, ptr %33, align 8, !tbaa !5
  store i64 -2, ptr %88, align 8, !tbaa !9
  br label %128

89:                                               ; preds = %83
  %90 = load ptr, ptr %20, align 8, !tbaa !5
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = icmp slt i64 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %89
  %94 = load ptr, ptr %33, align 8, !tbaa !5
  store i64 -3, ptr %94, align 8, !tbaa !9
  br label %127

95:                                               ; preds = %89
  %96 = load ptr, ptr %26, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  %99 = load i64, ptr %98, align 8, !tbaa !9
  %100 = icmp sge i64 1, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %95
  br label %105

102:                                              ; preds = %95
  %103 = load ptr, ptr %19, align 8, !tbaa !5
  %104 = load i64, ptr %103, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %102, %101
  %106 = phi i64 [ 1, %101 ], [ %104, %102 ]
  %107 = icmp slt i64 %97, %106
  br i1 %107, label %108, label %110

108:                                              ; preds = %105
  %109 = load ptr, ptr %33, align 8, !tbaa !5
  store i64 -9, ptr %109, align 8, !tbaa !9
  br label %126

110:                                              ; preds = %105
  %111 = load ptr, ptr %28, align 8, !tbaa !5
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = load ptr, ptr %19, align 8, !tbaa !5
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = icmp sge i64 1, %114
  br i1 %115, label %116, label %117

116:                                              ; preds = %110
  br label %120

117:                                              ; preds = %110
  %118 = load ptr, ptr %19, align 8, !tbaa !5
  %119 = load i64, ptr %118, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %117, %116
  %121 = phi i64 [ 1, %116 ], [ %119, %117 ]
  %122 = icmp slt i64 %112, %121
  br i1 %122, label %123, label %125

123:                                              ; preds = %120
  %124 = load ptr, ptr %33, align 8, !tbaa !5
  store i64 -11, ptr %124, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %123, %120
  br label %126

126:                                              ; preds = %125, %108
  br label %127

127:                                              ; preds = %126, %93
  br label %128

128:                                              ; preds = %127, %87
  br label %129

129:                                              ; preds = %128, %81
  %130 = load ptr, ptr %33, align 8, !tbaa !5
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %132 = icmp ne i64 %131, 0
  br i1 %132, label %133, label %138

133:                                              ; preds = %129
  %134 = load ptr, ptr %33, align 8, !tbaa !5
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = sub nsw i64 0, %135
  store i64 %136, ptr %38, align 8, !tbaa !9
  %137 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %38)
  store i32 0, ptr %17, align 4
  store i32 1, ptr %41, align 4
  br label %252

138:                                              ; preds = %129
  %139 = load i64, ptr %40, align 8, !tbaa !9
  %140 = icmp ne i64 %139, 0
  br i1 %140, label %141, label %174

141:                                              ; preds = %138
  %142 = load ptr, ptr %19, align 8, !tbaa !5
  %143 = load ptr, ptr %21, align 8, !tbaa !5
  %144 = getelementptr inbounds float, ptr %143, i64 1
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  %146 = getelementptr inbounds float, ptr %145, i64 1
  %147 = call i32 @f2c_scopy(ptr noundef %142, ptr noundef %144, ptr noundef @c__1, ptr noundef %146, ptr noundef @c__1)
  %148 = load ptr, ptr %19, align 8, !tbaa !5
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %150 = icmp sgt i64 %149, 1
  br i1 %150, label %151, label %160

151:                                              ; preds = %141
  %152 = load ptr, ptr %19, align 8, !tbaa !5
  %153 = load i64, ptr %152, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 1
  store i64 %154, ptr %38, align 8, !tbaa !9
  %155 = load ptr, ptr %22, align 8, !tbaa !5
  %156 = getelementptr inbounds float, ptr %155, i64 1
  %157 = load ptr, ptr %24, align 8, !tbaa !5
  %158 = getelementptr inbounds float, ptr %157, i64 1
  %159 = call i32 @f2c_scopy(ptr noundef %38, ptr noundef %156, ptr noundef @c__1, ptr noundef %158, ptr noundef @c__1)
  br label %160

160:                                              ; preds = %151, %141
  %161 = load ptr, ptr %19, align 8, !tbaa !5
  %162 = load ptr, ptr %23, align 8, !tbaa !5
  %163 = getelementptr inbounds float, ptr %162, i64 1
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = getelementptr inbounds float, ptr %164, i64 1
  %166 = load ptr, ptr %33, align 8, !tbaa !5
  %167 = call i32 @spttrf_(ptr noundef %161, ptr noundef %163, ptr noundef %165, ptr noundef %166)
  %168 = load ptr, ptr %33, align 8, !tbaa !5
  %169 = load i64, ptr %168, align 8, !tbaa !9
  %170 = icmp sgt i64 %169, 0
  br i1 %170, label %171, label %173

171:                                              ; preds = %160
  %172 = load ptr, ptr %29, align 8, !tbaa !5
  store float 0.000000e+00, ptr %172, align 4, !tbaa !11
  store i32 0, ptr %17, align 4
  store i32 1, ptr %41, align 4
  br label %252

173:                                              ; preds = %160
  br label %174

174:                                              ; preds = %173, %138
  %175 = load ptr, ptr %19, align 8, !tbaa !5
  %176 = load ptr, ptr %21, align 8, !tbaa !5
  %177 = getelementptr inbounds float, ptr %176, i64 1
  %178 = load ptr, ptr %22, align 8, !tbaa !5
  %179 = getelementptr inbounds float, ptr %178, i64 1
  %180 = call double @slanst_(ptr noundef @.str.3, ptr noundef %175, ptr noundef %177, ptr noundef %179)
  %181 = fptrunc double %180 to float
  store float %181, ptr %39, align 4, !tbaa !11
  %182 = load ptr, ptr %19, align 8, !tbaa !5
  %183 = load ptr, ptr %23, align 8, !tbaa !5
  %184 = getelementptr inbounds float, ptr %183, i64 1
  %185 = load ptr, ptr %24, align 8, !tbaa !5
  %186 = getelementptr inbounds float, ptr %185, i64 1
  %187 = load ptr, ptr %29, align 8, !tbaa !5
  %188 = load ptr, ptr %32, align 8, !tbaa !5
  %189 = getelementptr inbounds float, ptr %188, i64 1
  %190 = load ptr, ptr %33, align 8, !tbaa !5
  %191 = call i32 @sptcon_(ptr noundef %182, ptr noundef %184, ptr noundef %186, ptr noundef %39, ptr noundef %187, ptr noundef %189, ptr noundef %190)
  %192 = load ptr, ptr %19, align 8, !tbaa !5
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = load ptr, ptr %25, align 8, !tbaa !5
  %195 = load i64, ptr %35, align 8, !tbaa !9
  %196 = getelementptr inbounds float, ptr %194, i64 %195
  %197 = load ptr, ptr %26, align 8, !tbaa !5
  %198 = load ptr, ptr %27, align 8, !tbaa !5
  %199 = load i64, ptr %37, align 8, !tbaa !9
  %200 = getelementptr inbounds float, ptr %198, i64 %199
  %201 = load ptr, ptr %28, align 8, !tbaa !5
  %202 = call i32 @slacpy_(ptr noundef @.str.4, ptr noundef %192, ptr noundef %193, ptr noundef %196, ptr noundef %197, ptr noundef %200, ptr noundef %201)
  %203 = load ptr, ptr %19, align 8, !tbaa !5
  %204 = load ptr, ptr %20, align 8, !tbaa !5
  %205 = load ptr, ptr %23, align 8, !tbaa !5
  %206 = getelementptr inbounds float, ptr %205, i64 1
  %207 = load ptr, ptr %24, align 8, !tbaa !5
  %208 = getelementptr inbounds float, ptr %207, i64 1
  %209 = load ptr, ptr %27, align 8, !tbaa !5
  %210 = load i64, ptr %37, align 8, !tbaa !9
  %211 = getelementptr inbounds float, ptr %209, i64 %210
  %212 = load ptr, ptr %28, align 8, !tbaa !5
  %213 = load ptr, ptr %33, align 8, !tbaa !5
  %214 = call i32 @spttrs_(ptr noundef %203, ptr noundef %204, ptr noundef %206, ptr noundef %208, ptr noundef %211, ptr noundef %212, ptr noundef %213)
  %215 = load ptr, ptr %19, align 8, !tbaa !5
  %216 = load ptr, ptr %20, align 8, !tbaa !5
  %217 = load ptr, ptr %21, align 8, !tbaa !5
  %218 = getelementptr inbounds float, ptr %217, i64 1
  %219 = load ptr, ptr %22, align 8, !tbaa !5
  %220 = getelementptr inbounds float, ptr %219, i64 1
  %221 = load ptr, ptr %23, align 8, !tbaa !5
  %222 = getelementptr inbounds float, ptr %221, i64 1
  %223 = load ptr, ptr %24, align 8, !tbaa !5
  %224 = getelementptr inbounds float, ptr %223, i64 1
  %225 = load ptr, ptr %25, align 8, !tbaa !5
  %226 = load i64, ptr %35, align 8, !tbaa !9
  %227 = getelementptr inbounds float, ptr %225, i64 %226
  %228 = load ptr, ptr %26, align 8, !tbaa !5
  %229 = load ptr, ptr %27, align 8, !tbaa !5
  %230 = load i64, ptr %37, align 8, !tbaa !9
  %231 = getelementptr inbounds float, ptr %229, i64 %230
  %232 = load ptr, ptr %28, align 8, !tbaa !5
  %233 = load ptr, ptr %30, align 8, !tbaa !5
  %234 = getelementptr inbounds float, ptr %233, i64 1
  %235 = load ptr, ptr %31, align 8, !tbaa !5
  %236 = getelementptr inbounds float, ptr %235, i64 1
  %237 = load ptr, ptr %32, align 8, !tbaa !5
  %238 = getelementptr inbounds float, ptr %237, i64 1
  %239 = load ptr, ptr %33, align 8, !tbaa !5
  %240 = call i32 @sptrfs_(ptr noundef %215, ptr noundef %216, ptr noundef %218, ptr noundef %220, ptr noundef %222, ptr noundef %224, ptr noundef %227, ptr noundef %228, ptr noundef %231, ptr noundef %232, ptr noundef %234, ptr noundef %236, ptr noundef %238, ptr noundef %239)
  %241 = load ptr, ptr %29, align 8, !tbaa !5
  %242 = load float, ptr %241, align 4, !tbaa !11
  %243 = fpext float %242 to double
  %244 = call double @slamch_(ptr noundef @.str.5)
  %245 = fcmp olt double %243, %244
  br i1 %245, label %246, label %251

246:                                              ; preds = %174
  %247 = load ptr, ptr %19, align 8, !tbaa !5
  %248 = load i64, ptr %247, align 8, !tbaa !9
  %249 = add nsw i64 %248, 1
  %250 = load ptr, ptr %33, align 8, !tbaa !5
  store i64 %249, ptr %250, align 8, !tbaa !9
  br label %251

251:                                              ; preds = %246, %174
  store i32 0, ptr %17, align 4
  store i32 1, ptr %41, align 4
  br label %252

252:                                              ; preds = %251, %171, %133
  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 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  %253 = load i32, ptr %17, align 4
  ret i32 %253
}

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

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

declare double @slanst_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

declare i32 @sptrfs_(ptr noundef, ptr noundef, 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 double @slamch_(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}


; 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
@c__1 = external hidden global i64, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @sptsvx_(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, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15) local_unnamed_addr #0 {
  %17 = alloca i64, align 8
  %18 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  store i64 0, ptr %15, align 8, !tbaa !5
  %19 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %19, 0
  br i1 %.not, label %20, label %22

20:                                               ; preds = %16
  %21 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not95 = icmp eq i64 %21, 0
  br i1 %.not95, label %.thread.sink.split, label %22

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

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

28:                                               ; preds = %25
  %29 = load i64, ptr %8, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %23, i64 1)
  %30 = icmp slt i64 %29, %spec.select
  br i1 %30, label %.thread.sink.split, label %31

31:                                               ; preds = %28
  %32 = load i64, ptr %10, align 8, !tbaa !5
  %33 = icmp slt i64 %32, %spec.select
  br i1 %33, label %.thread.sink.split, label %34

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

.thread.sink.split:                               ; preds = %31, %28, %25, %22, %20
  %.sink = phi i64 [ -1, %20 ], [ -2, %22 ], [ -3, %25 ], [ -9, %28 ], [ -11, %31 ]
  store i64 %.sink, ptr %15, 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 %17, align 8, !tbaa !5
  %37 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %17) #4
  br label %65

38:                                               ; preds = %34
  br i1 %.not, label %51, label %39

39:                                               ; preds = %38
  %40 = tail call i32 @f2c_scopy(ptr noundef nonnull %1, ptr noundef %3, ptr noundef nonnull @c__1, ptr noundef %5, ptr noundef nonnull @c__1) #4
  %41 = load i64, ptr %1, align 8, !tbaa !5
  %42 = icmp sgt i64 %41, 1
  br i1 %42, label %43, label %46

43:                                               ; preds = %39
  %44 = add nsw i64 %41, -1
  store i64 %44, ptr %17, align 8, !tbaa !5
  %45 = call i32 @f2c_scopy(ptr noundef nonnull %17, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  br label %46

46:                                               ; preds = %43, %39
  %47 = call i32 @spttrf_(ptr noundef nonnull %1, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15) #4
  %48 = load i64, ptr %15, align 8, !tbaa !5
  %49 = icmp sgt i64 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %46
  store float 0.000000e+00, ptr %11, align 4, !tbaa !9
  br label %65

51:                                               ; preds = %46, %38
  %52 = call double @slanst_(ptr noundef nonnull @.str.3, ptr noundef nonnull %1, ptr noundef %3, ptr noundef %4) #4
  %53 = fptrunc double %52 to float
  store float %53, ptr %18, align 4, !tbaa !9
  %54 = call i32 @sptcon_(ptr noundef nonnull %1, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %18, ptr noundef %11, ptr noundef %14, ptr noundef nonnull %15) #4
  %55 = call i32 @slacpy_(ptr noundef nonnull @.str.4, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %10) #4
  %56 = call i32 @spttrs_(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %10, ptr noundef nonnull %15) #4
  %57 = call i32 @sptrfs_(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %10, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef nonnull %15) #4
  %58 = load float, ptr %11, align 4, !tbaa !9
  %59 = fpext float %58 to double
  %60 = call double @slamch_(ptr noundef nonnull @.str.5) #4
  %61 = fcmp ogt double %60, %59
  br i1 %61, label %62, label %65

62:                                               ; preds = %51
  %63 = load i64, ptr %1, align 8, !tbaa !5
  %64 = add nsw i64 %63, 1
  store i64 %64, ptr %15, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %51, %62, %50, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #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 i32 @f2c_scopy(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @slanst_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @sptrfs_(ptr noundef, ptr noundef, 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 double @slamch_(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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass