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

; 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"

%struct.complex = type { float, float }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i64, align 8
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

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

62:                                               ; preds = %11
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = call i64 @lsame_(ptr noundef %63, ptr noundef @.str.1)
  %65 = icmp ne i64 %64, 0
  br i1 %65, label %68, label %66

66:                                               ; preds = %62
  %67 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -1, ptr %67, align 8, !tbaa !9
  br label %124

68:                                               ; preds = %62, %11
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = icmp slt i64 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -2, ptr %73, align 8, !tbaa !9
  br label %123

74:                                               ; preds = %68
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = icmp slt i64 %76, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %74
  %79 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -3, ptr %79, align 8, !tbaa !9
  br label %122

80:                                               ; preds = %74
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = icmp sge i64 1, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %80
  br label %90

87:                                               ; preds = %80
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load i64, ptr %88, align 8, !tbaa !9
  br label %90

90:                                               ; preds = %87, %86
  %91 = phi i64 [ 1, %86 ], [ %89, %87 ]
  %92 = icmp slt i64 %82, %91
  br i1 %92, label %93, label %95

93:                                               ; preds = %90
  %94 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -5, ptr %94, align 8, !tbaa !9
  br label %121

95:                                               ; preds = %90
  %96 = load ptr, ptr %20, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = load ptr, ptr %14, 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 %14, 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 %23, align 8, !tbaa !5
  store i64 -8, ptr %109, align 8, !tbaa !9
  br label %120

110:                                              ; preds = %105
  %111 = load ptr, ptr %22, align 8, !tbaa !5
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = icmp slt i64 %112, 1
  br i1 %113, label %114, label %119

114:                                              ; preds = %110
  %115 = load i64, ptr %31, align 8, !tbaa !9
  %116 = icmp ne i64 %115, 0
  br i1 %116, label %119, label %117

117:                                              ; preds = %114
  %118 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -10, ptr %118, align 8, !tbaa !9
  br label %119

119:                                              ; preds = %117, %114, %110
  br label %120

120:                                              ; preds = %119, %108
  br label %121

121:                                              ; preds = %120, %93
  br label %122

122:                                              ; preds = %121, %78
  br label %123

123:                                              ; preds = %122, %72
  br label %124

124:                                              ; preds = %123, %66
  %125 = load ptr, ptr %23, align 8, !tbaa !5
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = icmp eq i64 %126, 0
  br i1 %127, label %128, label %150

128:                                              ; preds = %124
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = load i64, ptr %129, align 8, !tbaa !9
  %131 = icmp eq i64 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %128
  store i64 1, ptr %30, align 8, !tbaa !9
  br label %141

133:                                              ; preds = %128
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = call i64 @ilaenv_(ptr noundef @c__1, ptr noundef @.str.2, ptr noundef %134, ptr noundef %135, ptr noundef @c_n1, ptr noundef @c_n1, ptr noundef @c_n1)
  store i64 %136, ptr %29, align 8, !tbaa !9
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  %138 = load i64, ptr %137, align 8, !tbaa !9
  %139 = load i64, ptr %29, align 8, !tbaa !9
  %140 = mul nsw i64 %138, %139
  store i64 %140, ptr %30, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %133, %132
  %142 = load i64, ptr %30, align 8, !tbaa !9
  %143 = sitofp i64 %142 to float
  %144 = load ptr, ptr %21, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.complex, ptr %144, i64 1
  %146 = getelementptr inbounds %struct.complex, ptr %145, i32 0, i32 0
  store float %143, ptr %146, align 4, !tbaa !11
  %147 = load ptr, ptr %21, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.complex, ptr %147, i64 1
  %149 = getelementptr inbounds %struct.complex, ptr %148, i32 0, i32 1
  store float 0.000000e+00, ptr %149, align 4, !tbaa !14
  br label %150

150:                                              ; preds = %141, %124
  %151 = load ptr, ptr %23, align 8, !tbaa !5
  %152 = load i64, ptr %151, align 8, !tbaa !9
  %153 = icmp ne i64 %152, 0
  br i1 %153, label %154, label %159

154:                                              ; preds = %150
  %155 = load ptr, ptr %23, align 8, !tbaa !5
  %156 = load i64, ptr %155, align 8, !tbaa !9
  %157 = sub nsw i64 0, %156
  store i64 %157, ptr %28, align 8, !tbaa !9
  %158 = call i32 @xerbla_(ptr noundef @.str.3, ptr noundef %28)
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %206

159:                                              ; preds = %150
  %160 = load i64, ptr %31, align 8, !tbaa !9
  %161 = icmp ne i64 %160, 0
  br i1 %161, label %162, label %163

162:                                              ; preds = %159
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %206

163:                                              ; preds = %159
  br label %164

164:                                              ; preds = %163
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = load ptr, ptr %16, align 8, !tbaa !5
  %168 = load i64, ptr %25, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.complex, ptr %167, i64 %168
  %170 = load ptr, ptr %17, align 8, !tbaa !5
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  %172 = getelementptr inbounds i64, ptr %171, i64 1
  %173 = load ptr, ptr %21, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.complex, ptr %173, i64 1
  %175 = load ptr, ptr %22, align 8, !tbaa !5
  %176 = load ptr, ptr %23, align 8, !tbaa !5
  %177 = call i32 @chetrf_(ptr noundef %165, ptr noundef %166, ptr noundef %169, ptr noundef %170, ptr noundef %172, ptr noundef %174, ptr noundef %175, ptr noundef %176)
  %178 = load ptr, ptr %23, align 8, !tbaa !5
  %179 = load i64, ptr %178, align 8, !tbaa !9
  %180 = icmp eq i64 %179, 0
  br i1 %180, label %181, label %197

181:                                              ; preds = %164
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = load ptr, ptr %16, align 8, !tbaa !5
  %186 = load i64, ptr %25, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct.complex, ptr %185, i64 %186
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = load ptr, ptr %18, align 8, !tbaa !5
  %190 = getelementptr inbounds i64, ptr %189, i64 1
  %191 = load ptr, ptr %19, align 8, !tbaa !5
  %192 = load i64, ptr %27, align 8, !tbaa !9
  %193 = getelementptr inbounds %struct.complex, ptr %191, i64 %192
  %194 = load ptr, ptr %20, align 8, !tbaa !5
  %195 = load ptr, ptr %23, align 8, !tbaa !5
  %196 = call i32 @chetrs_(ptr noundef %182, ptr noundef %183, ptr noundef %184, ptr noundef %187, ptr noundef %188, ptr noundef %190, ptr noundef %193, ptr noundef %194, ptr noundef %195)
  br label %197

197:                                              ; preds = %181, %164
  %198 = load i64, ptr %30, align 8, !tbaa !9
  %199 = sitofp i64 %198 to float
  %200 = load ptr, ptr %21, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.complex, ptr %200, i64 1
  %202 = getelementptr inbounds %struct.complex, ptr %201, i32 0, i32 0
  store float %199, ptr %202, align 4, !tbaa !11
  %203 = load ptr, ptr %21, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.complex, ptr %203, i64 1
  %205 = getelementptr inbounds %struct.complex, ptr %204, i32 0, i32 1
  store float 0.000000e+00, ptr %205, align 4, !tbaa !14
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %206

206:                                              ; preds = %197, %162, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  %207 = load i32, ptr %12, align 4
  ret i32 %207
}

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

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

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

declare i32 @chetrs_(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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}


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

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

16:                                               ; preds = %11
  %17 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not70 = icmp eq i64 %17, 0
  br i1 %.not70, label %.thread75.sink.split, label %18

18:                                               ; preds = %16, %11
  %19 = load i64, ptr %1, align 8, !tbaa !5
  %20 = icmp slt i64 %19, 0
  br i1 %20, label %.thread75.sink.split, label %21

21:                                               ; preds = %18
  %22 = load i64, ptr %2, align 8, !tbaa !5
  %23 = icmp slt i64 %22, 0
  br i1 %23, label %.thread75.sink.split, label %24

24:                                               ; preds = %21
  %25 = load i64, ptr %4, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %19, i64 1)
  %26 = icmp slt i64 %25, %spec.select
  br i1 %26, label %.thread75.sink.split, label %27

27:                                               ; preds = %24
  %28 = load i64, ptr %7, align 8, !tbaa !5
  %29 = icmp slt i64 %28, %spec.select
  br i1 %29, label %.thread75.sink.split, label %30

30:                                               ; preds = %27
  %31 = load i64, ptr %9, align 8, !tbaa !5
  %32 = icmp sgt i64 %31, 0
  %or.cond = select i1 %32, i1 true, i1 %14
  br i1 %or.cond, label %33, label %.thread75.sink.split

33:                                               ; preds = %30
  %.pr = load i64, ptr %10, align 8, !tbaa !5
  %34 = icmp eq i64 %.pr, 0
  br i1 %34, label %35, label %.thread75

35:                                               ; preds = %33
  %36 = icmp eq i64 %19, 0
  br i1 %36, label %.thread.thread81, label %.thread

.thread.thread81:                                 ; preds = %35
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %8, align 4, !tbaa !9
  br label %45

.thread:                                          ; preds = %35
  %37 = tail call i64 @ilaenv_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str.2, ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1) #4
  %38 = load i64, ptr %1, align 8, !tbaa !5
  %39 = mul nsw i64 %38, %37
  %40 = sitofp i64 %39 to float
  %.pr74.pr.pr = load i64, ptr %10, align 8, !tbaa !5
  store float %40, ptr %8, align 4, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %8, i64 4
  store float 0.000000e+00, ptr %41, align 4, !tbaa !13
  %.not71 = icmp eq i64 %.pr74.pr.pr, 0
  br i1 %.not71, label %45, label %.thread75

.thread75.sink.split:                             ; preds = %30, %27, %24, %21, %18, %16
  %.sink = phi i64 [ -1, %16 ], [ -2, %18 ], [ -3, %21 ], [ -5, %24 ], [ -8, %27 ], [ -10, %30 ]
  store i64 %.sink, ptr %10, align 8, !tbaa !5
  br label %.thread75

.thread75:                                        ; preds = %.thread75.sink.split, %33, %.thread
  %42 = phi i64 [ %.pr74.pr.pr, %.thread ], [ %.pr, %33 ], [ %.sink, %.thread75.sink.split ]
  %43 = sub nsw i64 0, %42
  store i64 %43, ptr %12, align 8, !tbaa !5
  %44 = call i32 @xerbla_(ptr noundef nonnull @.str.3, ptr noundef nonnull %12) #4
  br label %54

45:                                               ; preds = %.thread.thread81, %.thread
  %.06785 = phi float [ 1.000000e+00, %.thread.thread81 ], [ %40, %.thread ]
  br i1 %14, label %54, label %46

46:                                               ; preds = %45
  %47 = tail call i32 @chetrf_(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10) #4
  %48 = load i64, ptr %10, align 8, !tbaa !5
  %49 = icmp eq i64 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %46
  %51 = tail call i32 @chetrs_(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 nonnull %7, ptr noundef nonnull %10) #4
  br label %52

52:                                               ; preds = %50, %46
  store float %.06785, ptr %8, align 4, !tbaa !11
  %53 = getelementptr inbounds i8, ptr %8, i64 4
  store float 0.000000e+00, ptr %53, align 4, !tbaa !13
  br label %54

54:                                               ; preds = %45, %52, %.thread75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #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 i64 @ilaenv_(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) local_unnamed_addr #2

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

declare i32 @chetrs_(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 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}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}


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