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

; 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 @dstev_(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 double, align 8
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %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 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = getelementptr inbounds double, 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 double, 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 double, 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 double, 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 %204

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 %204

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 double, ptr %105, i64 %108
  store double 1.000000e+00, ptr %109, align 8, !tbaa !11
  br label %110

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

111:                                              ; preds = %97
  %112 = call double @dlamch_(ptr noundef @.str.3)
  store double %112, ptr %28, align 8, !tbaa !11
  %113 = call double @dlamch_(ptr noundef @.str.4)
  store double %113, ptr %31, align 8, !tbaa !11
  %114 = load double, ptr %28, align 8, !tbaa !11
  %115 = load double, ptr %31, align 8, !tbaa !11
  %116 = fdiv double %114, %115
  store double %116, ptr %30, align 8, !tbaa !11
  %117 = load double, ptr %30, align 8, !tbaa !11
  %118 = fdiv double 1.000000e+00, %117
  store double %118, ptr %29, align 8, !tbaa !11
  %119 = load double, ptr %30, align 8, !tbaa !11
  %120 = call double @sqrt(double noundef %119) #4
  store double %120, ptr %22, align 8, !tbaa !11
  %121 = load double, ptr %29, align 8, !tbaa !11
  %122 = call double @sqrt(double noundef %121) #4
  store double %122, ptr %23, align 8, !tbaa !11
  store i32 0, ptr %27, align 4, !tbaa !9
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = getelementptr inbounds double, ptr %124, i64 1
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = getelementptr inbounds double, ptr %126, i64 1
  %128 = call double @dlanst_(ptr noundef @.str.5, ptr noundef %123, ptr noundef %125, ptr noundef %127)
  store double %128, ptr %24, align 8, !tbaa !11
  %129 = load double, ptr %24, align 8, !tbaa !11
  %130 = fcmp ogt double %129, 0.000000e+00
  br i1 %130, label %131, label %139

131:                                              ; preds = %111
  %132 = load double, ptr %24, align 8, !tbaa !11
  %133 = load double, ptr %22, align 8, !tbaa !11
  %134 = fcmp olt double %132, %133
  br i1 %134, label %135, label %139

135:                                              ; preds = %131
  store i32 1, ptr %27, align 4, !tbaa !9
  %136 = load double, ptr %22, align 8, !tbaa !11
  %137 = load double, ptr %24, align 8, !tbaa !11
  %138 = fdiv double %136, %137
  store double %138, ptr %25, align 8, !tbaa !11
  br label %148

139:                                              ; preds = %131, %111
  %140 = load double, ptr %24, align 8, !tbaa !11
  %141 = load double, ptr %23, align 8, !tbaa !11
  %142 = fcmp ogt double %140, %141
  br i1 %142, label %143, label %147

143:                                              ; preds = %139
  store i32 1, ptr %27, align 4, !tbaa !9
  %144 = load double, ptr %23, align 8, !tbaa !11
  %145 = load double, ptr %24, align 8, !tbaa !11
  %146 = fdiv double %144, %145
  store double %146, ptr %25, align 8, !tbaa !11
  br label %147

147:                                              ; preds = %143, %139
  br label %148

148:                                              ; preds = %147, %135
  %149 = load i32, ptr %27, align 4, !tbaa !9
  %150 = icmp eq i32 %149, 1
  br i1 %150, label %151, label %160

151:                                              ; preds = %148
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds double, ptr %153, i64 1
  call void @dscal_(ptr noundef %152, ptr noundef %25, ptr noundef %154, ptr noundef @c__1)
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = sub nsw i32 %156, 1
  store i32 %157, ptr %19, align 4, !tbaa !9
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = getelementptr inbounds double, ptr %158, i64 1
  call void @dscal_(ptr noundef %19, ptr noundef %25, ptr noundef %159, ptr noundef @c__1)
  br label %160

160:                                              ; preds = %151, %148
  %161 = load i32, ptr %26, align 4, !tbaa !9
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %170, label %163

163:                                              ; preds = %160
  %164 = load ptr, ptr %10, align 8, !tbaa !5
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %165, i64 1
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %167, i64 1
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  call void @dsterf_(ptr noundef %164, ptr noundef %166, ptr noundef %168, ptr noundef %169)
  br label %184

170:                                              ; preds = %160
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 1
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = getelementptr inbounds double, ptr %174, i64 1
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = load i32, ptr %18, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds double, ptr %176, i64 %178
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  %182 = getelementptr inbounds double, ptr %181, i64 1
  %183 = load ptr, ptr %16, align 8, !tbaa !5
  call void @dsteqr_(ptr noundef @.str.6, ptr noundef %171, ptr noundef %173, ptr noundef %175, ptr noundef %179, ptr noundef %180, ptr noundef %182, ptr noundef %183)
  br label %184

184:                                              ; preds = %170, %163
  %185 = load i32, ptr %27, align 4, !tbaa !9
  %186 = icmp eq i32 %185, 1
  br i1 %186, label %187, label %203

187:                                              ; preds = %184
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  %189 = load i32, ptr %188, align 4, !tbaa !9
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %191, label %194

191:                                              ; preds = %187
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = load i32, ptr %192, align 4, !tbaa !9
  store i32 %193, ptr %21, align 4, !tbaa !9
  br label %198

194:                                              ; preds = %187
  %195 = load ptr, ptr %16, align 8, !tbaa !5
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = sub nsw i32 %196, 1
  store i32 %197, ptr %21, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %194, %191
  %199 = load double, ptr %25, align 8, !tbaa !11
  %200 = fdiv double 1.000000e+00, %199
  store double %200, ptr %20, align 8, !tbaa !11
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = getelementptr inbounds double, ptr %201, i64 1
  call void @dscal_(ptr noundef %21, ptr noundef %20, ptr noundef %202, ptr noundef @c__1)
  br label %203

203:                                              ; preds = %198, %184
  store i32 1, ptr %32, align 4
  br label %204

204:                                              ; preds = %203, %110, %96, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 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 double @dlamch_(ptr noundef) #2

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

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

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

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

declare void @dsteqr_(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 = !{!"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 [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 @dstev_(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 double, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %13 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  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) #4
  %.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.cond80 = or i1 %21, %or.cond
  br i1 %or.cond80, 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) #4
  br label %60

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

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

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

30:                                               ; preds = %27
  %31 = tail call double @dlamch_(ptr noundef nonnull @.str.3) #4
  %32 = tail call double @dlamch_(ptr noundef nonnull @.str.4) #4
  %33 = fdiv double %31, %32
  %34 = fdiv double 1.000000e+00, %33
  %35 = tail call double @sqrt(double noundef %33) #4
  %36 = tail call double @sqrt(double noundef %34) #4
  %37 = tail call double @dlanst_(ptr noundef nonnull @.str.5, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3) #4
  %38 = fcmp ogt double %37, 0.000000e+00
  %39 = fcmp olt double %37, %35
  %or.cond75 = select i1 %38, i1 %39, i1 false
  br i1 %or.cond75, label %42, label %40

40:                                               ; preds = %30
  %41 = fcmp ogt double %37, %36
  br i1 %41, label %42, label %45

42:                                               ; preds = %40, %30
  %.pn = phi double [ %35, %30 ], [ %36, %40 ]
  %storemerge79 = fdiv double %.pn, %37
  store double %storemerge79, ptr %12, align 8, !tbaa !9
  call void @dscal_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef %2, ptr noundef nonnull @c__1) #4
  %43 = load i32, ptr %1, align 4, !tbaa !5
  %44 = add nsw i32 %43, -1
  store i32 %44, ptr %9, align 4, !tbaa !5
  call void @dscal_(ptr noundef nonnull %9, ptr noundef nonnull %12, ptr noundef %3, ptr noundef nonnull @c__1) #4
  br label %45

45:                                               ; preds = %40, %42
  %46 = phi i1 [ true, %42 ], [ false, %40 ]
  br i1 %.not, label %48, label %47

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

48:                                               ; preds = %45
  call void @dsteqr_(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) #4
  br label %49

49:                                               ; preds = %48, %47
  br i1 %46, label %50, label %60

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

53:                                               ; preds = %50
  %54 = load i32, ptr %1, align 4, !tbaa !5
  br label %57

55:                                               ; preds = %50
  %56 = add nsw i32 %51, -1
  br label %57

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

60:                                               ; preds = %49, %57, %28, %29, %27, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #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 double @dlamch_(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

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

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

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

declare void @dsteqr_(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

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 = { 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" }
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,SROAPass,SimplifyCFGPass,TailCallElimPass