; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (dsysv_rk)

; 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
@c_n1 = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1

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

67:                                               ; preds = %12
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = call i32 @lsame_(ptr noundef %68, ptr noundef @.str.1)
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %73, label %71

71:                                               ; preds = %67
  %72 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -1, ptr %72, align 4, !tbaa !9
  br label %129

73:                                               ; preds = %67, %12
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = icmp slt i32 %75, 0
  br i1 %76, label %77, label %79

77:                                               ; preds = %73
  %78 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -2, ptr %78, align 4, !tbaa !9
  br label %128

79:                                               ; preds = %73
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = icmp slt i32 %81, 0
  br i1 %82, label %83, label %85

83:                                               ; preds = %79
  %84 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -3, ptr %84, align 4, !tbaa !9
  br label %127

85:                                               ; preds = %79
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = icmp sge i32 1, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %85
  br label %95

92:                                               ; preds = %85
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %92, %91
  %96 = phi i32 [ 1, %91 ], [ %94, %92 ]
  %97 = icmp slt i32 %87, %96
  br i1 %97, label %98, label %100

98:                                               ; preds = %95
  %99 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -5, ptr %99, align 4, !tbaa !9
  br label %126

100:                                              ; preds = %95
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = icmp sge i32 1, %104
  br i1 %105, label %106, label %107

106:                                              ; preds = %100
  br label %110

107:                                              ; preds = %100
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = load i32, ptr %108, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %107, %106
  %111 = phi i32 [ 1, %106 ], [ %109, %107 ]
  %112 = icmp slt i32 %102, %111
  br i1 %112, label %113, label %115

113:                                              ; preds = %110
  %114 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -9, ptr %114, align 4, !tbaa !9
  br label %125

115:                                              ; preds = %110
  %116 = load ptr, ptr %23, align 8, !tbaa !5
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = icmp slt i32 %117, 1
  br i1 %118, label %119, label %124

119:                                              ; preds = %115
  %120 = load i32, ptr %31, align 4, !tbaa !9
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %124, label %122

122:                                              ; preds = %119
  %123 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -11, ptr %123, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %122, %119, %115
  br label %125

125:                                              ; preds = %124, %113
  br label %126

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

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

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

129:                                              ; preds = %128, %71
  %130 = load ptr, ptr %24, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %133, label %162

133:                                              ; preds = %129
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %133
  store i32 1, ptr %30, align 4, !tbaa !9
  br label %157

138:                                              ; preds = %133
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = load i32, ptr %26, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds double, ptr %141, i64 %143
  %145 = load ptr, ptr %17, align 8, !tbaa !5
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = getelementptr inbounds double, ptr %146, i64 1
  %148 = load ptr, ptr %19, align 8, !tbaa !5
  %149 = getelementptr inbounds i32, ptr %148, i64 1
  %150 = load ptr, ptr %22, align 8, !tbaa !5
  %151 = getelementptr inbounds double, ptr %150, i64 1
  %152 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dsytrf_rk_(ptr noundef %139, ptr noundef %140, ptr noundef %144, ptr noundef %145, ptr noundef %147, ptr noundef %149, ptr noundef %151, ptr noundef @c_n1, ptr noundef %152)
  %153 = load ptr, ptr %22, align 8, !tbaa !5
  %154 = getelementptr inbounds double, ptr %153, i64 1
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = fptosi double %155 to i32
  store i32 %156, ptr %30, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %138, %137
  %158 = load i32, ptr %30, align 4, !tbaa !9
  %159 = sitofp i32 %158 to double
  %160 = load ptr, ptr %22, align 8, !tbaa !5
  %161 = getelementptr inbounds double, ptr %160, i64 1
  store double %159, ptr %161, align 8, !tbaa !11
  br label %162

162:                                              ; preds = %157, %129
  %163 = load ptr, ptr %24, align 8, !tbaa !5
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %171

166:                                              ; preds = %162
  %167 = load ptr, ptr %24, align 8, !tbaa !5
  %168 = load i32, ptr %167, align 4, !tbaa !9
  %169 = sub nsw i32 0, %168
  store i32 %169, ptr %29, align 4, !tbaa !9
  %170 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %29, i32 noundef 9)
  store i32 1, ptr %32, align 4
  br label %219

171:                                              ; preds = %162
  %172 = load i32, ptr %31, align 4, !tbaa !9
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %175

174:                                              ; preds = %171
  store i32 1, ptr %32, align 4
  br label %219

175:                                              ; preds = %171
  br label %176

176:                                              ; preds = %175
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  %179 = load ptr, ptr %16, align 8, !tbaa !5
  %180 = load i32, ptr %26, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds double, ptr %179, i64 %181
  %183 = load ptr, ptr %17, align 8, !tbaa !5
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  %185 = getelementptr inbounds double, ptr %184, i64 1
  %186 = load ptr, ptr %19, align 8, !tbaa !5
  %187 = getelementptr inbounds i32, ptr %186, i64 1
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  %189 = getelementptr inbounds double, ptr %188, i64 1
  %190 = load ptr, ptr %23, align 8, !tbaa !5
  %191 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dsytrf_rk_(ptr noundef %177, ptr noundef %178, ptr noundef %182, ptr noundef %183, ptr noundef %185, ptr noundef %187, ptr noundef %189, ptr noundef %190, ptr noundef %191)
  %192 = load ptr, ptr %24, align 8, !tbaa !5
  %193 = load i32, ptr %192, align 4, !tbaa !9
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %195, label %214

195:                                              ; preds = %176
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = load ptr, ptr %15, align 8, !tbaa !5
  %199 = load ptr, ptr %16, align 8, !tbaa !5
  %200 = load i32, ptr %26, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %199, i64 %201
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = load ptr, ptr %18, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %204, i64 1
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  %207 = getelementptr inbounds i32, ptr %206, i64 1
  %208 = load ptr, ptr %20, align 8, !tbaa !5
  %209 = load i32, ptr %28, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds double, ptr %208, i64 %210
  %212 = load ptr, ptr %21, align 8, !tbaa !5
  %213 = load ptr, ptr %24, align 8, !tbaa !5
  call void @dsytrs_3_(ptr noundef %196, ptr noundef %197, ptr noundef %198, ptr noundef %202, ptr noundef %203, ptr noundef %205, ptr noundef %207, ptr noundef %211, ptr noundef %212, ptr noundef %213)
  br label %214

214:                                              ; preds = %195, %176
  %215 = load i32, ptr %30, align 4, !tbaa !9
  %216 = sitofp i32 %215 to double
  %217 = load ptr, ptr %22, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i64 1
  store double %216, ptr %218, align 8, !tbaa !11
  store i32 1, ptr %32, align 4
  br label %219

219:                                              ; preds = %214, %174, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #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 void @dsytrf_rk_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare void @dsytrs_3_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 = !{!"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
@c_n1 = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1

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

17:                                               ; preds = %12
  %18 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not76 = icmp eq i32 %18, 0
  br i1 %.not76, label %.thread81.sink.split, label %19

19:                                               ; preds = %17, %12
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 0
  br i1 %21, label %.thread81.sink.split, label %22

22:                                               ; preds = %19
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = icmp slt i32 %23, 0
  br i1 %24, label %.thread81.sink.split, label %25

25:                                               ; preds = %22
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %20, i32 1)
  %27 = icmp slt i32 %26, %spec.select
  br i1 %27, label %.thread81.sink.split, label %28

28:                                               ; preds = %25
  %29 = load i32, ptr %8, align 4, !tbaa !5
  %30 = icmp slt i32 %29, %spec.select
  br i1 %30, label %.thread81.sink.split, label %31

31:                                               ; preds = %28
  %32 = load i32, ptr %10, align 4, !tbaa !5
  %33 = icmp sgt i32 %32, 0
  %or.cond = select i1 %33, i1 true, i1 %15
  br i1 %or.cond, label %34, label %.thread81.sink.split

34:                                               ; preds = %31
  %.pr = load i32, ptr %11, align 4, !tbaa !5
  %35 = icmp eq i32 %.pr, 0
  br i1 %35, label %36, label %.thread81

36:                                               ; preds = %34
  %37 = icmp eq i32 %20, 0
  br i1 %37, label %.thread.thread87, label %.thread

.thread.thread87:                                 ; preds = %36
  store double 1.000000e+00, ptr %9, align 8, !tbaa !9
  br label %44

.thread:                                          ; preds = %36
  tail call void @dsytrf_rk_(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef nonnull @c_n1, ptr noundef nonnull %11) #4
  %38 = load double, ptr %9, align 8, !tbaa !9
  %39 = fptosi double %38 to i32
  %40 = sitofp i32 %39 to double
  %.pr80.pr.pr = load i32, ptr %11, align 4, !tbaa !5
  store double %40, ptr %9, align 8, !tbaa !9
  %.not77 = icmp eq i32 %.pr80.pr.pr, 0
  br i1 %.not77, label %44, label %.thread81

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

.thread81:                                        ; preds = %.thread81.sink.split, %34, %.thread
  %41 = phi i32 [ %.pr80.pr.pr, %.thread ], [ %.pr, %34 ], [ %.sink, %.thread81.sink.split ]
  %42 = sub nsw i32 0, %41
  store i32 %42, ptr %13, align 4, !tbaa !5
  %43 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %13, i32 noundef 9) #4
  br label %50

44:                                               ; preds = %.thread.thread87, %.thread
  %.091 = phi double [ 1.000000e+00, %.thread.thread87 ], [ %40, %.thread ]
  br i1 %15, label %50, label %45

45:                                               ; preds = %44
  tail call void @dsytrf_rk_(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  %46 = load i32, ptr %11, align 4, !tbaa !5
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  tail call void @dsytrs_3_(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %8, ptr noundef nonnull %11) #4
  br label %49

49:                                               ; preds = %48, %45
  store double %.091, ptr %9, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %44, %49, %.thread81
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #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 void @dsytrf_rk_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @dsytrs_3_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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

; 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,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass