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

; 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__1 = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

68:                                               ; preds = %64
  %69 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -1, ptr %69, align 4, !tbaa !9
  br label %126

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

74:                                               ; preds = %70
  %75 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -2, ptr %75, align 4, !tbaa !9
  br label %125

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

80:                                               ; preds = %76
  %81 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -3, ptr %81, align 4, !tbaa !9
  br label %124

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

88:                                               ; preds = %82
  br label %92

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

92:                                               ; preds = %89, %88
  %93 = phi i32 [ 1, %88 ], [ %91, %89 ]
  %94 = icmp slt i32 %84, %93
  br i1 %94, label %95, label %97

95:                                               ; preds = %92
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -5, ptr %96, align 4, !tbaa !9
  br label %123

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

103:                                              ; preds = %97
  br label %107

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

107:                                              ; preds = %104, %103
  %108 = phi i32 [ 1, %103 ], [ %106, %104 ]
  %109 = icmp slt i32 %99, %108
  br i1 %109, label %110, label %112

110:                                              ; preds = %107
  %111 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -8, ptr %111, align 4, !tbaa !9
  br label %122

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

116:                                              ; preds = %112
  %117 = load i32, ptr %30, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %121, label %119

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

121:                                              ; preds = %119, %116, %112
  br label %122

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

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

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

125:                                              ; preds = %124, %74
  br label %126

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

130:                                              ; preds = %126
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %135

134:                                              ; preds = %130
  store i32 1, ptr %29, align 4, !tbaa !9
  br label %143

135:                                              ; preds = %130
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = call i32 @ilaenv_(ptr noundef @c__1, ptr noundef @.str.2, ptr noundef %136, ptr noundef %137, ptr noundef @c_n1, ptr noundef @c_n1, ptr noundef @c_n1, i32 noundef 6, i32 noundef 1)
  store i32 %138, ptr %28, align 4, !tbaa !9
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = load i32, ptr %28, align 4, !tbaa !9
  %142 = mul nsw i32 %140, %141
  store i32 %142, ptr %29, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %135, %134
  %144 = load i32, ptr %29, align 4, !tbaa !9
  %145 = sitofp i32 %144 to float
  %146 = load ptr, ptr %20, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.complex, ptr %146, i64 1
  %148 = getelementptr inbounds %struct.complex, ptr %147, i32 0, i32 0
  store float %145, ptr %148, align 4, !tbaa !11
  %149 = load ptr, ptr %20, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.complex, ptr %149, i64 1
  %151 = getelementptr inbounds %struct.complex, ptr %150, i32 0, i32 1
  store float 0.000000e+00, ptr %151, align 4, !tbaa !14
  br label %152

152:                                              ; preds = %143, %126
  %153 = load ptr, ptr %22, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %161

156:                                              ; preds = %152
  %157 = load ptr, ptr %22, align 8, !tbaa !5
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = sub nsw i32 0, %158
  store i32 %159, ptr %27, align 4, !tbaa !9
  %160 = call i32 @xerbla_(ptr noundef @.str.3, ptr noundef %27, i32 noundef 6)
  store i32 1, ptr %31, align 4
  br label %235

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

164:                                              ; preds = %161
  store i32 1, ptr %31, align 4
  br label %235

165:                                              ; preds = %161
  br label %166

166:                                              ; preds = %165
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = load ptr, ptr %15, align 8, !tbaa !5
  %170 = load i32, ptr %24, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds %struct.complex, ptr %169, i64 %171
  %173 = load ptr, ptr %16, align 8, !tbaa !5
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = getelementptr inbounds i32, ptr %174, i64 1
  %176 = load ptr, ptr %20, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.complex, ptr %176, i64 1
  %178 = load ptr, ptr %21, align 8, !tbaa !5
  %179 = load ptr, ptr %22, align 8, !tbaa !5
  call void @chetrf_(ptr noundef %167, ptr noundef %168, ptr noundef %172, ptr noundef %173, ptr noundef %175, ptr noundef %177, ptr noundef %178, ptr noundef %179)
  %180 = load ptr, ptr %22, align 8, !tbaa !5
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = icmp eq i32 %181, 0
  br i1 %182, label %183, label %226

183:                                              ; preds = %166
  %184 = load ptr, ptr %21, align 8, !tbaa !5
  %185 = load i32, ptr %184, align 4, !tbaa !9
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = icmp slt i32 %185, %187
  br i1 %188, label %189, label %206

189:                                              ; preds = %183
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  %193 = load ptr, ptr %15, align 8, !tbaa !5
  %194 = load i32, ptr %24, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %struct.complex, ptr %193, i64 %195
  %197 = load ptr, ptr %16, align 8, !tbaa !5
  %198 = load ptr, ptr %17, align 8, !tbaa !5
  %199 = getelementptr inbounds i32, ptr %198, i64 1
  %200 = load ptr, ptr %18, align 8, !tbaa !5
  %201 = load i32, ptr %26, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds %struct.complex, ptr %200, i64 %202
  %204 = load ptr, ptr %19, align 8, !tbaa !5
  %205 = load ptr, ptr %22, align 8, !tbaa !5
  call void @chetrs_(ptr noundef %190, ptr noundef %191, ptr noundef %192, ptr noundef %196, ptr noundef %197, ptr noundef %199, ptr noundef %203, ptr noundef %204, ptr noundef %205)
  br label %225

206:                                              ; preds = %183
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = load ptr, ptr %13, align 8, !tbaa !5
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = load i32, ptr %24, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds %struct.complex, ptr %210, i64 %212
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = load ptr, ptr %17, align 8, !tbaa !5
  %216 = getelementptr inbounds i32, ptr %215, i64 1
  %217 = load ptr, ptr %18, align 8, !tbaa !5
  %218 = load i32, ptr %26, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds %struct.complex, ptr %217, i64 %219
  %221 = load ptr, ptr %19, align 8, !tbaa !5
  %222 = load ptr, ptr %20, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.complex, ptr %222, i64 1
  %224 = load ptr, ptr %22, align 8, !tbaa !5
  call void @chetrs2_(ptr noundef %207, ptr noundef %208, ptr noundef %209, ptr noundef %213, ptr noundef %214, ptr noundef %216, ptr noundef %220, ptr noundef %221, ptr noundef %223, ptr noundef %224)
  br label %225

225:                                              ; preds = %206, %189
  br label %226

226:                                              ; preds = %225, %166
  %227 = load i32, ptr %29, align 4, !tbaa !9
  %228 = sitofp i32 %227 to float
  %229 = load ptr, ptr %20, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.complex, ptr %229, i64 1
  %231 = getelementptr inbounds %struct.complex, ptr %230, i32 0, i32 0
  store float %228, ptr %231, align 4, !tbaa !11
  %232 = load ptr, ptr %20, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.complex, ptr %232, i64 1
  %234 = getelementptr inbounds %struct.complex, ptr %233, i32 0, i32 1
  store float 0.000000e+00, ptr %234, align 4, !tbaa !14
  store i32 1, ptr %31, align 4
  br label %235

235:                                              ; preds = %226, %164, %156
  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 i32 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) #2

declare void @chetrf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @chetrs_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @chetrs2_(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__1 = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@c_n1 = external hidden global i32, align 4
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @chesv_(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
  %.not83 = icmp eq i32 %17, 0
  br i1 %.not83, label %.thread88.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 %.thread88.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 %.thread88.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 %.thread88.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 %.thread88.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 %.thread88.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 %.thread88

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

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

.thread:                                          ; preds = %35
  %37 = tail call i32 @ilaenv_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str.2, ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, i32 noundef 6, i32 noundef 1) #4
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %39 = mul nsw i32 %38, %37
  %40 = sitofp i32 %39 to float
  %.pr87.pr.pr = load i32, ptr %10, align 4, !tbaa !5
  store float %40, ptr %8, align 4, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %8, i64 4
  store float 0.000000e+00, ptr %41, align 4, !tbaa !13
  %.not84 = icmp eq i32 %.pr87.pr.pr, 0
  br i1 %.not84, label %45, label %.thread88

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

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

45:                                               ; preds = %.thread.thread94, %.thread
  %.098 = phi float [ 1.000000e+00, %.thread.thread94 ], [ %40, %.thread ]
  br i1 %14, label %57, label %46

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

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

53:                                               ; preds = %49
  tail call void @chetrs_(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 %55

54:                                               ; preds = %49
  tail call void @chetrs2_(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 %55

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

57:                                               ; preds = %45, %55, %.thread88
  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 i32 @ilaenv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @chetrf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @chetrs_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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