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

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

; Function Attrs: nounwind uwtable
define dso_local void @cptsvx_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16) #0 {
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca float, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store ptr %0, ptr %18, align 8, !tbaa !5
  store ptr %1, ptr %19, align 8, !tbaa !5
  store ptr %2, ptr %20, align 8, !tbaa !5
  store ptr %3, ptr %21, align 8, !tbaa !5
  store ptr %4, ptr %22, align 8, !tbaa !5
  store ptr %5, ptr %23, align 8, !tbaa !5
  store ptr %6, ptr %24, align 8, !tbaa !5
  store ptr %7, ptr %25, align 8, !tbaa !5
  store ptr %8, ptr %26, align 8, !tbaa !5
  store ptr %9, ptr %27, align 8, !tbaa !5
  store ptr %10, ptr %28, align 8, !tbaa !5
  store ptr %11, ptr %29, align 8, !tbaa !5
  store ptr %12, ptr %30, align 8, !tbaa !5
  store ptr %13, ptr %31, align 8, !tbaa !5
  store ptr %14, ptr %32, align 8, !tbaa !5
  store ptr %15, ptr %33, align 8, !tbaa !5
  store ptr %16, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #3
  %43 = load ptr, ptr %21, align 8, !tbaa !5
  %44 = getelementptr inbounds float, ptr %43, i32 -1
  store ptr %44, ptr %21, align 8, !tbaa !5
  %45 = load ptr, ptr %22, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.complex, ptr %45, i32 -1
  store ptr %46, ptr %22, align 8, !tbaa !5
  %47 = load ptr, ptr %23, align 8, !tbaa !5
  %48 = getelementptr inbounds float, ptr %47, i32 -1
  store ptr %48, ptr %23, align 8, !tbaa !5
  %49 = load ptr, ptr %24, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.complex, ptr %49, i32 -1
  store ptr %50, ptr %24, align 8, !tbaa !5
  %51 = load ptr, ptr %26, align 8, !tbaa !5
  %52 = load i32, ptr %51, align 4, !tbaa !9
  store i32 %52, ptr %35, align 4, !tbaa !9
  %53 = load i32, ptr %35, align 4, !tbaa !9
  %54 = mul nsw i32 %53, 1
  %55 = add nsw i32 1, %54
  store i32 %55, ptr %36, align 4, !tbaa !9
  %56 = load i32, ptr %36, align 4, !tbaa !9
  %57 = load ptr, ptr %25, align 8, !tbaa !5
  %58 = sext i32 %56 to i64
  %59 = sub i64 0, %58
  %60 = getelementptr inbounds %struct.complex, ptr %57, i64 %59
  store ptr %60, ptr %25, align 8, !tbaa !5
  %61 = load ptr, ptr %28, align 8, !tbaa !5
  %62 = load i32, ptr %61, align 4, !tbaa !9
  store i32 %62, ptr %37, align 4, !tbaa !9
  %63 = load i32, ptr %37, align 4, !tbaa !9
  %64 = mul nsw i32 %63, 1
  %65 = add nsw i32 1, %64
  store i32 %65, ptr %38, align 4, !tbaa !9
  %66 = load i32, ptr %38, align 4, !tbaa !9
  %67 = load ptr, ptr %27, align 8, !tbaa !5
  %68 = sext i32 %66 to i64
  %69 = sub i64 0, %68
  %70 = getelementptr inbounds %struct.complex, ptr %67, i64 %69
  store ptr %70, ptr %27, align 8, !tbaa !5
  %71 = load ptr, ptr %30, align 8, !tbaa !5
  %72 = getelementptr inbounds float, ptr %71, i32 -1
  store ptr %72, ptr %30, align 8, !tbaa !5
  %73 = load ptr, ptr %31, align 8, !tbaa !5
  %74 = getelementptr inbounds float, ptr %73, i32 -1
  store ptr %74, ptr %31, align 8, !tbaa !5
  %75 = load ptr, ptr %32, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.complex, ptr %75, i32 -1
  store ptr %76, ptr %32, align 8, !tbaa !5
  %77 = load ptr, ptr %33, align 8, !tbaa !5
  %78 = getelementptr inbounds float, ptr %77, i32 -1
  store ptr %78, ptr %33, align 8, !tbaa !5
  %79 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 0, ptr %79, align 4, !tbaa !9
  %80 = load ptr, ptr %18, align 8, !tbaa !5
  %81 = call i32 @lsame_(ptr noundef %80, ptr noundef @.str)
  store i32 %81, ptr %41, align 4, !tbaa !9
  %82 = load i32, ptr %41, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %90, label %84

84:                                               ; preds = %17
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  %86 = call i32 @lsame_(ptr noundef %85, ptr noundef @.str.1)
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %90, label %88

88:                                               ; preds = %84
  %89 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -1, ptr %89, align 4, !tbaa !9
  br label %136

90:                                               ; preds = %84, %17
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = icmp slt i32 %92, 0
  br i1 %93, label %94, label %96

94:                                               ; preds = %90
  %95 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -2, ptr %95, align 4, !tbaa !9
  br label %135

96:                                               ; preds = %90
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = icmp slt i32 %98, 0
  br i1 %99, label %100, label %102

100:                                              ; preds = %96
  %101 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -3, ptr %101, align 4, !tbaa !9
  br label %134

102:                                              ; preds = %96
  %103 = load ptr, ptr %26, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = icmp sge i32 1, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %102
  br label %112

109:                                              ; preds = %102
  %110 = load ptr, ptr %19, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %109, %108
  %113 = phi i32 [ 1, %108 ], [ %111, %109 ]
  %114 = icmp slt i32 %104, %113
  br i1 %114, label %115, label %117

115:                                              ; preds = %112
  %116 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -9, ptr %116, align 4, !tbaa !9
  br label %133

117:                                              ; preds = %112
  %118 = load ptr, ptr %28, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = load ptr, ptr %19, align 8, !tbaa !5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = icmp sge i32 1, %121
  br i1 %122, label %123, label %124

123:                                              ; preds = %117
  br label %127

124:                                              ; preds = %117
  %125 = load ptr, ptr %19, align 8, !tbaa !5
  %126 = load i32, ptr %125, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %124, %123
  %128 = phi i32 [ 1, %123 ], [ %126, %124 ]
  %129 = icmp slt i32 %119, %128
  br i1 %129, label %130, label %132

130:                                              ; preds = %127
  %131 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -11, ptr %131, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %130, %127
  br label %133

133:                                              ; preds = %132, %115
  br label %134

134:                                              ; preds = %133, %100
  br label %135

135:                                              ; preds = %134, %94
  br label %136

136:                                              ; preds = %135, %88
  %137 = load ptr, ptr %34, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %145

140:                                              ; preds = %136
  %141 = load ptr, ptr %34, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = sub nsw i32 0, %142
  store i32 %143, ptr %39, align 4, !tbaa !9
  %144 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %39, i32 noundef 6)
  store i32 1, ptr %42, align 4
  br label %257

145:                                              ; preds = %136
  %146 = load i32, ptr %41, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %178

148:                                              ; preds = %145
  %149 = load ptr, ptr %19, align 8, !tbaa !5
  %150 = load ptr, ptr %21, align 8, !tbaa !5
  %151 = getelementptr inbounds float, ptr %150, i64 1
  %152 = load ptr, ptr %23, align 8, !tbaa !5
  %153 = getelementptr inbounds float, ptr %152, i64 1
  call void @scopy_(ptr noundef %149, ptr noundef %151, ptr noundef @c__1, ptr noundef %153, ptr noundef @c__1)
  %154 = load ptr, ptr %19, align 8, !tbaa !5
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = icmp sgt i32 %155, 1
  br i1 %156, label %157, label %165

157:                                              ; preds = %148
  %158 = load ptr, ptr %19, align 8, !tbaa !5
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = sub nsw i32 %159, 1
  store i32 %160, ptr %39, align 4, !tbaa !9
  %161 = load ptr, ptr %22, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.complex, ptr %161, i64 1
  %163 = load ptr, ptr %24, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.complex, ptr %163, i64 1
  call void @ccopy_(ptr noundef %39, ptr noundef %162, ptr noundef @c__1, ptr noundef %164, ptr noundef @c__1)
  br label %165

165:                                              ; preds = %157, %148
  %166 = load ptr, ptr %19, align 8, !tbaa !5
  %167 = load ptr, ptr %23, align 8, !tbaa !5
  %168 = getelementptr inbounds float, ptr %167, i64 1
  %169 = load ptr, ptr %24, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.complex, ptr %169, i64 1
  %171 = load ptr, ptr %34, align 8, !tbaa !5
  call void @cpttrf_(ptr noundef %166, ptr noundef %168, ptr noundef %170, ptr noundef %171)
  %172 = load ptr, ptr %34, align 8, !tbaa !5
  %173 = load i32, ptr %172, align 4, !tbaa !9
  %174 = icmp sgt i32 %173, 0
  br i1 %174, label %175, label %177

175:                                              ; preds = %165
  %176 = load ptr, ptr %29, align 8, !tbaa !5
  store float 0.000000e+00, ptr %176, align 4, !tbaa !11
  store i32 1, ptr %42, align 4
  br label %257

177:                                              ; preds = %165
  br label %178

178:                                              ; preds = %177, %145
  %179 = load ptr, ptr %19, align 8, !tbaa !5
  %180 = load ptr, ptr %21, align 8, !tbaa !5
  %181 = getelementptr inbounds float, ptr %180, i64 1
  %182 = load ptr, ptr %22, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.complex, ptr %182, i64 1
  %184 = call float @clanht_(ptr noundef @.str.3, ptr noundef %179, ptr noundef %181, ptr noundef %183)
  store float %184, ptr %40, align 4, !tbaa !11
  %185 = load ptr, ptr %19, align 8, !tbaa !5
  %186 = load ptr, ptr %23, align 8, !tbaa !5
  %187 = getelementptr inbounds float, ptr %186, i64 1
  %188 = load ptr, ptr %24, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.complex, ptr %188, i64 1
  %190 = load ptr, ptr %29, align 8, !tbaa !5
  %191 = load ptr, ptr %33, align 8, !tbaa !5
  %192 = getelementptr inbounds float, ptr %191, i64 1
  %193 = load ptr, ptr %34, align 8, !tbaa !5
  call void @cptcon_(ptr noundef %185, ptr noundef %187, ptr noundef %189, ptr noundef %40, ptr noundef %190, ptr noundef %192, ptr noundef %193)
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  %195 = load ptr, ptr %20, align 8, !tbaa !5
  %196 = load ptr, ptr %25, align 8, !tbaa !5
  %197 = load i32, ptr %36, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds %struct.complex, ptr %196, i64 %198
  %200 = load ptr, ptr %26, align 8, !tbaa !5
  %201 = load ptr, ptr %27, align 8, !tbaa !5
  %202 = load i32, ptr %38, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds %struct.complex, ptr %201, i64 %203
  %205 = load ptr, ptr %28, align 8, !tbaa !5
  call void @clacpy_(ptr noundef @.str.4, ptr noundef %194, ptr noundef %195, ptr noundef %199, ptr noundef %200, ptr noundef %204, ptr noundef %205)
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  %207 = load ptr, ptr %20, align 8, !tbaa !5
  %208 = load ptr, ptr %23, align 8, !tbaa !5
  %209 = getelementptr inbounds float, ptr %208, i64 1
  %210 = load ptr, ptr %24, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.complex, ptr %210, i64 1
  %212 = load ptr, ptr %27, align 8, !tbaa !5
  %213 = load i32, ptr %38, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds %struct.complex, ptr %212, i64 %214
  %216 = load ptr, ptr %28, align 8, !tbaa !5
  %217 = load ptr, ptr %34, align 8, !tbaa !5
  call void @cpttrs_(ptr noundef @.str.5, ptr noundef %206, ptr noundef %207, ptr noundef %209, ptr noundef %211, ptr noundef %215, ptr noundef %216, ptr noundef %217)
  %218 = load ptr, ptr %19, align 8, !tbaa !5
  %219 = load ptr, ptr %20, align 8, !tbaa !5
  %220 = load ptr, ptr %21, align 8, !tbaa !5
  %221 = getelementptr inbounds float, ptr %220, i64 1
  %222 = load ptr, ptr %22, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.complex, ptr %222, i64 1
  %224 = load ptr, ptr %23, align 8, !tbaa !5
  %225 = getelementptr inbounds float, ptr %224, i64 1
  %226 = load ptr, ptr %24, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.complex, ptr %226, i64 1
  %228 = load ptr, ptr %25, align 8, !tbaa !5
  %229 = load i32, ptr %36, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds %struct.complex, ptr %228, i64 %230
  %232 = load ptr, ptr %26, align 8, !tbaa !5
  %233 = load ptr, ptr %27, align 8, !tbaa !5
  %234 = load i32, ptr %38, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds %struct.complex, ptr %233, i64 %235
  %237 = load ptr, ptr %28, align 8, !tbaa !5
  %238 = load ptr, ptr %30, align 8, !tbaa !5
  %239 = getelementptr inbounds float, ptr %238, i64 1
  %240 = load ptr, ptr %31, align 8, !tbaa !5
  %241 = getelementptr inbounds float, ptr %240, i64 1
  %242 = load ptr, ptr %32, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.complex, ptr %242, i64 1
  %244 = load ptr, ptr %33, align 8, !tbaa !5
  %245 = getelementptr inbounds float, ptr %244, i64 1
  %246 = load ptr, ptr %34, align 8, !tbaa !5
  call void @cptrfs_(ptr noundef @.str.5, ptr noundef %218, ptr noundef %219, ptr noundef %221, ptr noundef %223, ptr noundef %225, ptr noundef %227, ptr noundef %231, ptr noundef %232, ptr noundef %236, ptr noundef %237, ptr noundef %239, ptr noundef %241, ptr noundef %243, ptr noundef %245, ptr noundef %246)
  %247 = load ptr, ptr %29, align 8, !tbaa !5
  %248 = load float, ptr %247, align 4, !tbaa !11
  %249 = call float @slamch_(ptr noundef @.str.6)
  %250 = fcmp olt float %248, %249
  br i1 %250, label %251, label %256

251:                                              ; preds = %178
  %252 = load ptr, ptr %19, align 8, !tbaa !5
  %253 = load i32, ptr %252, align 4, !tbaa !9
  %254 = add nsw i32 %253, 1
  %255 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 %254, ptr %255, align 4, !tbaa !9
  br label %256

256:                                              ; preds = %251, %178
  store i32 1, ptr %42, align 4
  br label %257

257:                                              ; preds = %256, %175, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  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 @xerbla_(ptr noundef, ptr noundef, i32 noundef) #2

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

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

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

declare float @clanht_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

declare float @slamch_(ptr noundef) #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !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
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@c__1 = external hidden global i32, align 4
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @cptsvx_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16) local_unnamed_addr #0 {
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  store i32 0, ptr %16, align 4, !tbaa !5
  %20 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %21, label %23

21:                                               ; preds = %17
  %22 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not96 = icmp eq i32 %22, 0
  br i1 %.not96, label %.thread.sink.split, label %23

23:                                               ; preds = %21, %17
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %.thread.sink.split, label %26

26:                                               ; preds = %23
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %.thread.sink.split, label %29

29:                                               ; preds = %26
  %30 = load i32, ptr %8, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %24, i32 1)
  %31 = icmp slt i32 %30, %spec.select
  br i1 %31, label %.thread.sink.split, label %32

32:                                               ; preds = %29
  %33 = load i32, ptr %10, align 4, !tbaa !5
  %34 = icmp slt i32 %33, %spec.select
  br i1 %34, label %.thread.sink.split, label %35

35:                                               ; preds = %32
  %.pr = load i32, ptr %16, align 4, !tbaa !5
  %.not97 = icmp eq i32 %.pr, 0
  br i1 %.not97, label %39, label %.thread

.thread.sink.split:                               ; preds = %32, %29, %26, %23, %21
  %.sink = phi i32 [ -1, %21 ], [ -2, %23 ], [ -3, %26 ], [ -9, %29 ], [ -11, %32 ]
  store i32 %.sink, ptr %16, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %35
  %36 = phi i32 [ %.pr, %35 ], [ %.sink, %.thread.sink.split ]
  %37 = sub nsw i32 0, %36
  store i32 %37, ptr %18, align 4, !tbaa !5
  %38 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %18, i32 noundef 6) #4
  br label %57

39:                                               ; preds = %35
  br i1 %.not, label %49, label %40

40:                                               ; preds = %39
  tail call void @scopy_(ptr noundef nonnull %1, ptr noundef %3, ptr noundef nonnull @c__1, ptr noundef %5, ptr noundef nonnull @c__1) #4
  %41 = load i32, ptr %1, align 4, !tbaa !5
  %42 = icmp sgt i32 %41, 1
  br i1 %42, label %43, label %45

43:                                               ; preds = %40
  %44 = add nsw i32 %41, -1
  store i32 %44, ptr %18, align 4, !tbaa !5
  call void @ccopy_(ptr noundef nonnull %18, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  br label %45

45:                                               ; preds = %43, %40
  call void @cpttrf_(ptr noundef nonnull %1, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %16) #4
  %46 = load i32, ptr %16, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  store float 0.000000e+00, ptr %11, align 4, !tbaa !9
  br label %57

49:                                               ; preds = %45, %39
  %50 = call float @clanht_(ptr noundef nonnull @.str.3, ptr noundef nonnull %1, ptr noundef %3, ptr noundef %4) #4
  store float %50, ptr %19, align 4, !tbaa !9
  call void @cptcon_(ptr noundef nonnull %1, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %19, ptr noundef %11, ptr noundef %15, ptr noundef nonnull %16) #4
  call void @clacpy_(ptr noundef nonnull @.str.4, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %10) #4
  call void @cpttrs_(ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %10, ptr noundef nonnull %16) #4
  call void @cptrfs_(ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %10, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef nonnull %16) #4
  %51 = load float, ptr %11, align 4, !tbaa !9
  %52 = call float @slamch_(ptr noundef nonnull @.str.6) #4
  %53 = fcmp olt float %51, %52
  br i1 %53, label %54, label %57

54:                                               ; preds = %49
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %16, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %49, %54, %48, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #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 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

declare float @clanht_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

declare float @slamch_(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}


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