; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (chesv_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"

%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_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 @chesv_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 %struct.complex, 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 %struct.complex, 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 %struct.complex, 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 %struct.complex, 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 %167

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 %158

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 %struct.complex, 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 %struct.complex, 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 %struct.complex, ptr %150, i64 1
  %152 = load ptr, ptr %24, align 8, !tbaa !5
  call void @chetrf_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 %struct.complex, ptr %153, i64 1
  %155 = getelementptr inbounds %struct.complex, ptr %154, i32 0, i32 0
  %156 = load float, ptr %155, align 4, !tbaa !11
  %157 = fptosi float %156 to i32
  store i32 %157, ptr %30, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %138, %137
  %159 = load i32, ptr %30, align 4, !tbaa !9
  %160 = sitofp i32 %159 to float
  %161 = load ptr, ptr %22, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.complex, ptr %161, i64 1
  %163 = getelementptr inbounds %struct.complex, ptr %162, i32 0, i32 0
  store float %160, ptr %163, align 4, !tbaa !11
  %164 = load ptr, ptr %22, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.complex, ptr %164, i64 1
  %166 = getelementptr inbounds %struct.complex, ptr %165, i32 0, i32 1
  store float 0.000000e+00, ptr %166, align 4, !tbaa !14
  br label %167

167:                                              ; preds = %158, %129
  %168 = load ptr, ptr %24, align 8, !tbaa !5
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %176

171:                                              ; preds = %167
  %172 = load ptr, ptr %24, align 8, !tbaa !5
  %173 = load i32, ptr %172, align 4, !tbaa !9
  %174 = sub nsw i32 0, %173
  store i32 %174, ptr %29, align 4, !tbaa !9
  %175 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %29, i32 noundef 9)
  store i32 1, ptr %32, align 4
  br label %228

176:                                              ; preds = %167
  %177 = load i32, ptr %31, align 4, !tbaa !9
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %180

179:                                              ; preds = %176
  store i32 1, ptr %32, align 4
  br label %228

180:                                              ; preds = %176
  br label %181

181:                                              ; preds = %180
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = load ptr, ptr %16, align 8, !tbaa !5
  %185 = load i32, ptr %26, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds %struct.complex, ptr %184, i64 %186
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = load ptr, ptr %18, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.complex, ptr %189, i64 1
  %191 = load ptr, ptr %19, align 8, !tbaa !5
  %192 = getelementptr inbounds i32, ptr %191, i64 1
  %193 = load ptr, ptr %22, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.complex, ptr %193, i64 1
  %195 = load ptr, ptr %23, align 8, !tbaa !5
  %196 = load ptr, ptr %24, align 8, !tbaa !5
  call void @chetrf_rk_(ptr noundef %182, ptr noundef %183, ptr noundef %187, ptr noundef %188, ptr noundef %190, ptr noundef %192, ptr noundef %194, ptr noundef %195, ptr noundef %196)
  %197 = load ptr, ptr %24, align 8, !tbaa !5
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = icmp eq i32 %198, 0
  br i1 %199, label %200, label %219

200:                                              ; preds = %181
  %201 = load ptr, ptr %13, align 8, !tbaa !5
  %202 = load ptr, ptr %14, align 8, !tbaa !5
  %203 = load ptr, ptr %15, align 8, !tbaa !5
  %204 = load ptr, ptr %16, align 8, !tbaa !5
  %205 = load i32, ptr %26, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds %struct.complex, ptr %204, i64 %206
  %208 = load ptr, ptr %17, align 8, !tbaa !5
  %209 = load ptr, ptr %18, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.complex, ptr %209, i64 1
  %211 = load ptr, ptr %19, align 8, !tbaa !5
  %212 = getelementptr inbounds i32, ptr %211, i64 1
  %213 = load ptr, ptr %20, align 8, !tbaa !5
  %214 = load i32, ptr %28, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds %struct.complex, ptr %213, i64 %215
  %217 = load ptr, ptr %21, align 8, !tbaa !5
  %218 = load ptr, ptr %24, align 8, !tbaa !5
  call void @chetrs_3_(ptr noundef %201, ptr noundef %202, ptr noundef %203, ptr noundef %207, ptr noundef %208, ptr noundef %210, ptr noundef %212, ptr noundef %216, ptr noundef %217, ptr noundef %218)
  br label %219

219:                                              ; preds = %200, %181
  %220 = load i32, ptr %30, align 4, !tbaa !9
  %221 = sitofp i32 %220 to float
  %222 = load ptr, ptr %22, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.complex, ptr %222, i64 1
  %224 = getelementptr inbounds %struct.complex, ptr %223, i32 0, i32 0
  store float %221, ptr %224, align 4, !tbaa !11
  %225 = load ptr, ptr %22, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.complex, ptr %225, i64 1
  %227 = getelementptr inbounds %struct.complex, ptr %226, i32 0, i32 1
  store float 0.000000e+00, ptr %227, align 4, !tbaa !14
  store i32 1, ptr %32, align 4
  br label %228

228:                                              ; preds = %219, %179, %171
  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 @chetrf_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 @chetrs_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, !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_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 @chesv_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
  %.not78 = icmp eq i32 %18, 0
  br i1 %.not78, label %.thread83.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 %.thread83.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 %.thread83.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 %.thread83.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 %.thread83.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 %.thread83.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 %.thread83

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

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

.thread:                                          ; preds = %36
  tail call void @chetrf_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 float, ptr %9, align 4, !tbaa !11
  %39 = fptosi float %38 to i32
  %40 = sitofp i32 %39 to float
  %.pr82.pr.pr = load i32, ptr %11, align 4, !tbaa !5
  store float %40, ptr %9, align 4, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %9, i64 4
  store float 0.000000e+00, ptr %41, align 4, !tbaa !13
  %.not79 = icmp eq i32 %.pr82.pr.pr, 0
  br i1 %.not79, label %45, label %.thread83

.thread83.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 %.thread83

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

45:                                               ; preds = %.thread.thread89, %.thread
  %.093 = phi float [ 1.000000e+00, %.thread.thread89 ], [ %40, %.thread ]
  br i1 %15, label %52, label %46

46:                                               ; preds = %45
  tail call void @chetrf_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
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  tail call void @chetrs_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 %50

50:                                               ; preds = %49, %46
  store float %.093, ptr %9, align 4, !tbaa !11
  %51 = getelementptr inbounds i8, ptr %9, i64 4
  store float 0.000000e+00, ptr %51, align 4, !tbaa !13
  br label %52

52:                                               ; preds = %45, %50, %.thread83
  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 @chetrf_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 @chetrs_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 = !{!"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,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass