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

80:                                               ; preds = %16
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = call i32 @lsame_(ptr noundef %81, ptr noundef @.str.1)
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %86, label %84

84:                                               ; preds = %80
  %85 = load ptr, ptr %32, align 8, !tbaa !5
  store i32 -1, ptr %85, align 4, !tbaa !9
  br label %132

86:                                               ; preds = %80, %16
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = icmp slt i32 %88, 0
  br i1 %89, label %90, label %92

90:                                               ; preds = %86
  %91 = load ptr, ptr %32, align 8, !tbaa !5
  store i32 -2, ptr %91, align 4, !tbaa !9
  br label %131

92:                                               ; preds = %86
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = icmp slt i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %92
  %97 = load ptr, ptr %32, align 8, !tbaa !5
  store i32 -3, ptr %97, align 4, !tbaa !9
  br label %130

98:                                               ; preds = %92
  %99 = load ptr, ptr %25, align 8, !tbaa !5
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = icmp sge i32 1, %102
  br i1 %103, label %104, label %105

104:                                              ; preds = %98
  br label %108

105:                                              ; preds = %98
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  %107 = load i32, ptr %106, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %105, %104
  %109 = phi i32 [ 1, %104 ], [ %107, %105 ]
  %110 = icmp slt i32 %100, %109
  br i1 %110, label %111, label %113

111:                                              ; preds = %108
  %112 = load ptr, ptr %32, align 8, !tbaa !5
  store i32 -9, ptr %112, align 4, !tbaa !9
  br label %129

113:                                              ; preds = %108
  %114 = load ptr, ptr %27, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = load ptr, ptr %18, align 8, !tbaa !5
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = icmp sge i32 1, %117
  br i1 %118, label %119, label %120

119:                                              ; preds = %113
  br label %123

120:                                              ; preds = %113
  %121 = load ptr, ptr %18, align 8, !tbaa !5
  %122 = load i32, ptr %121, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %120, %119
  %124 = phi i32 [ 1, %119 ], [ %122, %120 ]
  %125 = icmp slt i32 %115, %124
  br i1 %125, label %126, label %128

126:                                              ; preds = %123
  %127 = load ptr, ptr %32, align 8, !tbaa !5
  store i32 -11, ptr %127, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %126, %123
  br label %129

129:                                              ; preds = %128, %111
  br label %130

130:                                              ; preds = %129, %96
  br label %131

131:                                              ; preds = %130, %90
  br label %132

132:                                              ; preds = %131, %84
  %133 = load ptr, ptr %32, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %141

136:                                              ; preds = %132
  %137 = load ptr, ptr %32, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = sub nsw i32 0, %138
  store i32 %139, ptr %37, align 4, !tbaa !9
  %140 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %37, i32 noundef 6)
  store i32 1, ptr %40, align 4
  br label %251

141:                                              ; preds = %132
  %142 = load i32, ptr %39, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %174

144:                                              ; preds = %141
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = load ptr, ptr %20, align 8, !tbaa !5
  %147 = getelementptr inbounds double, ptr %146, i64 1
  %148 = load ptr, ptr %22, align 8, !tbaa !5
  %149 = getelementptr inbounds double, ptr %148, i64 1
  call void @dcopy_(ptr noundef %145, ptr noundef %147, ptr noundef @c__1, ptr noundef %149, ptr noundef @c__1)
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = icmp sgt i32 %151, 1
  br i1 %152, label %153, label %161

153:                                              ; preds = %144
  %154 = load ptr, ptr %18, align 8, !tbaa !5
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = sub nsw i32 %155, 1
  store i32 %156, ptr %37, align 4, !tbaa !9
  %157 = load ptr, ptr %21, align 8, !tbaa !5
  %158 = getelementptr inbounds double, ptr %157, i64 1
  %159 = load ptr, ptr %23, align 8, !tbaa !5
  %160 = getelementptr inbounds double, ptr %159, i64 1
  call void @dcopy_(ptr noundef %37, ptr noundef %158, ptr noundef @c__1, ptr noundef %160, ptr noundef @c__1)
  br label %161

161:                                              ; preds = %153, %144
  %162 = load ptr, ptr %18, align 8, !tbaa !5
  %163 = load ptr, ptr %22, align 8, !tbaa !5
  %164 = getelementptr inbounds double, ptr %163, i64 1
  %165 = load ptr, ptr %23, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %165, i64 1
  %167 = load ptr, ptr %32, align 8, !tbaa !5
  call void @dpttrf_(ptr noundef %162, ptr noundef %164, ptr noundef %166, ptr noundef %167)
  %168 = load ptr, ptr %32, align 8, !tbaa !5
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = icmp sgt i32 %169, 0
  br i1 %170, label %171, label %173

171:                                              ; preds = %161
  %172 = load ptr, ptr %28, align 8, !tbaa !5
  store double 0.000000e+00, ptr %172, align 8, !tbaa !11
  store i32 1, ptr %40, align 4
  br label %251

173:                                              ; preds = %161
  br label %174

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

245:                                              ; preds = %174
  %246 = load ptr, ptr %18, align 8, !tbaa !5
  %247 = load i32, ptr %246, align 4, !tbaa !9
  %248 = add nsw i32 %247, 1
  %249 = load ptr, ptr %32, align 8, !tbaa !5
  store i32 %248, ptr %249, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %245, %174
  store i32 1, ptr %40, align 4
  br label %251

251:                                              ; preds = %250, %171, %136
  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 4, 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 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

declare void @dcopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

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

declare void @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 = !{!"int", !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 i32, align 4
@.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 void @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 i32, align 4
  %18 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  %19 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %20, label %22

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

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

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

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

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

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

.thread.sink.split:                               ; preds = %31, %28, %25, %22, %20
  %.sink = phi i32 [ -1, %20 ], [ -2, %22 ], [ -3, %25 ], [ -9, %28 ], [ -11, %31 ]
  store i32 %.sink, ptr %15, align 4, !tbaa !5
  br label %.thread

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

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

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

42:                                               ; preds = %39
  %43 = add nsw i32 %40, -1
  store i32 %43, ptr %17, align 4, !tbaa !5
  call void @dcopy_(ptr noundef nonnull %17, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  br label %44

44:                                               ; preds = %42, %39
  call void @dpttrf_(ptr noundef nonnull %1, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15) #4
  %45 = load i32, ptr %15, align 4, !tbaa !5
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %44
  store double 0.000000e+00, ptr %11, align 8, !tbaa !9
  br label %56

48:                                               ; preds = %44, %38
  %49 = call double @dlanst_(ptr noundef nonnull @.str.3, ptr noundef nonnull %1, ptr noundef %3, ptr noundef %4) #4
  store double %49, ptr %18, align 8, !tbaa !9
  call void @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
  call void @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
  call void @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
  call void @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
  %50 = load double, ptr %11, align 8, !tbaa !9
  %51 = call double @dlamch_(ptr noundef nonnull @.str.5) #4
  %52 = fcmp olt double %50, %51
  br i1 %52, label %53, label %56

53:                                               ; preds = %48
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %15, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %48, %53, %47, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

declare void @dcopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @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 void @dptcon_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare void @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 i32 @llvm.umax.i32(i32, i32) #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 = !{!"int", !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,SROAPass,SimplifyCFGPass,TailCallElimPass