; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

58:                                               ; preds = %54
  %59 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 -1, ptr %59, align 4, !tbaa !9
  br label %83

60:                                               ; preds = %54, %8
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = load i32, ptr %61, align 4, !tbaa !9
  %63 = icmp slt i32 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %60
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 -2, ptr %65, align 4, !tbaa !9
  br label %82

66:                                               ; preds = %60
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = icmp slt i32 %68, 1
  br i1 %69, label %79, label %70

70:                                               ; preds = %66
  %71 = load i32, ptr %26, align 4, !tbaa !9
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %81

73:                                               ; preds = %70
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = icmp slt i32 %75, %77
  br i1 %78, label %79, label %81

79:                                               ; preds = %73, %66
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 -6, ptr %80, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %79, %73, %70
  br label %82

82:                                               ; preds = %81, %64
  br label %83

83:                                               ; preds = %82, %58
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %92

87:                                               ; preds = %83
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = sub nsw i32 0, %89
  store i32 %90, ptr %19, align 4, !tbaa !9
  %91 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %19, i32 noundef 6)
  store i32 1, ptr %32, align 4
  br label %208

92:                                               ; preds = %83
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %92
  store i32 1, ptr %32, align 4
  br label %208

97:                                               ; preds = %92
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = icmp eq i32 %99, 1
  br i1 %100, label %101, label %111

101:                                              ; preds = %97
  %102 = load i32, ptr %26, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %110

104:                                              ; preds = %101
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds float, ptr %105, i64 %108
  store float 1.000000e+00, ptr %109, align 4, !tbaa !11
  br label %110

110:                                              ; preds = %104, %101
  store i32 1, ptr %32, align 4
  br label %208

111:                                              ; preds = %97
  %112 = call float @slamch_(ptr noundef @.str.3)
  store float %112, ptr %28, align 4, !tbaa !11
  %113 = call float @slamch_(ptr noundef @.str.4)
  store float %113, ptr %31, align 4, !tbaa !11
  %114 = load float, ptr %28, align 4, !tbaa !11
  %115 = load float, ptr %31, align 4, !tbaa !11
  %116 = fdiv float %114, %115
  store float %116, ptr %30, align 4, !tbaa !11
  %117 = load float, ptr %30, align 4, !tbaa !11
  %118 = fdiv float 1.000000e+00, %117
  store float %118, ptr %29, align 4, !tbaa !11
  %119 = load float, ptr %30, 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 %22, align 4, !tbaa !11
  %123 = load float, ptr %29, 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 %23, align 4, !tbaa !11
  store i32 0, ptr %27, align 4, !tbaa !9
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = getelementptr inbounds float, ptr %128, i64 1
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = getelementptr inbounds float, ptr %130, i64 1
  %132 = call float @slanst_(ptr noundef @.str.5, ptr noundef %127, ptr noundef %129, ptr noundef %131)
  store float %132, ptr %24, align 4, !tbaa !11
  %133 = load float, ptr %24, align 4, !tbaa !11
  %134 = fcmp ogt float %133, 0.000000e+00
  br i1 %134, label %135, label %143

135:                                              ; preds = %111
  %136 = load float, ptr %24, align 4, !tbaa !11
  %137 = load float, ptr %22, align 4, !tbaa !11
  %138 = fcmp olt float %136, %137
  br i1 %138, label %139, label %143

139:                                              ; preds = %135
  store i32 1, ptr %27, align 4, !tbaa !9
  %140 = load float, ptr %22, align 4, !tbaa !11
  %141 = load float, ptr %24, align 4, !tbaa !11
  %142 = fdiv float %140, %141
  store float %142, ptr %25, align 4, !tbaa !11
  br label %152

143:                                              ; preds = %135, %111
  %144 = load float, ptr %24, align 4, !tbaa !11
  %145 = load float, ptr %23, align 4, !tbaa !11
  %146 = fcmp ogt float %144, %145
  br i1 %146, label %147, label %151

147:                                              ; preds = %143
  store i32 1, ptr %27, align 4, !tbaa !9
  %148 = load float, ptr %23, align 4, !tbaa !11
  %149 = load float, ptr %24, align 4, !tbaa !11
  %150 = fdiv float %148, %149
  store float %150, ptr %25, align 4, !tbaa !11
  br label %151

151:                                              ; preds = %147, %143
  br label %152

152:                                              ; preds = %151, %139
  %153 = load i32, ptr %27, align 4, !tbaa !9
  %154 = icmp eq i32 %153, 1
  br i1 %154, label %155, label %164

155:                                              ; preds = %152
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = getelementptr inbounds float, ptr %157, i64 1
  call void @sscal_(ptr noundef %156, ptr noundef %25, ptr noundef %158, ptr noundef @c__1)
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = load i32, ptr %159, align 4, !tbaa !9
  %161 = sub nsw i32 %160, 1
  store i32 %161, ptr %19, align 4, !tbaa !9
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = getelementptr inbounds float, ptr %162, i64 1
  call void @sscal_(ptr noundef %19, ptr noundef %25, ptr noundef %163, ptr noundef @c__1)
  br label %164

164:                                              ; preds = %155, %152
  %165 = load i32, ptr %26, align 4, !tbaa !9
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %174, label %167

167:                                              ; preds = %164
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = getelementptr inbounds float, ptr %169, i64 1
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %172 = getelementptr inbounds float, ptr %171, i64 1
  %173 = load ptr, ptr %16, align 8, !tbaa !5
  call void @ssterf_(ptr noundef %168, ptr noundef %170, ptr noundef %172, ptr noundef %173)
  br label %188

174:                                              ; preds = %164
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = getelementptr inbounds float, ptr %176, i64 1
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = getelementptr inbounds float, ptr %178, i64 1
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = load i32, ptr %18, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds float, ptr %180, i64 %182
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = load ptr, ptr %15, align 8, !tbaa !5
  %186 = getelementptr inbounds float, ptr %185, i64 1
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  call void @ssteqr_(ptr noundef @.str.6, ptr noundef %175, ptr noundef %177, ptr noundef %179, ptr noundef %183, ptr noundef %184, ptr noundef %186, ptr noundef %187)
  br label %188

188:                                              ; preds = %174, %167
  %189 = load i32, ptr %27, align 4, !tbaa !9
  %190 = icmp eq i32 %189, 1
  br i1 %190, label %191, label %207

191:                                              ; preds = %188
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = load i32, ptr %192, align 4, !tbaa !9
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %195, label %198

195:                                              ; preds = %191
  %196 = load ptr, ptr %10, align 8, !tbaa !5
  %197 = load i32, ptr %196, align 4, !tbaa !9
  store i32 %197, ptr %21, align 4, !tbaa !9
  br label %202

198:                                              ; preds = %191
  %199 = load ptr, ptr %16, align 8, !tbaa !5
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = sub nsw i32 %200, 1
  store i32 %201, ptr %21, align 4, !tbaa !9
  br label %202

202:                                              ; preds = %198, %195
  %203 = load float, ptr %25, align 4, !tbaa !11
  %204 = fdiv float 1.000000e+00, %203
  store float %204, ptr %20, align 4, !tbaa !11
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = getelementptr inbounds float, ptr %205, i64 1
  call void @sscal_(ptr noundef %21, ptr noundef %20, ptr noundef %206, ptr noundef @c__1)
  br label %207

207:                                              ; preds = %202, %188
  store i32 1, ptr %32, align 4
  br label %208

208:                                              ; preds = %207, %110, %96, %87
  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 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, 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 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  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 float @slamch_(ptr noundef) #2

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

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

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

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

declare void @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 = !{!"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
@.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 i32, align 4
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @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 i32, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  %13 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  store i32 0, ptr %7, align 4, !tbaa !5
  %.not = icmp ne i32 %13, 0
  br i1 %.not, label %16, label %14

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

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

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

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

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

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

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

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

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

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

38:                                               ; preds = %30
  %39 = fcmp ogt float %35, %sqrtf75
  br i1 %39, label %40, label %43

40:                                               ; preds = %38, %30
  %sqrtf75.pn = phi float [ %sqrtf, %30 ], [ %sqrtf75, %38 ]
  %storemerge80 = fdiv float %sqrtf75.pn, %35
  store float %storemerge80, ptr %12, align 4, !tbaa !9
  call void @sscal_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef %2, ptr noundef nonnull @c__1) #3
  %41 = load i32, ptr %1, align 4, !tbaa !5
  %42 = add nsw i32 %41, -1
  store i32 %42, ptr %9, align 4, !tbaa !5
  call void @sscal_(ptr noundef nonnull %9, ptr noundef nonnull %12, ptr noundef %3, ptr noundef nonnull @c__1) #3
  br label %43

43:                                               ; preds = %38, %40
  %44 = phi i1 [ true, %40 ], [ false, %38 ]
  br i1 %.not, label %46, label %45

45:                                               ; preds = %43
  call void @ssterf_(ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull %7) #3
  br label %47

46:                                               ; preds = %43
  call void @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 %47

47:                                               ; preds = %46, %45
  br i1 %44, label %48, label %58

48:                                               ; preds = %47
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %48
  %52 = load i32, ptr %1, align 4, !tbaa !5
  br label %55

53:                                               ; preds = %48
  %54 = add nsw i32 %49, -1
  br label %55

55:                                               ; preds = %53, %51
  %storemerge = phi i32 [ %54, %53 ], [ %52, %51 ]
  store i32 %storemerge, ptr %11, align 4, !tbaa !5
  %56 = load float, ptr %12, align 4, !tbaa !9
  %57 = fdiv float 1.000000e+00, %56
  store float %57, ptr %10, align 4, !tbaa !9
  call void @sscal_(ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef %2, ptr noundef nonnull @c__1) #3
  br label %58

58:                                               ; preds = %47, %55, %28, %29, %27, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  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 float @slamch_(ptr noundef) local_unnamed_addr #2

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

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

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

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