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

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

; Function Attrs: nounwind uwtable
define dso_local void @dppcon_(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 double, align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca [3 x i32], align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca [1 x i8], align 1
  %28 = alloca double, align 8
  %29 = 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) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %30 = load ptr, ptr %15, align 8, !tbaa !5
  %31 = getelementptr inbounds i32, ptr %30, i32 -1
  store ptr %31, ptr %15, align 8, !tbaa !5
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  %33 = getelementptr inbounds double, ptr %32, i32 -1
  store ptr %33, ptr %14, align 8, !tbaa !5
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %34, i32 -1
  store ptr %35, ptr %11, align 8, !tbaa !5
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %36, align 4, !tbaa !9
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = call i32 @lsame_(ptr noundef %37, ptr noundef @.str)
  store i32 %38, ptr %22, align 4, !tbaa !9
  %39 = load i32, ptr %22, align 4, !tbaa !9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %47, label %41

41:                                               ; preds = %8
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call i32 @lsame_(ptr noundef %42, ptr noundef @.str.1)
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %47, label %45

45:                                               ; preds = %41
  %46 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 -1, ptr %46, align 4, !tbaa !9
  br label %61

47:                                               ; preds = %41, %8
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = icmp slt i32 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %47
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 -2, ptr %52, align 4, !tbaa !9
  br label %60

53:                                               ; preds = %47
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = load double, ptr %54, align 8, !tbaa !11
  %56 = fcmp olt double %55, 0.000000e+00
  br i1 %56, label %57, label %59

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

59:                                               ; preds = %57, %53
  br label %60

60:                                               ; preds = %59, %51
  br label %61

61:                                               ; preds = %60, %45
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %61
  %66 = load ptr, ptr %16, align 8, !tbaa !5
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = sub nsw i32 0, %67
  store i32 %68, ptr %17, align 4, !tbaa !9
  %69 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %17, i32 noundef 6)
  store i32 1, ptr %29, align 4
  br label %214

70:                                               ; preds = %61
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %71, align 8, !tbaa !11
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %70
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  store double 1.000000e+00, ptr %76, align 8, !tbaa !11
  store i32 1, ptr %29, align 4
  br label %214

77:                                               ; preds = %70
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = fcmp oeq double %79, 0.000000e+00
  br i1 %80, label %81, label %82

81:                                               ; preds = %77
  store i32 1, ptr %29, align 4
  br label %214

82:                                               ; preds = %77
  br label %83

83:                                               ; preds = %82
  %84 = call double @dlamch_(ptr noundef @.str.3)
  store double %84, ptr %28, align 8, !tbaa !11
  store i32 0, ptr %19, align 4, !tbaa !9
  %85 = getelementptr inbounds [1 x i8], ptr %27, i64 0, i64 0
  store i8 78, ptr %85, align 1, !tbaa !13
  br label %86

86:                                               ; preds = %201, %83
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %88, i64 %92
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i64 1
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = getelementptr inbounds i32, ptr %96, i64 1
  %98 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 0
  call void @dlacn2_(ptr noundef %87, ptr noundef %93, ptr noundef %95, ptr noundef %97, ptr noundef %26, ptr noundef %19, ptr noundef %98)
  %99 = load i32, ptr %19, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %202

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

104:                                              ; preds = %101
  %105 = getelementptr inbounds [1 x i8], ptr %27, i64 0, i64 0
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = getelementptr inbounds double, ptr %107, i64 1
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = getelementptr inbounds double, ptr %109, i64 1
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = shl i32 %113, 1
  %115 = add nsw i32 %114, 1
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds double, ptr %111, i64 %116
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  call void @dlatps_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %105, ptr noundef %106, ptr noundef %108, ptr noundef %110, ptr noundef %24, ptr noundef %117, ptr noundef %118)
  %119 = getelementptr inbounds [1 x i8], ptr %27, i64 0, i64 0
  store i8 89, ptr %119, align 1, !tbaa !13
  %120 = getelementptr inbounds [1 x i8], ptr %27, i64 0, i64 0
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds double, ptr %122, i64 1
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = getelementptr inbounds double, ptr %124, i64 1
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = shl i32 %128, 1
  %130 = add nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds double, ptr %126, i64 %131
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  call void @dlatps_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %120, ptr noundef %121, ptr noundef %123, ptr noundef %125, ptr noundef %25, ptr noundef %132, ptr noundef %133)
  br label %164

134:                                              ; preds = %101
  %135 = getelementptr inbounds [1 x i8], ptr %27, i64 0, i64 0
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = getelementptr inbounds double, ptr %137, i64 1
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i64 1
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = load i32, ptr %142, align 4, !tbaa !9
  %144 = shl i32 %143, 1
  %145 = add nsw i32 %144, 1
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %141, i64 %146
  %148 = load ptr, ptr %16, align 8, !tbaa !5
  call void @dlatps_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %135, ptr noundef %136, ptr noundef %138, ptr noundef %140, ptr noundef %24, ptr noundef %147, ptr noundef %148)
  %149 = getelementptr inbounds [1 x i8], ptr %27, i64 0, i64 0
  store i8 89, ptr %149, align 1, !tbaa !13
  %150 = getelementptr inbounds [1 x i8], ptr %27, i64 0, i64 0
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds double, ptr %152, i64 1
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = getelementptr inbounds double, ptr %154, i64 1
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = shl i32 %158, 1
  %160 = add nsw i32 %159, 1
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds double, ptr %156, i64 %161
  %163 = load ptr, ptr %16, align 8, !tbaa !5
  call void @dlatps_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %150, ptr noundef %151, ptr noundef %153, ptr noundef %155, ptr noundef %25, ptr noundef %162, ptr noundef %163)
  br label %164

164:                                              ; preds = %134, %104
  %165 = load double, ptr %24, align 8, !tbaa !11
  %166 = load double, ptr %25, align 8, !tbaa !11
  %167 = fmul double %165, %166
  store double %167, ptr %20, align 8, !tbaa !11
  %168 = load double, ptr %20, align 8, !tbaa !11
  %169 = fcmp une double %168, 1.000000e+00
  br i1 %169, label %170, label %201

170:                                              ; preds = %164
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 1
  %174 = call i32 @idamax_(ptr noundef %171, ptr noundef %173, ptr noundef @c__1)
  store i32 %174, ptr %23, align 4, !tbaa !9
  %175 = load double, ptr %20, align 8, !tbaa !11
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  %177 = load i32, ptr %23, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds double, ptr %176, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !11
  store double %180, ptr %18, align 8, !tbaa !11
  %181 = load double, ptr %18, align 8, !tbaa !11
  %182 = fcmp oge double %181, 0.000000e+00
  br i1 %182, label %183, label %185

183:                                              ; preds = %170
  %184 = load double, ptr %18, align 8, !tbaa !11
  br label %188

185:                                              ; preds = %170
  %186 = load double, ptr %18, align 8, !tbaa !11
  %187 = fneg double %186
  br label %188

188:                                              ; preds = %185, %183
  %189 = phi double [ %184, %183 ], [ %187, %185 ]
  %190 = load double, ptr %28, align 8, !tbaa !11
  %191 = fmul double %189, %190
  %192 = fcmp olt double %175, %191
  br i1 %192, label %196, label %193

193:                                              ; preds = %188
  %194 = load double, ptr %20, align 8, !tbaa !11
  %195 = fcmp oeq double %194, 0.000000e+00
  br i1 %195, label %196, label %197

196:                                              ; preds = %193, %188
  br label %213

197:                                              ; preds = %193
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = getelementptr inbounds double, ptr %199, i64 1
  call void @drscl_(ptr noundef %198, ptr noundef %20, ptr noundef %200, ptr noundef @c__1)
  br label %201

201:                                              ; preds = %197, %164
  br label %86

202:                                              ; preds = %86
  %203 = load double, ptr %26, align 8, !tbaa !11
  %204 = fcmp une double %203, 0.000000e+00
  br i1 %204, label %205, label %212

205:                                              ; preds = %202
  %206 = load double, ptr %26, align 8, !tbaa !11
  %207 = fdiv double 1.000000e+00, %206
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  %209 = load double, ptr %208, align 8, !tbaa !11
  %210 = fdiv double %207, %209
  %211 = load ptr, ptr %13, align 8, !tbaa !5
  store double %210, ptr %211, align 8, !tbaa !11
  br label %212

212:                                              ; preds = %205, %202
  br label %213

213:                                              ; preds = %212, %196
  store i32 1, ptr %29, align 4
  br label %214

214:                                              ; preds = %213, %81, %75, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #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 double @dlamch_(ptr noundef) #2

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

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

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

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

!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}
!13 = !{!7, !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 [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @dppcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef writeonly %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca [3 x i32], align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca [1 x i8], align 1
  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 8, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #3
  %17 = getelementptr inbounds i8, ptr %5, i64 -8
  store i32 0, ptr %7, align 4, !tbaa !5
  %18 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %19, label %21

19:                                               ; preds = %8
  %20 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not61 = icmp eq i32 %20, 0
  br i1 %.not61, label %.thread.sink.split, label %21

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

24:                                               ; preds = %21
  %25 = load double, ptr %3, align 8, !tbaa !9
  %26 = fcmp olt double %25, 0.000000e+00
  br i1 %26, label %.thread.sink.split, label %27

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

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

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

31:                                               ; preds = %27
  store double 0.000000e+00, ptr %4, align 8, !tbaa !9
  %32 = icmp eq i32 %22, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %31
  store double 1.000000e+00, ptr %4, align 8, !tbaa !9
  br label %.loopexit

34:                                               ; preds = %31
  %35 = load double, ptr %3, align 8, !tbaa !9
  %36 = fcmp oeq double %35, 0.000000e+00
  br i1 %36, label %.loopexit, label %37

37:                                               ; preds = %34
  %38 = tail call double @dlamch_(ptr noundef nonnull @.str.3) #3
  store i32 0, ptr %10, align 4, !tbaa !5
  store i8 78, ptr %16, align 1, !tbaa !11
  %39 = load i32, ptr %1, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %gep65 = getelementptr double, ptr %5, i64 %40
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep65, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %41 = load i32, ptr %10, align 4, !tbaa !5
  %.not6366 = icmp eq i32 %41, 0
  br i1 %.not6366, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %37
  br i1 %.not, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %69
  %42 = load i32, ptr %1, align 4, !tbaa !5
  %43 = shl i32 %42, 1
  %44 = or disjoint i32 %43, 1
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds double, ptr %17, i64 %45
  call void @dlatps_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %16, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %5, ptr noundef nonnull %13, ptr noundef nonnull %46, ptr noundef nonnull %7) #3
  store i8 89, ptr %16, align 1, !tbaa !11
  %47 = load i32, ptr %1, align 4, !tbaa !5
  %48 = shl i32 %47, 1
  %49 = or disjoint i32 %48, 1
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds double, ptr %17, i64 %50
  call void @dlatps_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %16, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %5, ptr noundef nonnull %14, ptr noundef nonnull %51, ptr noundef nonnull %7) #3
  %52 = load double, ptr %13, align 8, !tbaa !9
  %53 = load double, ptr %14, align 8, !tbaa !9
  %54 = fmul double %52, %53
  store double %54, ptr %11, align 8, !tbaa !9
  %55 = fcmp une double %54, 1.000000e+00
  br i1 %55, label %56, label %69

56:                                               ; preds = %.lr.ph.split.us
  %57 = call i32 @idamax_(ptr noundef nonnull %1, ptr noundef %5, ptr noundef nonnull @c__1) #3
  %58 = load double, ptr %11, align 8
  %59 = sext i32 %57 to i64
  %60 = getelementptr inbounds double, ptr %17, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = fcmp oge double %61, 0.000000e+00
  %63 = fneg double %61
  %64 = select i1 %62, double %61, double %63
  %65 = fmul double %38, %64
  %66 = fcmp olt double %58, %65
  %67 = fcmp oeq double %58, 0.000000e+00
  %or.cond.us = or i1 %67, %66
  br i1 %or.cond.us, label %.loopexit, label %68

68:                                               ; preds = %56
  call void @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #3
  br label %69

69:                                               ; preds = %68, %.lr.ph.split.us
  %70 = load i32, ptr %1, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %gep.us = getelementptr double, ptr %5, i64 %71
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep.us, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %72 = load i32, ptr %10, align 4, !tbaa !5
  %.not63.us = icmp eq i32 %72, 0
  br i1 %.not63.us, label %._crit_edge, label %.lr.ph.split.us

.lr.ph.split:                                     ; preds = %.lr.ph, %100
  %73 = load i32, ptr %1, align 4, !tbaa !5
  %74 = shl i32 %73, 1
  %75 = or disjoint i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %17, i64 %76
  call void @dlatps_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %16, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %5, ptr noundef nonnull %13, ptr noundef nonnull %77, ptr noundef nonnull %7) #3
  store i8 89, ptr %16, align 1, !tbaa !11
  %78 = load i32, ptr %1, align 4, !tbaa !5
  %79 = shl i32 %78, 1
  %80 = or disjoint i32 %79, 1
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %17, i64 %81
  call void @dlatps_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %16, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %5, ptr noundef nonnull %14, ptr noundef nonnull %82, ptr noundef nonnull %7) #3
  %83 = load double, ptr %13, align 8, !tbaa !9
  %84 = load double, ptr %14, align 8, !tbaa !9
  %85 = fmul double %83, %84
  store double %85, ptr %11, align 8, !tbaa !9
  %86 = fcmp une double %85, 1.000000e+00
  br i1 %86, label %87, label %100

87:                                               ; preds = %.lr.ph.split
  %88 = call i32 @idamax_(ptr noundef nonnull %1, ptr noundef %5, ptr noundef nonnull @c__1) #3
  %89 = load double, ptr %11, align 8
  %90 = sext i32 %88 to i64
  %91 = getelementptr inbounds double, ptr %17, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = fcmp oge double %92, 0.000000e+00
  %94 = fneg double %92
  %95 = select i1 %93, double %92, double %94
  %96 = fmul double %38, %95
  %97 = fcmp olt double %89, %96
  %98 = fcmp oeq double %89, 0.000000e+00
  %or.cond = or i1 %98, %97
  br i1 %or.cond, label %.loopexit, label %99

99:                                               ; preds = %87
  call void @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #3
  br label %100

100:                                              ; preds = %99, %.lr.ph.split
  %101 = load i32, ptr %1, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %gep = getelementptr double, ptr %5, i64 %102
  call void @dlacn2_(ptr noundef nonnull %1, ptr noundef %gep, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %103 = load i32, ptr %10, align 4, !tbaa !5
  %.not63 = icmp eq i32 %103, 0
  br i1 %.not63, label %._crit_edge, label %.lr.ph.split

._crit_edge:                                      ; preds = %100, %69, %37
  %104 = load double, ptr %15, align 8, !tbaa !9
  %105 = fcmp une double %104, 0.000000e+00
  br i1 %105, label %106, label %.loopexit

106:                                              ; preds = %._crit_edge
  %107 = fdiv double 1.000000e+00, %104
  %108 = load double, ptr %3, align 8, !tbaa !9
  %109 = fdiv double %107, %108
  store double %109, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %87, %56, %106, %._crit_edge, %34, %33, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 12, 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 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 double @dlamch_(ptr noundef) local_unnamed_addr #2

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

declare void @dlatps_(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 i32 @idamax_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @drscl_(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 = { 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}
!11 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass