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

; 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 @dptsvx_(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 double, align 8
  %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 8, 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 double, 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 double, 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 double, 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 double, 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 double, 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 double, 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 double, 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 double, 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 double, 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 %250

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 double, ptr %143, i64 1
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %145, i64 1
  %147 = call i32 @f2c_dcopy(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 double, ptr %155, i64 1
  %157 = load ptr, ptr %24, align 8, !tbaa !5
  %158 = getelementptr inbounds double, ptr %157, i64 1
  %159 = call i32 @f2c_dcopy(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 double, ptr %162, i64 1
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = getelementptr inbounds double, ptr %164, i64 1
  %166 = load ptr, ptr %33, align 8, !tbaa !5
  %167 = call i32 @dpttrf_(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 double 0.000000e+00, ptr %172, align 8, !tbaa !11
  store i32 0, ptr %17, align 4
  store i32 1, ptr %41, align 4
  br label %250

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 double, ptr %176, i64 1
  %178 = load ptr, ptr %22, align 8, !tbaa !5
  %179 = getelementptr inbounds double, ptr %178, i64 1
  %180 = call double @dlanst_(ptr noundef @.str.3, ptr noundef %175, ptr noundef %177, ptr noundef %179)
  store double %180, ptr %39, align 8, !tbaa !11
  %181 = load ptr, ptr %19, align 8, !tbaa !5
  %182 = load ptr, ptr %23, align 8, !tbaa !5
  %183 = getelementptr inbounds double, ptr %182, i64 1
  %184 = load ptr, ptr %24, align 8, !tbaa !5
  %185 = getelementptr inbounds double, ptr %184, i64 1
  %186 = load ptr, ptr %29, align 8, !tbaa !5
  %187 = load ptr, ptr %32, align 8, !tbaa !5
  %188 = getelementptr inbounds double, ptr %187, i64 1
  %189 = load ptr, ptr %33, align 8, !tbaa !5
  %190 = call i32 @dptcon_(ptr noundef %181, ptr noundef %183, ptr noundef %185, ptr noundef %39, ptr noundef %186, ptr noundef %188, ptr noundef %189)
  %191 = load ptr, ptr %19, align 8, !tbaa !5
  %192 = load ptr, ptr %20, align 8, !tbaa !5
  %193 = load ptr, ptr %25, align 8, !tbaa !5
  %194 = load i64, ptr %35, align 8, !tbaa !9
  %195 = getelementptr inbounds double, ptr %193, i64 %194
  %196 = load ptr, ptr %26, align 8, !tbaa !5
  %197 = load ptr, ptr %27, align 8, !tbaa !5
  %198 = load i64, ptr %37, align 8, !tbaa !9
  %199 = getelementptr inbounds double, ptr %197, i64 %198
  %200 = load ptr, ptr %28, align 8, !tbaa !5
  %201 = call i32 @dlacpy_(ptr noundef @.str.4, ptr noundef %191, ptr noundef %192, ptr noundef %195, ptr noundef %196, ptr noundef %199, ptr noundef %200)
  %202 = load ptr, ptr %19, align 8, !tbaa !5
  %203 = load ptr, ptr %20, align 8, !tbaa !5
  %204 = load ptr, ptr %23, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %204, i64 1
  %206 = load ptr, ptr %24, align 8, !tbaa !5
  %207 = getelementptr inbounds double, ptr %206, i64 1
  %208 = load ptr, ptr %27, align 8, !tbaa !5
  %209 = load i64, ptr %37, align 8, !tbaa !9
  %210 = getelementptr inbounds double, ptr %208, i64 %209
  %211 = load ptr, ptr %28, align 8, !tbaa !5
  %212 = load ptr, ptr %33, align 8, !tbaa !5
  %213 = call i32 @dpttrs_(ptr noundef %202, ptr noundef %203, ptr noundef %205, ptr noundef %207, ptr noundef %210, ptr noundef %211, ptr noundef %212)
  %214 = load ptr, ptr %19, align 8, !tbaa !5
  %215 = load ptr, ptr %20, align 8, !tbaa !5
  %216 = load ptr, ptr %21, align 8, !tbaa !5
  %217 = getelementptr inbounds double, ptr %216, i64 1
  %218 = load ptr, ptr %22, align 8, !tbaa !5
  %219 = getelementptr inbounds double, ptr %218, i64 1
  %220 = load ptr, ptr %23, align 8, !tbaa !5
  %221 = getelementptr inbounds double, ptr %220, i64 1
  %222 = load ptr, ptr %24, align 8, !tbaa !5
  %223 = getelementptr inbounds double, ptr %222, i64 1
  %224 = load ptr, ptr %25, align 8, !tbaa !5
  %225 = load i64, ptr %35, align 8, !tbaa !9
  %226 = getelementptr inbounds double, ptr %224, i64 %225
  %227 = load ptr, ptr %26, align 8, !tbaa !5
  %228 = load ptr, ptr %27, align 8, !tbaa !5
  %229 = load i64, ptr %37, align 8, !tbaa !9
  %230 = getelementptr inbounds double, ptr %228, i64 %229
  %231 = load ptr, ptr %28, align 8, !tbaa !5
  %232 = load ptr, ptr %30, align 8, !tbaa !5
  %233 = getelementptr inbounds double, ptr %232, i64 1
  %234 = load ptr, ptr %31, align 8, !tbaa !5
  %235 = getelementptr inbounds double, ptr %234, i64 1
  %236 = load ptr, ptr %32, align 8, !tbaa !5
  %237 = getelementptr inbounds double, ptr %236, i64 1
  %238 = load ptr, ptr %33, align 8, !tbaa !5
  %239 = call i32 @dptrfs_(ptr noundef %214, ptr noundef %215, ptr noundef %217, ptr noundef %219, ptr noundef %221, ptr noundef %223, ptr noundef %226, ptr noundef %227, ptr noundef %230, ptr noundef %231, ptr noundef %233, ptr noundef %235, ptr noundef %237, ptr noundef %238)
  %240 = load ptr, ptr %29, align 8, !tbaa !5
  %241 = load double, ptr %240, align 8, !tbaa !11
  %242 = call double @dlamch_(ptr noundef @.str.5)
  %243 = fcmp olt double %241, %242
  br i1 %243, label %244, label %249

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

249:                                              ; preds = %244, %174
  store i32 0, ptr %17, align 4
  store i32 1, ptr %41, align 4
  br label %250

250:                                              ; preds = %249, %171, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  %251 = load i32, ptr %17, align 4
  ret i32 %251
}

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

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@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 @dptsvx_(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 double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 %63

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

39:                                               ; preds = %38
  %40 = tail call i32 @f2c_dcopy(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_dcopy(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 @dpttrf_(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 double 0.000000e+00, ptr %11, align 8, !tbaa !9
  br label %63

51:                                               ; preds = %46, %38
  %52 = call double @dlanst_(ptr noundef nonnull @.str.3, ptr noundef nonnull %1, ptr noundef %3, ptr noundef %4) #4
  store double %52, ptr %18, align 8, !tbaa !9
  %53 = call i32 @dptcon_(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
  %54 = call i32 @dlacpy_(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
  %55 = call i32 @dpttrs_(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
  %56 = call i32 @dptrfs_(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
  %57 = load double, ptr %11, align 8, !tbaa !9
  %58 = call double @dlamch_(ptr noundef nonnull @.str.5) #4
  %59 = fcmp olt double %57, %58
  br i1 %59, label %60, label %63

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

63:                                               ; preds = %51, %60, %50, %.thread
  call void @llvm.lifetime.end.p0(i64 8, 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_dcopy(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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


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