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

; 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 [16 x i8], align 1

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

80:                                               ; preds = %14
  %81 = load ptr, ptr %15, 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 %28, align 8, !tbaa !5
  store i32 -1, ptr %85, align 4, !tbaa !9
  br label %157

86:                                               ; preds = %80, %14
  %87 = load ptr, ptr %16, 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 %28, align 8, !tbaa !5
  store i32 -2, ptr %91, align 4, !tbaa !9
  br label %156

92:                                               ; preds = %86
  %93 = load ptr, ptr %17, 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 %28, align 8, !tbaa !5
  store i32 -3, ptr %97, align 4, !tbaa !9
  br label %155

98:                                               ; preds = %92
  %99 = load ptr, ptr %19, align 8, !tbaa !5
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = load ptr, ptr %16, 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 %16, 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 %28, align 8, !tbaa !5
  store i32 -5, ptr %112, align 4, !tbaa !9
  br label %154

113:                                              ; preds = %108
  %114 = load ptr, ptr %21, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = shl i32 %117, 2
  %119 = icmp slt i32 %115, %118
  br i1 %119, label %120, label %125

120:                                              ; preds = %113
  %121 = load i32, ptr %36, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %125, label %123

123:                                              ; preds = %120
  %124 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -7, ptr %124, align 4, !tbaa !9
  br label %153

125:                                              ; preds = %120, %113
  %126 = load ptr, ptr %25, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = icmp sge i32 1, %129
  br i1 %130, label %131, label %132

131:                                              ; preds = %125
  br label %135

132:                                              ; preds = %125
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %132, %131
  %136 = phi i32 [ 1, %131 ], [ %134, %132 ]
  %137 = icmp slt i32 %127, %136
  br i1 %137, label %138, label %140

138:                                              ; preds = %135
  %139 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -11, ptr %139, align 4, !tbaa !9
  br label %152

140:                                              ; preds = %135
  %141 = load ptr, ptr %27, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = icmp slt i32 %142, %144
  br i1 %145, label %146, label %151

146:                                              ; preds = %140
  %147 = load i32, ptr %37, align 4, !tbaa !9
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %151, label %149

149:                                              ; preds = %146
  %150 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -13, ptr %150, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %149, %146, %140
  br label %152

152:                                              ; preds = %151, %138
  br label %153

153:                                              ; preds = %152, %123
  br label %154

154:                                              ; preds = %153, %111
  br label %155

155:                                              ; preds = %154, %96
  br label %156

156:                                              ; preds = %155, %90
  br label %157

157:                                              ; preds = %156, %84
  %158 = load ptr, ptr %28, align 8, !tbaa !5
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = icmp eq i32 %159, 0
  br i1 %160, label %161, label %183

161:                                              ; preds = %157
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  %163 = load ptr, ptr %16, align 8, !tbaa !5
  %164 = load ptr, ptr %18, align 8, !tbaa !5
  %165 = load i32, ptr %30, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds %struct.complex, ptr %164, i64 %166
  %168 = load ptr, ptr %19, align 8, !tbaa !5
  %169 = load ptr, ptr %20, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.complex, ptr %169, i64 1
  %171 = load ptr, ptr %22, align 8, !tbaa !5
  %172 = getelementptr inbounds i32, ptr %171, i64 1
  %173 = load ptr, ptr %23, align 8, !tbaa !5
  %174 = getelementptr inbounds i32, ptr %173, i64 1
  %175 = load ptr, ptr %26, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.complex, ptr %175, i64 1
  %177 = load ptr, ptr %28, align 8, !tbaa !5
  call void @chetrf_aa_2stage_(ptr noundef %162, ptr noundef %163, ptr noundef %167, ptr noundef %168, ptr noundef %170, ptr noundef @c_n1, ptr noundef %172, ptr noundef %174, ptr noundef %176, ptr noundef @c_n1, ptr noundef %177)
  %178 = load ptr, ptr %26, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.complex, ptr %178, i64 1
  %180 = getelementptr inbounds %struct.complex, ptr %179, i32 0, i32 0
  %181 = load float, ptr %180, align 4, !tbaa !11
  %182 = fptosi float %181 to i32
  store i32 %182, ptr %35, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %161, %157
  %184 = load ptr, ptr %28, align 8, !tbaa !5
  %185 = load i32, ptr %184, align 4, !tbaa !9
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %187, label %192

187:                                              ; preds = %183
  %188 = load ptr, ptr %28, align 8, !tbaa !5
  %189 = load i32, ptr %188, align 4, !tbaa !9
  %190 = sub nsw i32 0, %189
  store i32 %190, ptr %33, align 4, !tbaa !9
  %191 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %33, i32 noundef 15)
  store i32 1, ptr %38, align 4
  br label %253

192:                                              ; preds = %183
  %193 = load i32, ptr %37, align 4, !tbaa !9
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %198, label %195

195:                                              ; preds = %192
  %196 = load i32, ptr %36, align 4, !tbaa !9
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %199

198:                                              ; preds = %195, %192
  store i32 1, ptr %38, align 4
  br label %253

199:                                              ; preds = %195
  br label %200

200:                                              ; preds = %199
  %201 = load ptr, ptr %15, align 8, !tbaa !5
  %202 = load ptr, ptr %16, align 8, !tbaa !5
  %203 = load ptr, ptr %18, align 8, !tbaa !5
  %204 = load i32, ptr %30, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds %struct.complex, ptr %203, i64 %205
  %207 = load ptr, ptr %19, align 8, !tbaa !5
  %208 = load ptr, ptr %20, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.complex, ptr %208, i64 1
  %210 = load ptr, ptr %21, align 8, !tbaa !5
  %211 = load ptr, ptr %22, align 8, !tbaa !5
  %212 = getelementptr inbounds i32, ptr %211, i64 1
  %213 = load ptr, ptr %23, align 8, !tbaa !5
  %214 = getelementptr inbounds i32, ptr %213, i64 1
  %215 = load ptr, ptr %26, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.complex, ptr %215, i64 1
  %217 = load ptr, ptr %27, align 8, !tbaa !5
  %218 = load ptr, ptr %28, align 8, !tbaa !5
  call void @chetrf_aa_2stage_(ptr noundef %201, ptr noundef %202, ptr noundef %206, ptr noundef %207, ptr noundef %209, ptr noundef %210, ptr noundef %212, ptr noundef %214, ptr noundef %216, ptr noundef %217, ptr noundef %218)
  %219 = load ptr, ptr %28, align 8, !tbaa !5
  %220 = load i32, ptr %219, align 4, !tbaa !9
  %221 = icmp eq i32 %220, 0
  br i1 %221, label %222, label %244

222:                                              ; preds = %200
  %223 = load ptr, ptr %15, align 8, !tbaa !5
  %224 = load ptr, ptr %16, align 8, !tbaa !5
  %225 = load ptr, ptr %17, align 8, !tbaa !5
  %226 = load ptr, ptr %18, align 8, !tbaa !5
  %227 = load i32, ptr %30, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds %struct.complex, ptr %226, i64 %228
  %230 = load ptr, ptr %19, align 8, !tbaa !5
  %231 = load ptr, ptr %20, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.complex, ptr %231, i64 1
  %233 = load ptr, ptr %21, align 8, !tbaa !5
  %234 = load ptr, ptr %22, align 8, !tbaa !5
  %235 = getelementptr inbounds i32, ptr %234, i64 1
  %236 = load ptr, ptr %23, align 8, !tbaa !5
  %237 = getelementptr inbounds i32, ptr %236, i64 1
  %238 = load ptr, ptr %24, align 8, !tbaa !5
  %239 = load i32, ptr %32, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds %struct.complex, ptr %238, i64 %240
  %242 = load ptr, ptr %25, align 8, !tbaa !5
  %243 = load ptr, ptr %28, align 8, !tbaa !5
  call void @chetrs_aa_2stage_(ptr noundef %223, ptr noundef %224, ptr noundef %225, ptr noundef %229, ptr noundef %230, ptr noundef %232, ptr noundef %233, ptr noundef %235, ptr noundef %237, ptr noundef %241, ptr noundef %242, ptr noundef %243)
  br label %244

244:                                              ; preds = %222, %200
  %245 = load i32, ptr %35, align 4, !tbaa !9
  %246 = sitofp i32 %245 to float
  %247 = load ptr, ptr %26, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.complex, ptr %247, i64 1
  %249 = getelementptr inbounds %struct.complex, ptr %248, i32 0, i32 0
  store float %246, ptr %249, align 4, !tbaa !11
  %250 = load ptr, ptr %26, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.complex, ptr %250, i64 1
  %252 = getelementptr inbounds %struct.complex, ptr %251, i32 0, i32 1
  store float 0.000000e+00, ptr %252, align 4, !tbaa !14
  store i32 1, ptr %38, align 4
  br label %253

253:                                              ; preds = %244, %198, %187
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  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
  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_aa_2stage_(ptr noundef, ptr noundef, 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_aa_2stage_(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

; 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 [16 x i8], align 1

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

21:                                               ; preds = %14
  %22 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not92 = icmp eq i32 %22, 0
  br i1 %.not92, label %.thread97.sink.split, label %23

23:                                               ; preds = %21, %14
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %.thread97.sink.split, label %26

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

29:                                               ; preds = %26
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %24, i32 1)
  %31 = icmp slt i32 %30, %spec.select
  br i1 %31, label %.thread97.sink.split, label %32

32:                                               ; preds = %29
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = shl i32 %24, 2
  %35 = icmp sge i32 %33, %34
  %or.cond = select i1 %35, i1 true, i1 %20
  br i1 %or.cond, label %36, label %.thread97.sink.split

36:                                               ; preds = %32
  %37 = load i32, ptr %10, align 4, !tbaa !5
  %38 = icmp slt i32 %37, %spec.select
  br i1 %38, label %.thread97.sink.split, label %39

39:                                               ; preds = %36
  %40 = load i32, ptr %12, align 4, !tbaa !5
  %41 = icmp sge i32 %40, %24
  %or.cond3 = select i1 %41, i1 true, i1 %18
  br i1 %or.cond3, label %42, label %.thread97.sink.split

42:                                               ; preds = %39
  %.pr = load i32, ptr %13, align 4, !tbaa !5
  %43 = icmp eq i32 %.pr, 0
  br i1 %43, label %.thread, label %.thread97

.thread:                                          ; preds = %42
  tail call void @chetrf_aa_2stage_(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull @c_n1, ptr noundef %7, ptr noundef %8, ptr noundef %11, ptr noundef nonnull @c_n1, ptr noundef nonnull %13) #4
  %44 = load float, ptr %11, align 4, !tbaa !9
  %45 = fptosi float %44 to i32
  %46 = sitofp i32 %45 to float
  %.pr96.pr = load i32, ptr %13, align 4, !tbaa !5
  %.not93 = icmp eq i32 %.pr96.pr, 0
  br i1 %.not93, label %50, label %.thread97

.thread97.sink.split:                             ; preds = %39, %36, %32, %29, %26, %23, %21
  %.sink = phi i32 [ -1, %21 ], [ -2, %23 ], [ -3, %26 ], [ -5, %29 ], [ -7, %32 ], [ -11, %36 ], [ -13, %39 ]
  store i32 %.sink, ptr %13, align 4, !tbaa !5
  br label %.thread97

.thread97:                                        ; preds = %.thread97.sink.split, %42, %.thread
  %47 = phi i32 [ %.pr96.pr, %.thread ], [ %.pr, %42 ], [ %.sink, %.thread97.sink.split ]
  %48 = sub nsw i32 0, %47
  store i32 %48, ptr %15, align 4, !tbaa !5
  %49 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %15, i32 noundef 15) #4
  br label %57

50:                                               ; preds = %.thread
  %or.cond5 = select i1 %18, i1 true, i1 %20
  br i1 %or.cond5, label %57, label %51

51:                                               ; preds = %50
  tail call void @chetrf_aa_2stage_(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13) #4
  %52 = load i32, ptr %13, align 4, !tbaa !5
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  tail call void @chetrs_aa_2stage_(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef nonnull %10, ptr noundef nonnull %13) #4
  br label %55

55:                                               ; preds = %54, %51
  store float %46, ptr %11, align 4, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %11, i64 4
  store float 0.000000e+00, ptr %56, align 4, !tbaa !12
  br label %57

57:                                               ; preds = %50, %55, %.thread97
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #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_aa_2stage_(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 i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @chetrs_aa_2stage_(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

; 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}


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