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

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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@c__1 = external hidden global i32, align 4
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dspsvx_(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 double, align 8
  %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 8, ptr %40) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #3
  %43 = load ptr, ptr %22, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i32 -1
  store ptr %44, ptr %22, align 8, !tbaa !5
  %45 = load ptr, ptr %23, align 8, !tbaa !5
  %46 = getelementptr inbounds double, ptr %45, i32 -1
  store ptr %46, ptr %23, align 8, !tbaa !5
  %47 = load ptr, ptr %24, align 8, !tbaa !5
  %48 = getelementptr inbounds i32, ptr %47, i32 -1
  store ptr %48, ptr %24, align 8, !tbaa !5
  %49 = load ptr, ptr %26, align 8, !tbaa !5
  %50 = load i32, ptr %49, align 4, !tbaa !9
  store i32 %50, ptr %35, align 4, !tbaa !9
  %51 = load i32, ptr %35, align 4, !tbaa !9
  %52 = mul nsw i32 %51, 1
  %53 = add nsw i32 1, %52
  store i32 %53, ptr %36, align 4, !tbaa !9
  %54 = load i32, ptr %36, align 4, !tbaa !9
  %55 = load ptr, ptr %25, align 8, !tbaa !5
  %56 = sext i32 %54 to i64
  %57 = sub i64 0, %56
  %58 = getelementptr inbounds double, ptr %55, i64 %57
  store ptr %58, ptr %25, align 8, !tbaa !5
  %59 = load ptr, ptr %28, align 8, !tbaa !5
  %60 = load i32, ptr %59, align 4, !tbaa !9
  store i32 %60, ptr %37, align 4, !tbaa !9
  %61 = load i32, ptr %37, align 4, !tbaa !9
  %62 = mul nsw i32 %61, 1
  %63 = add nsw i32 1, %62
  store i32 %63, ptr %38, align 4, !tbaa !9
  %64 = load i32, ptr %38, align 4, !tbaa !9
  %65 = load ptr, ptr %27, align 8, !tbaa !5
  %66 = sext i32 %64 to i64
  %67 = sub i64 0, %66
  %68 = getelementptr inbounds double, ptr %65, i64 %67
  store ptr %68, ptr %27, align 8, !tbaa !5
  %69 = load ptr, ptr %30, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i32 -1
  store ptr %70, ptr %30, align 8, !tbaa !5
  %71 = load ptr, ptr %31, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i32 -1
  store ptr %72, ptr %31, align 8, !tbaa !5
  %73 = load ptr, ptr %32, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i32 -1
  store ptr %74, ptr %32, align 8, !tbaa !5
  %75 = load ptr, ptr %33, align 8, !tbaa !5
  %76 = getelementptr inbounds i32, ptr %75, i32 -1
  store ptr %76, ptr %33, align 8, !tbaa !5
  %77 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 0, ptr %77, align 4, !tbaa !9
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = call i32 @lsame_(ptr noundef %78, ptr noundef @.str)
  store i32 %79, ptr %41, align 4, !tbaa !9
  %80 = load i32, ptr %41, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %88, label %82

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

86:                                               ; preds = %82
  %87 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -1, ptr %87, align 4, !tbaa !9
  br label %145

88:                                               ; preds = %82, %17
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  %90 = call i32 @lsame_(ptr noundef %89, ptr noundef @.str.2)
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %98, label %92

92:                                               ; preds = %88
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = call i32 @lsame_(ptr noundef %93, ptr noundef @.str.3)
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %98, label %96

96:                                               ; preds = %92
  %97 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -2, ptr %97, align 4, !tbaa !9
  br label %144

98:                                               ; preds = %92, %88
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = icmp slt i32 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %98
  %103 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -3, ptr %103, align 4, !tbaa !9
  br label %143

104:                                              ; preds = %98
  %105 = load ptr, ptr %21, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = icmp slt i32 %106, 0
  br i1 %107, label %108, label %110

108:                                              ; preds = %104
  %109 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -4, ptr %109, align 4, !tbaa !9
  br label %142

110:                                              ; preds = %104
  %111 = load ptr, ptr %26, align 8, !tbaa !5
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = load ptr, ptr %20, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = icmp sge i32 1, %114
  br i1 %115, label %116, label %117

116:                                              ; preds = %110
  br label %120

117:                                              ; preds = %110
  %118 = load ptr, ptr %20, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %117, %116
  %121 = phi i32 [ 1, %116 ], [ %119, %117 ]
  %122 = icmp slt i32 %112, %121
  br i1 %122, label %123, label %125

123:                                              ; preds = %120
  %124 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -9, ptr %124, align 4, !tbaa !9
  br label %141

125:                                              ; preds = %120
  %126 = load ptr, ptr %28, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = load ptr, ptr %20, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = icmp sge i32 1, %129
  br i1 %130, label %131, label %132

131:                                              ; preds = %125
  br label %135

132:                                              ; preds = %125
  %133 = load ptr, ptr %20, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %132, %131
  %136 = phi i32 [ 1, %131 ], [ %134, %132 ]
  %137 = icmp slt i32 %127, %136
  br i1 %137, label %138, label %140

138:                                              ; preds = %135
  %139 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 -11, ptr %139, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %138, %135
  br label %141

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

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

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

144:                                              ; preds = %143, %96
  br label %145

145:                                              ; preds = %144, %86
  %146 = load ptr, ptr %34, align 8, !tbaa !5
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %154

149:                                              ; preds = %145
  %150 = load ptr, ptr %34, align 8, !tbaa !5
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = sub nsw i32 0, %151
  store i32 %152, ptr %39, align 4, !tbaa !9
  %153 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %39, i32 noundef 6)
  store i32 1, ptr %42, align 4
  br label %265

154:                                              ; preds = %145
  %155 = load i32, ptr %41, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %182

157:                                              ; preds = %154
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = load ptr, ptr %20, align 8, !tbaa !5
  %161 = load i32, ptr %160, align 4, !tbaa !9
  %162 = add nsw i32 %161, 1
  %163 = mul nsw i32 %159, %162
  %164 = sdiv i32 %163, 2
  store i32 %164, ptr %39, align 4, !tbaa !9
  %165 = load ptr, ptr %22, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %165, i64 1
  %167 = load ptr, ptr %23, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %167, i64 1
  call void @dcopy_(ptr noundef %39, ptr noundef %166, ptr noundef @c__1, ptr noundef %168, ptr noundef @c__1)
  %169 = load ptr, ptr %19, align 8, !tbaa !5
  %170 = load ptr, ptr %20, align 8, !tbaa !5
  %171 = load ptr, ptr %23, align 8, !tbaa !5
  %172 = getelementptr inbounds double, ptr %171, i64 1
  %173 = load ptr, ptr %24, align 8, !tbaa !5
  %174 = getelementptr inbounds i32, ptr %173, i64 1
  %175 = load ptr, ptr %34, align 8, !tbaa !5
  call void @dsptrf_(ptr noundef %169, ptr noundef %170, ptr noundef %172, ptr noundef %174, ptr noundef %175)
  %176 = load ptr, ptr %34, align 8, !tbaa !5
  %177 = load i32, ptr %176, align 4, !tbaa !9
  %178 = icmp sgt i32 %177, 0
  br i1 %178, label %179, label %181

179:                                              ; preds = %157
  %180 = load ptr, ptr %29, align 8, !tbaa !5
  store double 0.000000e+00, ptr %180, align 8, !tbaa !11
  store i32 1, ptr %42, align 4
  br label %265

181:                                              ; preds = %157
  br label %182

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

259:                                              ; preds = %182
  %260 = load ptr, ptr %20, align 8, !tbaa !5
  %261 = load i32, ptr %260, align 4, !tbaa !9
  %262 = add nsw i32 %261, 1
  %263 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 %262, ptr %263, align 4, !tbaa !9
  br label %264

264:                                              ; preds = %259, %182
  store i32 1, ptr %42, align 4
  br label %265

265:                                              ; preds = %264, %179, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 @dcopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare double @dlansp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

declare void @dsprfs_(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 double @dlamch_(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 = !{!"double", !7, i64 0}


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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@c__1 = external hidden global i32, align 4
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dspsvx_(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 double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 8, 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
  %.not99 = icmp eq i32 %22, 0
  br i1 %.not99, label %.thread.sink.split, label %23

23:                                               ; preds = %21, %17
  %24 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.2) #4
  %.not100 = icmp eq i32 %24, 0
  br i1 %.not100, label %25, label %27

25:                                               ; preds = %23
  %26 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #4
  %.not101 = icmp eq i32 %26, 0
  br i1 %.not101, label %.thread.sink.split, label %27

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

30:                                               ; preds = %27
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = icmp slt i32 %31, 0
  br i1 %32, label %.thread.sink.split, label %33

33:                                               ; preds = %30
  %34 = load i32, ptr %8, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %28, i32 1)
  %35 = icmp slt i32 %34, %spec.select
  br i1 %35, label %.thread.sink.split, label %36

36:                                               ; preds = %33
  %37 = load i32, ptr %10, align 4, !tbaa !5
  %38 = icmp slt i32 %37, %spec.select
  br i1 %38, label %.thread.sink.split, label %39

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

.thread.sink.split:                               ; preds = %36, %33, %30, %27, %25, %21
  %.sink = phi i32 [ -1, %21 ], [ -2, %25 ], [ -3, %27 ], [ -4, %30 ], [ -9, %33 ], [ -11, %36 ]
  store i32 %.sink, ptr %16, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %39
  %40 = phi i32 [ %.pr, %39 ], [ %.sink, %.thread.sink.split ]
  %41 = sub nsw i32 0, %40
  store i32 %41, ptr %18, align 4, !tbaa !5
  %42 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %18, i32 noundef 6) #4
  br label %59

43:                                               ; preds = %39
  br i1 %.not, label %51, label %44

44:                                               ; preds = %43
  %45 = add nuw nsw i32 %28, 1
  %46 = mul nuw nsw i32 %45, %28
  %47 = lshr i32 %46, 1
  store i32 %47, ptr %18, align 4, !tbaa !5
  call void @dcopy_(ptr noundef nonnull %18, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %5, ptr noundef nonnull @c__1) #4
  call void @dsptrf_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %16) #4
  %48 = load i32, ptr %16, align 4, !tbaa !5
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %44
  store double 0.000000e+00, ptr %11, align 8, !tbaa !9
  br label %59

51:                                               ; preds = %44, %43
  %52 = call double @dlansp_(ptr noundef nonnull @.str.5, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %14) #4
  store double %52, ptr %19, align 8, !tbaa !9
  call void @dspcon_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %19, ptr noundef %11, ptr noundef %14, ptr noundef %15, ptr noundef nonnull %16) #4
  call void @dlacpy_(ptr noundef nonnull @.str.6, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %10) #4
  call void @dsptrs_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %5, ptr noundef %6, ptr noundef %9, ptr noundef nonnull %10, ptr noundef nonnull %16) #4
  call void @dsprfs_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %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
  %53 = load double, ptr %11, align 8, !tbaa !9
  %54 = call double @dlamch_(ptr noundef nonnull @.str.7) #4
  %55 = fcmp olt double %53, %54
  br i1 %55, label %56, label %59

56:                                               ; preds = %51
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %16, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %51, %56, %50, %.thread
  call void @llvm.lifetime.end.p0(i64 8, 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 @dcopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @dlansp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare void @dsprfs_(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 double @dlamch_(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 = !{!"double", !7, i64 0}


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