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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

70:                                               ; preds = %66
  %71 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -1, ptr %71, align 4, !tbaa !9
  br label %144

72:                                               ; preds = %66, %11
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = icmp slt i32 %74, 0
  br i1 %75, label %76, label %78

76:                                               ; preds = %72
  %77 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -2, ptr %77, align 4, !tbaa !9
  br label %143

78:                                               ; preds = %72
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  %80 = load i32, ptr %79, align 4, !tbaa !9
  %81 = icmp slt i32 %80, 0
  br i1 %81, label %82, label %84

82:                                               ; preds = %78
  %83 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -3, ptr %83, align 4, !tbaa !9
  br label %142

84:                                               ; preds = %78
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  %86 = load i32, ptr %85, align 4, !tbaa !9
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = icmp sge i32 1, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %84
  br label %94

91:                                               ; preds = %84
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = load i32, ptr %92, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %91, %90
  %95 = phi i32 [ 1, %90 ], [ %93, %91 ]
  %96 = icmp slt i32 %86, %95
  br i1 %96, label %97, label %99

97:                                               ; preds = %94
  %98 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -5, ptr %98, align 4, !tbaa !9
  br label %141

99:                                               ; preds = %94
  %100 = load ptr, ptr %19, align 8, !tbaa !5
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = icmp sge i32 1, %103
  br i1 %104, label %105, label %106

105:                                              ; preds = %99
  br label %109

106:                                              ; preds = %99
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = load i32, ptr %107, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %106, %105
  %110 = phi i32 [ 1, %105 ], [ %108, %106 ]
  %111 = icmp slt i32 %101, %110
  br i1 %111, label %112, label %114

112:                                              ; preds = %109
  %113 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -8, ptr %113, align 4, !tbaa !9
  br label %140

114:                                              ; preds = %109
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = shl i32 %116, 1
  store i32 %117, ptr %27, align 4, !tbaa !9
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = mul nsw i32 %119, 3
  %121 = sub nsw i32 %120, 2
  store i32 %121, ptr %28, align 4, !tbaa !9
  %122 = load ptr, ptr %21, align 8, !tbaa !5
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = load i32, ptr %27, align 4, !tbaa !9
  %125 = load i32, ptr %28, align 4, !tbaa !9
  %126 = icmp sge i32 %124, %125
  br i1 %126, label %127, label %129

127:                                              ; preds = %114
  %128 = load i32, ptr %27, align 4, !tbaa !9
  br label %131

129:                                              ; preds = %114
  %130 = load i32, ptr %28, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %129, %127
  %132 = phi i32 [ %128, %127 ], [ %130, %129 ]
  %133 = icmp slt i32 %123, %132
  br i1 %133, label %134, label %139

134:                                              ; preds = %131
  %135 = load i32, ptr %32, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %139, label %137

137:                                              ; preds = %134
  %138 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -10, ptr %138, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %137, %134, %131
  br label %140

140:                                              ; preds = %139, %112
  br label %141

141:                                              ; preds = %140, %97
  br label %142

142:                                              ; preds = %141, %82
  br label %143

143:                                              ; preds = %142, %76
  br label %144

144:                                              ; preds = %143, %70
  %145 = load ptr, ptr %22, align 8, !tbaa !5
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %148, label %200

148:                                              ; preds = %144
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = load i32, ptr %24, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = getelementptr inbounds i32, ptr %156, i64 1
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  %159 = getelementptr inbounds double, ptr %158, i64 1
  %160 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dsytrf_aa_(ptr noundef %149, ptr noundef %150, ptr noundef %154, ptr noundef %155, ptr noundef %157, ptr noundef %159, ptr noundef @c_n1, ptr noundef %160)
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  %162 = getelementptr inbounds double, ptr %161, i64 1
  %163 = load double, ptr %162, align 8, !tbaa !11
  %164 = fptosi double %163 to i32
  store i32 %164, ptr %29, align 4, !tbaa !9
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = load i32, ptr %24, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds double, ptr %168, i64 %170
  %172 = load ptr, ptr %16, align 8, !tbaa !5
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = getelementptr inbounds i32, ptr %173, i64 1
  %175 = load ptr, ptr %18, align 8, !tbaa !5
  %176 = load i32, ptr %26, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds double, ptr %175, i64 %177
  %179 = load ptr, ptr %19, align 8, !tbaa !5
  %180 = load ptr, ptr %20, align 8, !tbaa !5
  %181 = getelementptr inbounds double, ptr %180, i64 1
  %182 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dsytrs_aa_(ptr noundef %165, ptr noundef %166, ptr noundef %167, ptr noundef %171, ptr noundef %172, ptr noundef %174, ptr noundef %178, ptr noundef %179, ptr noundef %181, ptr noundef @c_n1, ptr noundef %182)
  %183 = load ptr, ptr %20, align 8, !tbaa !5
  %184 = getelementptr inbounds double, ptr %183, i64 1
  %185 = load double, ptr %184, align 8, !tbaa !11
  %186 = fptosi double %185 to i32
  store i32 %186, ptr %30, align 4, !tbaa !9
  %187 = load i32, ptr %29, align 4, !tbaa !9
  %188 = load i32, ptr %30, align 4, !tbaa !9
  %189 = icmp sge i32 %187, %188
  br i1 %189, label %190, label %192

190:                                              ; preds = %148
  %191 = load i32, ptr %29, align 4, !tbaa !9
  br label %194

192:                                              ; preds = %148
  %193 = load i32, ptr %30, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %192, %190
  %195 = phi i32 [ %191, %190 ], [ %193, %192 ]
  store i32 %195, ptr %31, align 4, !tbaa !9
  %196 = load i32, ptr %31, align 4, !tbaa !9
  %197 = sitofp i32 %196 to double
  %198 = load ptr, ptr %20, align 8, !tbaa !5
  %199 = getelementptr inbounds double, ptr %198, i64 1
  store double %197, ptr %199, align 8, !tbaa !11
  br label %200

200:                                              ; preds = %194, %144
  %201 = load ptr, ptr %22, align 8, !tbaa !5
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %209

204:                                              ; preds = %200
  %205 = load ptr, ptr %22, align 8, !tbaa !5
  %206 = load i32, ptr %205, align 4, !tbaa !9
  %207 = sub nsw i32 0, %206
  store i32 %207, ptr %27, align 4, !tbaa !9
  %208 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %27, i32 noundef 9)
  store i32 1, ptr %33, align 4
  br label %256

209:                                              ; preds = %200
  %210 = load i32, ptr %32, align 4, !tbaa !9
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %213

212:                                              ; preds = %209
  store i32 1, ptr %33, align 4
  br label %256

213:                                              ; preds = %209
  br label %214

214:                                              ; preds = %213
  %215 = load ptr, ptr %12, align 8, !tbaa !5
  %216 = load ptr, ptr %13, align 8, !tbaa !5
  %217 = load ptr, ptr %15, align 8, !tbaa !5
  %218 = load i32, ptr %24, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %217, i64 %219
  %221 = load ptr, ptr %16, align 8, !tbaa !5
  %222 = load ptr, ptr %17, align 8, !tbaa !5
  %223 = getelementptr inbounds i32, ptr %222, i64 1
  %224 = load ptr, ptr %20, align 8, !tbaa !5
  %225 = getelementptr inbounds double, ptr %224, i64 1
  %226 = load ptr, ptr %21, align 8, !tbaa !5
  %227 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dsytrf_aa_(ptr noundef %215, ptr noundef %216, ptr noundef %220, ptr noundef %221, ptr noundef %223, ptr noundef %225, ptr noundef %226, ptr noundef %227)
  %228 = load ptr, ptr %22, align 8, !tbaa !5
  %229 = load i32, ptr %228, align 4, !tbaa !9
  %230 = icmp eq i32 %229, 0
  br i1 %230, label %231, label %251

231:                                              ; preds = %214
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  %233 = load ptr, ptr %13, align 8, !tbaa !5
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = load ptr, ptr %15, align 8, !tbaa !5
  %236 = load i32, ptr %24, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds double, ptr %235, i64 %237
  %239 = load ptr, ptr %16, align 8, !tbaa !5
  %240 = load ptr, ptr %17, align 8, !tbaa !5
  %241 = getelementptr inbounds i32, ptr %240, i64 1
  %242 = load ptr, ptr %18, align 8, !tbaa !5
  %243 = load i32, ptr %26, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %242, i64 %244
  %246 = load ptr, ptr %19, align 8, !tbaa !5
  %247 = load ptr, ptr %20, align 8, !tbaa !5
  %248 = getelementptr inbounds double, ptr %247, i64 1
  %249 = load ptr, ptr %21, align 8, !tbaa !5
  %250 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dsytrs_aa_(ptr noundef %232, ptr noundef %233, ptr noundef %234, ptr noundef %238, ptr noundef %239, ptr noundef %241, ptr noundef %245, ptr noundef %246, ptr noundef %248, ptr noundef %249, ptr noundef %250)
  br label %251

251:                                              ; preds = %231, %214
  %252 = load i32, ptr %31, align 4, !tbaa !9
  %253 = sitofp i32 %252 to double
  %254 = load ptr, ptr %20, align 8, !tbaa !5
  %255 = getelementptr inbounds double, ptr %254, i64 1
  store double %253, ptr %255, align 8, !tbaa !11
  store i32 1, ptr %33, align 4
  br label %256

256:                                              ; preds = %251, %212, %204
  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
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #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_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

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

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

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

30:                                               ; preds = %27
  %31 = shl nuw i32 %19, 1
  %32 = mul nuw nsw i32 %19, 3
  %33 = add nsw i32 %32, -2
  %34 = load i32, ptr %9, align 4, !tbaa !5
  %35 = tail call i32 @llvm.smax.i32(i32 %31, i32 %33)
  %36 = icmp sge i32 %34, %35
  %or.cond = select i1 %36, i1 true, i1 %14
  br i1 %or.cond, label %37, label %.thread101.sink.split

37:                                               ; preds = %30
  %.pr = load i32, ptr %10, align 4, !tbaa !5
  %38 = icmp eq i32 %.pr, 0
  br i1 %38, label %.thread, label %.thread101

.thread:                                          ; preds = %37
  tail call void @dsytrf_aa_(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef %8, ptr noundef nonnull @c_n1, ptr noundef nonnull %10) #4
  %39 = load double, ptr %8, align 8, !tbaa !9
  %40 = fptosi double %39 to i32
  tail call void @dsytrs_aa_(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 %8, ptr noundef nonnull @c_n1, ptr noundef nonnull %10) #4
  %41 = load double, ptr %8, align 8, !tbaa !9
  %42 = fptosi double %41 to i32
  %43 = tail call i32 @llvm.smax.i32(i32 %40, i32 %42)
  %44 = sitofp i32 %43 to double
  store double %44, ptr %8, align 8, !tbaa !9
  %.pr100.pr = load i32, ptr %10, align 4, !tbaa !5
  %.not97 = icmp eq i32 %.pr100.pr, 0
  br i1 %.not97, label %48, label %.thread101

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

.thread101:                                       ; preds = %.thread101.sink.split, %37, %.thread
  %45 = phi i32 [ %.pr100.pr, %.thread ], [ %.pr, %37 ], [ %.sink, %.thread101.sink.split ]
  %46 = sub nsw i32 0, %45
  store i32 %46, ptr %12, align 4, !tbaa !5
  %47 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %12, i32 noundef 9) #4
  br label %54

48:                                               ; preds = %.thread
  br i1 %14, label %54, label %49

49:                                               ; preds = %48
  tail call void @dsytrf_aa_(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
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  tail call void @dsytrs_aa_(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 %8, ptr noundef nonnull %9, ptr noundef nonnull %10) #4
  br label %53

53:                                               ; preds = %52, %49
  store double %44, ptr %8, align 8, !tbaa !9
  br label %54

54:                                               ; preds = %48, %53, %.thread101
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #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_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; 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.smax.i32(i32, i32) #3

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