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

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

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

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

67:                                               ; preds = %63
  %68 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -1, ptr %68, align 4, !tbaa !9
  br label %125

69:                                               ; preds = %63, %11
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = icmp slt i32 %71, 0
  br i1 %72, label %73, label %75

73:                                               ; preds = %69
  %74 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -2, ptr %74, align 4, !tbaa !9
  br label %124

75:                                               ; preds = %69
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = icmp slt i32 %77, 0
  br i1 %78, label %79, label %81

79:                                               ; preds = %75
  %80 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -3, ptr %80, align 4, !tbaa !9
  br label %123

81:                                               ; preds = %75
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = icmp sge i32 1, %85
  br i1 %86, label %87, label %88

87:                                               ; preds = %81
  br label %91

88:                                               ; preds = %81
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = load i32, ptr %89, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %88, %87
  %92 = phi i32 [ 1, %87 ], [ %90, %88 ]
  %93 = icmp slt i32 %83, %92
  br i1 %93, label %94, label %96

94:                                               ; preds = %91
  %95 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -5, ptr %95, align 4, !tbaa !9
  br label %122

96:                                               ; preds = %91
  %97 = load ptr, ptr %19, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = icmp sge i32 1, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %96
  br label %106

103:                                              ; preds = %96
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %103, %102
  %107 = phi i32 [ 1, %102 ], [ %105, %103 ]
  %108 = icmp slt i32 %98, %107
  br i1 %108, label %109, label %111

109:                                              ; preds = %106
  %110 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -8, ptr %110, align 4, !tbaa !9
  br label %121

111:                                              ; preds = %106
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = icmp slt i32 %113, 1
  br i1 %114, label %115, label %120

115:                                              ; preds = %111
  %116 = load i32, ptr %29, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %120, label %118

118:                                              ; preds = %115
  %119 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -10, ptr %119, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %118, %115, %111
  br label %121

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

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

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

124:                                              ; preds = %123, %73
  br label %125

125:                                              ; preds = %124, %67
  %126 = load ptr, ptr %22, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %161

129:                                              ; preds = %125
  %130 = load ptr, ptr %13, 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 %134

133:                                              ; preds = %129
  store i32 1, ptr %28, align 4, !tbaa !9
  br label %152

134:                                              ; preds = %129
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = load i32, ptr %24, align 4, !tbaa !9
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds %struct.complex, ptr %137, i64 %139
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = load ptr, ptr %17, align 8, !tbaa !5
  %143 = getelementptr inbounds i32, ptr %142, i64 1
  %144 = load ptr, ptr %20, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.complex, ptr %144, i64 1
  %146 = load ptr, ptr %22, align 8, !tbaa !5
  call void @csytrf_(ptr noundef %135, ptr noundef %136, ptr noundef %140, ptr noundef %141, ptr noundef %143, ptr noundef %145, ptr noundef @c_n1, ptr noundef %146)
  %147 = load ptr, ptr %20, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.complex, ptr %147, i64 1
  %149 = getelementptr inbounds %struct.complex, ptr %148, i32 0, i32 0
  %150 = load float, ptr %149, align 4, !tbaa !11
  %151 = fptosi float %150 to i32
  store i32 %151, ptr %28, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %134, %133
  %153 = load i32, ptr %28, align 4, !tbaa !9
  %154 = sitofp i32 %153 to float
  %155 = load ptr, ptr %20, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.complex, ptr %155, i64 1
  %157 = getelementptr inbounds %struct.complex, ptr %156, i32 0, i32 0
  store float %154, ptr %157, align 4, !tbaa !11
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.complex, ptr %158, i64 1
  %160 = getelementptr inbounds %struct.complex, ptr %159, i32 0, i32 1
  store float 0.000000e+00, ptr %160, align 4, !tbaa !14
  br label %161

161:                                              ; preds = %152, %125
  %162 = load ptr, ptr %22, align 8, !tbaa !5
  %163 = load i32, ptr %162, align 4, !tbaa !9
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %170

165:                                              ; preds = %161
  %166 = load ptr, ptr %22, align 8, !tbaa !5
  %167 = load i32, ptr %166, align 4, !tbaa !9
  %168 = sub nsw i32 0, %167
  store i32 %168, ptr %27, align 4, !tbaa !9
  %169 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %27, i32 noundef 6)
  store i32 1, ptr %30, align 4
  br label %244

170:                                              ; preds = %161
  %171 = load i32, ptr %29, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %170
  store i32 1, ptr %30, align 4
  br label %244

174:                                              ; preds = %170
  br label %175

175:                                              ; preds = %174
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = load i32, ptr %24, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds %struct.complex, ptr %178, i64 %180
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  %183 = load ptr, ptr %17, align 8, !tbaa !5
  %184 = getelementptr inbounds i32, ptr %183, i64 1
  %185 = load ptr, ptr %20, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.complex, ptr %185, i64 1
  %187 = load ptr, ptr %21, align 8, !tbaa !5
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  call void @csytrf_(ptr noundef %176, ptr noundef %177, ptr noundef %181, ptr noundef %182, ptr noundef %184, ptr noundef %186, ptr noundef %187, ptr noundef %188)
  %189 = load ptr, ptr %22, align 8, !tbaa !5
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %191 = icmp eq i32 %190, 0
  br i1 %191, label %192, label %235

192:                                              ; preds = %175
  %193 = load ptr, ptr %21, align 8, !tbaa !5
  %194 = load i32, ptr %193, align 4, !tbaa !9
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = icmp slt i32 %194, %196
  br i1 %197, label %198, label %215

198:                                              ; preds = %192
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = load ptr, ptr %15, align 8, !tbaa !5
  %203 = load i32, ptr %24, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds %struct.complex, ptr %202, i64 %204
  %206 = load ptr, ptr %16, align 8, !tbaa !5
  %207 = load ptr, ptr %17, align 8, !tbaa !5
  %208 = getelementptr inbounds i32, ptr %207, i64 1
  %209 = load ptr, ptr %18, align 8, !tbaa !5
  %210 = load i32, ptr %26, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds %struct.complex, ptr %209, i64 %211
  %213 = load ptr, ptr %19, align 8, !tbaa !5
  %214 = load ptr, ptr %22, align 8, !tbaa !5
  call void @csytrs_(ptr noundef %199, ptr noundef %200, ptr noundef %201, ptr noundef %205, ptr noundef %206, ptr noundef %208, ptr noundef %212, ptr noundef %213, ptr noundef %214)
  br label %234

215:                                              ; preds = %192
  %216 = load ptr, ptr %12, align 8, !tbaa !5
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  %218 = load ptr, ptr %14, align 8, !tbaa !5
  %219 = load ptr, ptr %15, align 8, !tbaa !5
  %220 = load i32, ptr %24, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds %struct.complex, ptr %219, i64 %221
  %223 = load ptr, ptr %16, align 8, !tbaa !5
  %224 = load ptr, ptr %17, align 8, !tbaa !5
  %225 = getelementptr inbounds i32, ptr %224, i64 1
  %226 = load ptr, ptr %18, align 8, !tbaa !5
  %227 = load i32, ptr %26, 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 %22, align 8, !tbaa !5
  call void @csytrs2_(ptr noundef %216, ptr noundef %217, ptr noundef %218, ptr noundef %222, ptr noundef %223, ptr noundef %225, ptr noundef %229, ptr noundef %230, ptr noundef %232, ptr noundef %233)
  br label %234

234:                                              ; preds = %215, %198
  br label %235

235:                                              ; preds = %234, %175
  %236 = load i32, ptr %28, align 4, !tbaa !9
  %237 = sitofp i32 %236 to float
  %238 = load ptr, ptr %20, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.complex, ptr %238, i64 1
  %240 = getelementptr inbounds %struct.complex, ptr %239, i32 0, i32 0
  store float %237, ptr %240, align 4, !tbaa !11
  %241 = load ptr, ptr %20, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.complex, ptr %241, i64 1
  %243 = getelementptr inbounds %struct.complex, ptr %242, i32 0, i32 1
  store float 0.000000e+00, ptr %243, align 4, !tbaa !14
  store i32 1, ptr %30, align 4
  br label %244

244:                                              ; preds = %235, %173, %165
  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 @csytrf_(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 @csytrs_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @csytrs2_(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 [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @csysv_(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
  %.not88 = icmp eq i32 %17, 0
  br i1 %.not88, label %.thread93.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 %.thread93.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 %.thread93.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 %.thread93.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 %.thread93.sink.split, label %30

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

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

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

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

.thread:                                          ; preds = %35
  tail call void @csytrf_(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
  %37 = load float, ptr %8, align 4, !tbaa !11
  %38 = fptosi float %37 to i32
  %39 = sitofp i32 %38 to float
  %.pr92.pr.pr = load i32, ptr %10, align 4, !tbaa !5
  store float %39, ptr %8, align 4, !tbaa !11
  %40 = getelementptr inbounds i8, ptr %8, i64 4
  store float 0.000000e+00, ptr %40, align 4, !tbaa !13
  %.not89 = icmp eq i32 %.pr92.pr.pr, 0
  br i1 %.not89, label %44, label %.thread93

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

.thread93:                                        ; preds = %.thread93.sink.split, %33, %.thread
  %41 = phi i32 [ %.pr92.pr.pr, %.thread ], [ %.pr, %33 ], [ %.sink, %.thread93.sink.split ]
  %42 = sub nsw i32 0, %41
  store i32 %42, ptr %12, align 4, !tbaa !5
  %43 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %12, i32 noundef 6) #4
  br label %56

44:                                               ; preds = %.thread.thread99, %.thread
  %.0103 = phi float [ 1.000000e+00, %.thread.thread99 ], [ %39, %.thread ]
  br i1 %14, label %56, label %45

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

48:                                               ; preds = %45
  %49 = load i32, ptr %9, align 4, !tbaa !5
  %50 = load i32, ptr %1, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  tail call void @csytrs_(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %7, ptr noundef nonnull %10) #4
  br label %54

53:                                               ; preds = %48
  tail call void @csytrs2_(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 %10) #4
  br label %54

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

56:                                               ; preds = %44, %54, %.thread93
  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 @csytrf_(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 @csytrs_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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