; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (sstev)

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

; Function Attrs: nounwind uwtable
define dso_local i32 @sstev_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %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 i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca i64, align 8
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = getelementptr inbounds float, ptr %34, i32 -1
  store ptr %35, ptr %12, align 8, !tbaa !5
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = getelementptr inbounds float, ptr %36, i32 -1
  store ptr %37, ptr %13, align 8, !tbaa !5
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  %39 = load i64, ptr %38, align 8, !tbaa !9
  store i64 %39, ptr %18, align 8, !tbaa !9
  %40 = load i64, ptr %18, align 8, !tbaa !9
  %41 = add nsw i64 1, %40
  store i64 %41, ptr %19, align 8, !tbaa !9
  %42 = load i64, ptr %19, align 8, !tbaa !9
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  %44 = sub i64 0, %42
  %45 = getelementptr inbounds float, ptr %43, i64 %44
  store ptr %45, ptr %14, align 8, !tbaa !5
  %46 = load ptr, ptr %16, align 8, !tbaa !5
  %47 = getelementptr inbounds float, ptr %46, i32 -1
  store ptr %47, ptr %16, align 8, !tbaa !5
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = call i64 @lsame_(ptr noundef %48, ptr noundef @.str)
  store i64 %49, ptr %28, align 8, !tbaa !9
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %50, align 8, !tbaa !9
  %51 = load i64, ptr %28, align 8, !tbaa !9
  %52 = icmp ne i64 %51, 0
  br i1 %52, label %59, label %53

53:                                               ; preds = %8
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = call i64 @lsame_(ptr noundef %54, ptr noundef @.str.1)
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %59, label %57

57:                                               ; preds = %53
  %58 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -1, ptr %58, align 8, !tbaa !9
  br label %82

59:                                               ; preds = %53, %8
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = icmp slt i64 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -2, ptr %64, align 8, !tbaa !9
  br label %81

65:                                               ; preds = %59
  %66 = load ptr, ptr %15, align 8, !tbaa !5
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = icmp slt i64 %67, 1
  br i1 %68, label %78, label %69

69:                                               ; preds = %65
  %70 = load i64, ptr %28, align 8, !tbaa !9
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %72, label %80

72:                                               ; preds = %69
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = icmp slt i64 %74, %76
  br i1 %77, label %78, label %80

78:                                               ; preds = %72, %65
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -6, ptr %79, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %78, %72, %69
  br label %81

81:                                               ; preds = %80, %63
  br label %82

82:                                               ; preds = %81, %57
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %86, label %91

86:                                               ; preds = %82
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = sub nsw i64 0, %88
  store i64 %89, ptr %20, align 8, !tbaa !9
  %90 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %20)
  store i32 0, ptr %9, align 4
  store i32 1, ptr %33, align 4
  br label %213

91:                                               ; preds = %82
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = icmp eq i64 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %91
  store i32 0, ptr %9, align 4
  store i32 1, ptr %33, align 4
  br label %213

96:                                               ; preds = %91
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = icmp eq i64 %98, 1
  br i1 %99, label %100, label %109

100:                                              ; preds = %96
  %101 = load i64, ptr %28, align 8, !tbaa !9
  %102 = icmp ne i64 %101, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %100
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = load i64, ptr %18, align 8, !tbaa !9
  %106 = add nsw i64 %105, 1
  %107 = getelementptr inbounds float, ptr %104, i64 %106
  store float 1.000000e+00, ptr %107, align 4, !tbaa !11
  br label %108

108:                                              ; preds = %103, %100
  store i32 0, ptr %9, align 4
  store i32 1, ptr %33, align 4
  br label %213

109:                                              ; preds = %96
  %110 = call double @slamch_(ptr noundef @.str.3)
  %111 = fptrunc double %110 to float
  store float %111, ptr %30, align 4, !tbaa !11
  %112 = call double @slamch_(ptr noundef @.str.4)
  %113 = fptrunc double %112 to float
  store float %113, ptr %22, align 4, !tbaa !11
  %114 = load float, ptr %30, align 4, !tbaa !11
  %115 = load float, ptr %22, align 4, !tbaa !11
  %116 = fdiv float %114, %115
  store float %116, ptr %32, align 4, !tbaa !11
  %117 = load float, ptr %32, align 4, !tbaa !11
  %118 = fdiv float 1.000000e+00, %117
  store float %118, ptr %31, align 4, !tbaa !11
  %119 = load float, ptr %32, align 4, !tbaa !11
  %120 = fpext float %119 to double
  %121 = call double @sqrt(double noundef %120) #4
  %122 = fptrunc double %121 to float
  store float %122, ptr %24, align 4, !tbaa !11
  %123 = load float, ptr %31, align 4, !tbaa !11
  %124 = fpext float %123 to double
  %125 = call double @sqrt(double noundef %124) #4
  %126 = fptrunc double %125 to float
  store float %126, ptr %25, align 4, !tbaa !11
  store i64 0, ptr %29, align 8, !tbaa !9
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds float, ptr %128, i64 1
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = getelementptr inbounds float, ptr %130, i64 1
  %132 = call double @slanst_(ptr noundef @.str.5, ptr noundef %127, ptr noundef %129, ptr noundef %131)
  %133 = fptrunc double %132 to float
  store float %133, ptr %26, align 4, !tbaa !11
  %134 = load float, ptr %26, align 4, !tbaa !11
  %135 = fcmp ogt float %134, 0.000000e+00
  br i1 %135, label %136, label %144

136:                                              ; preds = %109
  %137 = load float, ptr %26, align 4, !tbaa !11
  %138 = load float, ptr %24, align 4, !tbaa !11
  %139 = fcmp olt float %137, %138
  br i1 %139, label %140, label %144

140:                                              ; preds = %136
  store i64 1, ptr %29, align 8, !tbaa !9
  %141 = load float, ptr %24, align 4, !tbaa !11
  %142 = load float, ptr %26, align 4, !tbaa !11
  %143 = fdiv float %141, %142
  store float %143, ptr %27, align 4, !tbaa !11
  br label %153

144:                                              ; preds = %136, %109
  %145 = load float, ptr %26, align 4, !tbaa !11
  %146 = load float, ptr %25, align 4, !tbaa !11
  %147 = fcmp ogt float %145, %146
  br i1 %147, label %148, label %152

148:                                              ; preds = %144
  store i64 1, ptr %29, align 8, !tbaa !9
  %149 = load float, ptr %25, align 4, !tbaa !11
  %150 = load float, ptr %26, align 4, !tbaa !11
  %151 = fdiv float %149, %150
  store float %151, ptr %27, align 4, !tbaa !11
  br label %152

152:                                              ; preds = %148, %144
  br label %153

153:                                              ; preds = %152, %140
  %154 = load i64, ptr %29, align 8, !tbaa !9
  %155 = icmp eq i64 %154, 1
  br i1 %155, label %156, label %167

156:                                              ; preds = %153
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = getelementptr inbounds float, ptr %158, i64 1
  %160 = call i32 @f2c_sscal(ptr noundef %157, ptr noundef %27, ptr noundef %159, ptr noundef @c__1)
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = load i64, ptr %161, align 8, !tbaa !9
  %163 = sub nsw i64 %162, 1
  store i64 %163, ptr %20, align 8, !tbaa !9
  %164 = load ptr, ptr %13, align 8, !tbaa !5
  %165 = getelementptr inbounds float, ptr %164, i64 1
  %166 = call i32 @f2c_sscal(ptr noundef %20, ptr noundef %27, ptr noundef %165, ptr noundef @c__1)
  br label %167

167:                                              ; preds = %156, %153
  %168 = load i64, ptr %28, align 8, !tbaa !9
  %169 = icmp ne i64 %168, 0
  br i1 %169, label %178, label %170

170:                                              ; preds = %167
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = getelementptr inbounds float, ptr %172, i64 1
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = getelementptr inbounds float, ptr %174, i64 1
  %176 = load ptr, ptr %17, align 8, !tbaa !5
  %177 = call i32 @ssterf_(ptr noundef %171, ptr noundef %173, ptr noundef %175, ptr noundef %176)
  br label %192

178:                                              ; preds = %167
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = getelementptr inbounds float, ptr %180, i64 1
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = getelementptr inbounds float, ptr %182, i64 1
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = load i64, ptr %19, align 8, !tbaa !9
  %186 = getelementptr inbounds float, ptr %184, i64 %185
  %187 = load ptr, ptr %15, align 8, !tbaa !5
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  %189 = getelementptr inbounds float, ptr %188, i64 1
  %190 = load ptr, ptr %17, align 8, !tbaa !5
  %191 = call i32 @ssteqr_(ptr noundef @.str.6, ptr noundef %179, ptr noundef %181, ptr noundef %183, ptr noundef %186, ptr noundef %187, ptr noundef %189, ptr noundef %190)
  br label %192

192:                                              ; preds = %178, %170
  %193 = load i64, ptr %29, align 8, !tbaa !9
  %194 = icmp eq i64 %193, 1
  br i1 %194, label %195, label %212

195:                                              ; preds = %192
  %196 = load ptr, ptr %17, align 8, !tbaa !5
  %197 = load i64, ptr %196, align 8, !tbaa !9
  %198 = icmp eq i64 %197, 0
  br i1 %198, label %199, label %202

199:                                              ; preds = %195
  %200 = load ptr, ptr %11, align 8, !tbaa !5
  %201 = load i64, ptr %200, align 8, !tbaa !9
  store i64 %201, ptr %23, align 8, !tbaa !9
  br label %206

202:                                              ; preds = %195
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = load i64, ptr %203, align 8, !tbaa !9
  %205 = sub nsw i64 %204, 1
  store i64 %205, ptr %23, align 8, !tbaa !9
  br label %206

206:                                              ; preds = %202, %199
  %207 = load float, ptr %27, align 4, !tbaa !11
  %208 = fdiv float 1.000000e+00, %207
  store float %208, ptr %21, align 4, !tbaa !11
  %209 = load ptr, ptr %12, align 8, !tbaa !5
  %210 = getelementptr inbounds float, ptr %209, i64 1
  %211 = call i32 @f2c_sscal(ptr noundef %23, ptr noundef %21, ptr noundef %210, ptr noundef @c__1)
  br label %212

212:                                              ; preds = %206, %192
  store i32 0, ptr %9, align 4
  store i32 1, ptr %33, align 4
  br label %213

213:                                              ; preds = %212, %108, %95, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  %214 = load i32, ptr %9, align 4
  ret i32 %214
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) #2

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

declare double @slamch_(ptr noundef) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

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

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

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

declare i32 @ssteqr_(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 "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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !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
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i64, align 8
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

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

14:                                               ; preds = %8
  %15 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not74 = icmp eq i64 %15, 0
  br i1 %.not74, label %.thread.sink.split, label %16

16:                                               ; preds = %14, %8
  %17 = load i64, ptr %1, align 8, !tbaa !5
  %18 = icmp slt i64 %17, 0
  br i1 %18, label %.thread.sink.split, label %19

19:                                               ; preds = %16
  %20 = load i64, ptr %5, align 8, !tbaa !5
  %21 = icmp slt i64 %20, 1
  %22 = icmp ult i64 %20, %17
  %or.cond = and i1 %.not, %22
  %or.cond82 = or i1 %21, %or.cond
  br i1 %or.cond82, label %.thread.sink.split, label %23

23:                                               ; preds = %19
  %.pr = load i64, ptr %7, align 8, !tbaa !5
  %.not75 = icmp eq i64 %.pr, 0
  br i1 %.not75, label %27, label %.thread

.thread.sink.split:                               ; preds = %19, %16, %14
  %.sink = phi i64 [ -1, %14 ], [ -2, %16 ], [ -6, %19 ]
  store i64 %.sink, ptr %7, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %23
  %24 = phi i64 [ %.pr, %23 ], [ %.sink, %.thread.sink.split ]
  %25 = sub nsw i64 0, %24
  store i64 %25, ptr %9, align 8, !tbaa !5
  %26 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %9) #3
  br label %66

27:                                               ; preds = %23
  switch i64 %17, label %30 [
    i64 0, label %66
    i64 1, label %28
  ]

28:                                               ; preds = %27
  br i1 %.not, label %29, label %66

29:                                               ; preds = %28
  store float 1.000000e+00, ptr %4, align 4, !tbaa !9
  br label %66

30:                                               ; preds = %27
  %31 = tail call double @slamch_(ptr noundef nonnull @.str.3) #3
  %32 = fptrunc double %31 to float
  %33 = tail call double @slamch_(ptr noundef nonnull @.str.4) #3
  %34 = fptrunc double %33 to float
  %35 = fdiv float %32, %34
  %36 = fdiv float 1.000000e+00, %35
  %sqrtf = tail call float @sqrtf(float noundef %35) #4
  %sqrtf76 = tail call float @sqrtf(float noundef %36) #4
  %37 = tail call double @slanst_(ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3) #3
  %38 = fptrunc double %37 to float
  %39 = fcmp ogt float %38, 0.000000e+00
  %40 = fcmp ogt float %sqrtf, %38
  %or.cond77 = select i1 %39, i1 %40, i1 false
  br i1 %or.cond77, label %43, label %41

41:                                               ; preds = %30
  %42 = fcmp olt float %sqrtf76, %38
  br i1 %42, label %43, label %48

43:                                               ; preds = %41, %30
  %sqrtf76.pn = phi float [ %sqrtf, %30 ], [ %sqrtf76, %41 ]
  %storemerge81 = fdiv float %sqrtf76.pn, %38
  store float %storemerge81, ptr %12, align 4, !tbaa !9
  %44 = call i32 @f2c_sscal(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef %2, ptr noundef nonnull @c__1) #3
  %45 = load i64, ptr %1, align 8, !tbaa !5
  %46 = add nsw i64 %45, -1
  store i64 %46, ptr %9, align 8, !tbaa !5
  %47 = call i32 @f2c_sscal(ptr noundef nonnull %9, ptr noundef nonnull %12, ptr noundef %3, ptr noundef nonnull @c__1) #3
  br label %48

48:                                               ; preds = %41, %43
  %49 = phi i1 [ true, %43 ], [ false, %41 ]
  br i1 %.not, label %52, label %50

50:                                               ; preds = %48
  %51 = call i32 @ssterf_(ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull %7) #3
  br label %54

52:                                               ; preds = %48
  %53 = call i32 @ssteqr_(ptr noundef nonnull @.str.6, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef nonnull %7) #3
  br label %54

54:                                               ; preds = %52, %50
  br i1 %49, label %55, label %66

55:                                               ; preds = %54
  %56 = load i64, ptr %7, align 8, !tbaa !5
  %57 = icmp eq i64 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = load i64, ptr %1, align 8, !tbaa !5
  br label %62

60:                                               ; preds = %55
  %61 = add nsw i64 %56, -1
  br label %62

62:                                               ; preds = %60, %58
  %storemerge = phi i64 [ %61, %60 ], [ %59, %58 ]
  store i64 %storemerge, ptr %11, align 8, !tbaa !5
  %63 = load float, ptr %12, align 4, !tbaa !9
  %64 = fdiv float 1.000000e+00, %63
  store float %64, ptr %10, align 4, !tbaa !9
  %65 = call i32 @f2c_sscal(ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef %2, ptr noundef nonnull @c__1) #3
  br label %66

66:                                               ; preds = %54, %62, %28, %29, %27, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  ret i32 0
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @slamch_(ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @ssteqr_(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

declare float @sqrtf(float) local_unnamed_addr

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 = { nounwind }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "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" }

!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 = !{!"long", !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,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass