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

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

; Function Attrs: nounwind uwtable
define dso_local void @chesv_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 %struct.complex, 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 %struct.complex, 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 %struct.complex, 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 %206

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 %struct.complex, 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 %struct.complex, ptr %158, i64 1
  %160 = load ptr, ptr %22, align 8, !tbaa !5
  call void @chetrf_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 %struct.complex, ptr %161, i64 1
  %163 = getelementptr inbounds %struct.complex, ptr %162, i32 0, i32 0
  %164 = load float, ptr %163, align 4, !tbaa !11
  %165 = fptosi float %164 to i32
  store i32 %165, ptr %29, align 4, !tbaa !9
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  %168 = load ptr, ptr %14, 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 %18, align 8, !tbaa !5
  %177 = load i32, ptr %26, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds %struct.complex, ptr %176, i64 %178
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = load ptr, ptr %20, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.complex, ptr %181, i64 1
  %183 = load ptr, ptr %22, align 8, !tbaa !5
  call void @chetrs_aa_(ptr noundef %166, ptr noundef %167, ptr noundef %168, ptr noundef %172, ptr noundef %173, ptr noundef %175, ptr noundef %179, ptr noundef %180, ptr noundef %182, ptr noundef @c_n1, ptr noundef %183)
  %184 = load ptr, ptr %20, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.complex, ptr %184, i64 1
  %186 = getelementptr inbounds %struct.complex, ptr %185, i32 0, i32 0
  %187 = load float, ptr %186, align 4, !tbaa !11
  %188 = fptosi float %187 to i32
  store i32 %188, ptr %30, align 4, !tbaa !9
  %189 = load i32, ptr %29, align 4, !tbaa !9
  %190 = load i32, ptr %30, align 4, !tbaa !9
  %191 = icmp sge i32 %189, %190
  br i1 %191, label %192, label %194

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

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

196:                                              ; preds = %194, %192
  %197 = phi i32 [ %193, %192 ], [ %195, %194 ]
  store i32 %197, ptr %31, align 4, !tbaa !9
  %198 = load i32, ptr %31, align 4, !tbaa !9
  %199 = sitofp i32 %198 to float
  %200 = load ptr, ptr %20, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.complex, ptr %200, i64 1
  %202 = getelementptr inbounds %struct.complex, ptr %201, i32 0, i32 0
  store float %199, ptr %202, align 4, !tbaa !11
  %203 = load ptr, ptr %20, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.complex, ptr %203, i64 1
  %205 = getelementptr inbounds %struct.complex, ptr %204, i32 0, i32 1
  store float 0.000000e+00, ptr %205, align 4, !tbaa !14
  br label %206

206:                                              ; preds = %196, %144
  %207 = load ptr, ptr %22, align 8, !tbaa !5
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %215

210:                                              ; preds = %206
  %211 = load ptr, ptr %22, align 8, !tbaa !5
  %212 = load i32, ptr %211, align 4, !tbaa !9
  %213 = sub nsw i32 0, %212
  store i32 %213, ptr %27, align 4, !tbaa !9
  %214 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %27, i32 noundef 9)
  store i32 1, ptr %33, align 4
  br label %266

215:                                              ; preds = %206
  %216 = load i32, ptr %32, align 4, !tbaa !9
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %219

218:                                              ; preds = %215
  store i32 1, ptr %33, align 4
  br label %266

219:                                              ; preds = %215
  br label %220

220:                                              ; preds = %219
  %221 = load ptr, ptr %12, align 8, !tbaa !5
  %222 = load ptr, ptr %13, align 8, !tbaa !5
  %223 = load ptr, ptr %15, align 8, !tbaa !5
  %224 = load i32, ptr %24, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds %struct.complex, ptr %223, i64 %225
  %227 = load ptr, ptr %16, align 8, !tbaa !5
  %228 = load ptr, ptr %17, align 8, !tbaa !5
  %229 = getelementptr inbounds i32, ptr %228, i64 1
  %230 = load ptr, ptr %20, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.complex, ptr %230, i64 1
  %232 = load ptr, ptr %21, align 8, !tbaa !5
  %233 = load ptr, ptr %22, align 8, !tbaa !5
  call void @chetrf_aa_(ptr noundef %221, ptr noundef %222, ptr noundef %226, ptr noundef %227, ptr noundef %229, ptr noundef %231, ptr noundef %232, ptr noundef %233)
  %234 = load ptr, ptr %22, align 8, !tbaa !5
  %235 = load i32, ptr %234, align 4, !tbaa !9
  %236 = icmp eq i32 %235, 0
  br i1 %236, label %237, label %257

237:                                              ; preds = %220
  %238 = load ptr, ptr %12, align 8, !tbaa !5
  %239 = load ptr, ptr %13, align 8, !tbaa !5
  %240 = load ptr, ptr %14, align 8, !tbaa !5
  %241 = load ptr, ptr %15, align 8, !tbaa !5
  %242 = load i32, ptr %24, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds %struct.complex, ptr %241, i64 %243
  %245 = load ptr, ptr %16, align 8, !tbaa !5
  %246 = load ptr, ptr %17, align 8, !tbaa !5
  %247 = getelementptr inbounds i32, ptr %246, i64 1
  %248 = load ptr, ptr %18, align 8, !tbaa !5
  %249 = load i32, ptr %26, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds %struct.complex, ptr %248, i64 %250
  %252 = load ptr, ptr %19, align 8, !tbaa !5
  %253 = load ptr, ptr %20, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.complex, ptr %253, i64 1
  %255 = load ptr, ptr %21, align 8, !tbaa !5
  %256 = load ptr, ptr %22, align 8, !tbaa !5
  call void @chetrs_aa_(ptr noundef %238, ptr noundef %239, ptr noundef %240, ptr noundef %244, ptr noundef %245, ptr noundef %247, ptr noundef %251, ptr noundef %252, ptr noundef %254, ptr noundef %255, ptr noundef %256)
  br label %257

257:                                              ; preds = %237, %220
  %258 = load i32, ptr %31, align 4, !tbaa !9
  %259 = sitofp i32 %258 to float
  %260 = load ptr, ptr %20, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.complex, ptr %260, i64 1
  %262 = getelementptr inbounds %struct.complex, ptr %261, i32 0, i32 0
  store float %259, ptr %262, align 4, !tbaa !11
  %263 = load ptr, ptr %20, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.complex, ptr %263, i64 1
  %265 = getelementptr inbounds %struct.complex, ptr %264, i32 0, i32 1
  store float 0.000000e+00, ptr %265, align 4, !tbaa !14
  store i32 1, ptr %33, align 4
  br label %266

266:                                              ; preds = %257, %218, %210
  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 @chetrf_aa_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @chetrs_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, !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 [10 x i8], align 1

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

.thread:                                          ; preds = %37
  tail call void @chetrf_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 float, ptr %8, align 4, !tbaa !9
  %40 = fptosi float %39 to i32
  tail call void @chetrs_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 float, ptr %8, align 4, !tbaa !9
  %42 = fptosi float %41 to i32
  %43 = tail call i32 @llvm.smax.i32(i32 %40, i32 %42)
  %44 = sitofp i32 %43 to float
  store float %44, ptr %8, align 4, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %8, i64 4
  store float 0.000000e+00, ptr %45, align 4, !tbaa !12
  %.pr102.pr = load i32, ptr %10, align 4, !tbaa !5
  %.not99 = icmp eq i32 %.pr102.pr, 0
  br i1 %.not99, label %49, label %.thread103

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

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

49:                                               ; preds = %.thread
  br i1 %14, label %55, label %50

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

53:                                               ; preds = %50
  tail call void @chetrs_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 %54

54:                                               ; preds = %53, %50
  store float %44, ptr %8, align 4, !tbaa !9
  store float 0.000000e+00, ptr %45, align 4, !tbaa !12
  br label %55

55:                                               ; preds = %49, %54, %.thread103
  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 @chetrf_aa_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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


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