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

@.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 @dsysv_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 double, 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 double, 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 double, 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 double, 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 %182

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 double, 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 double, 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 double, ptr %175, i64 1
  %177 = load ptr, ptr %28, align 8, !tbaa !5
  call void @dsytrf_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 double, ptr %178, i64 1
  %180 = load double, ptr %179, align 8, !tbaa !11
  %181 = fptosi double %180 to i32
  store i32 %181, ptr %35, align 4, !tbaa !9
  br label %182

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

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

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

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

197:                                              ; preds = %194, %191
  store i32 1, ptr %38, align 4
  br label %248

198:                                              ; preds = %194
  br label %199

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

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

243:                                              ; preds = %221, %199
  %244 = load i32, ptr %35, align 4, !tbaa !9
  %245 = sitofp i32 %244 to double
  %246 = load ptr, ptr %26, align 8, !tbaa !5
  %247 = getelementptr inbounds double, ptr %246, i64 1
  store double %245, ptr %247, align 8, !tbaa !11
  store i32 1, ptr %38, align 4
  br label %248

248:                                              ; preds = %243, %197, %186
  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 @dsytrf_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 @dsytrs_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, !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 [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dsysv_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
  %.not91 = icmp eq i32 %22, 0
  br i1 %.not91, label %.thread96.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 %.thread96.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 %.thread96.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 %.thread96.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 %.thread96.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 %.thread96.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 %.thread96.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 %.thread96

.thread:                                          ; preds = %42
  tail call void @dsytrf_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 double, ptr %11, align 8, !tbaa !9
  %45 = fptosi double %44 to i32
  %46 = sitofp i32 %45 to double
  %.pr95.pr = load i32, ptr %13, align 4, !tbaa !5
  %.not92 = icmp eq i32 %.pr95.pr, 0
  br i1 %.not92, label %50, label %.thread96

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

.thread96:                                        ; preds = %.thread96.sink.split, %42, %.thread
  %47 = phi i32 [ %.pr95.pr, %.thread ], [ %.pr, %42 ], [ %.sink, %.thread96.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 %56

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

51:                                               ; preds = %50
  tail call void @dsytrf_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 @dsytrs_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 double %46, ptr %11, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %50, %55, %.thread96
  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 @dsytrf_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 @dsytrs_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, !10, i64 0}
!10 = !{!"double", !7, i64 0}


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