; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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 i64, align 8

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

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

46:                                               ; preds = %42
  %47 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -1, ptr %47, align 8, !tbaa !9
  br label %62

48:                                               ; preds = %42, %8
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = icmp slt i64 %50, 0
  br i1 %51, label %52, label %54

52:                                               ; preds = %48
  %53 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -2, ptr %53, align 8, !tbaa !9
  br label %61

54:                                               ; preds = %48
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = load double, ptr %55, align 8, !tbaa !11
  %57 = fcmp olt double %56, 0.000000e+00
  br i1 %57, label %58, label %60

58:                                               ; preds = %54
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -4, ptr %59, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %58, %54
  br label %61

61:                                               ; preds = %60, %52
  br label %62

62:                                               ; preds = %61, %46
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = load i64, ptr %63, align 8, !tbaa !9
  %65 = icmp ne i64 %64, 0
  br i1 %65, label %66, label %71

66:                                               ; preds = %62
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = sub nsw i64 0, %68
  store i64 %69, ptr %18, align 8, !tbaa !9
  %70 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %18)
  store i32 0, ptr %9, align 4
  store i32 1, ptr %30, align 4
  br label %215

71:                                               ; preds = %62
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %72, align 8, !tbaa !11
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = icmp eq i64 %74, 0
  br i1 %75, label %76, label %78

76:                                               ; preds = %71
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  store double 1.000000e+00, ptr %77, align 8, !tbaa !11
  store i32 0, ptr %9, align 4
  store i32 1, ptr %30, align 4
  br label %215

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

82:                                               ; preds = %78
  store i32 0, ptr %9, align 4
  store i32 1, ptr %30, align 4
  br label %215

83:                                               ; preds = %78
  br label %84

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

87:                                               ; preds = %202, %84
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = add nsw i64 %91, 1
  %93 = getelementptr inbounds double, ptr %89, i64 %92
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i64 1
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = getelementptr inbounds i64, ptr %96, i64 1
  %98 = getelementptr inbounds [3 x i64], ptr %23, i64 0, i64 0
  %99 = call i32 @dlacn2_(ptr noundef %88, ptr noundef %93, ptr noundef %95, ptr noundef %97, ptr noundef %27, ptr noundef %21, ptr noundef %98)
  %100 = load i64, ptr %21, align 8, !tbaa !9
  %101 = icmp ne i64 %100, 0
  br i1 %101, label %102, label %203

102:                                              ; preds = %87
  %103 = load i64, ptr %24, align 8, !tbaa !9
  %104 = icmp ne i64 %103, 0
  br i1 %104, label %105, label %135

105:                                              ; preds = %102
  %106 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds double, ptr %108, i64 1
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  %111 = getelementptr inbounds double, ptr %110, i64 1
  %112 = load ptr, ptr %15, align 8, !tbaa !5
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = shl i64 %114, 1
  %116 = add nsw i64 %115, 1
  %117 = getelementptr inbounds double, ptr %112, i64 %116
  %118 = load ptr, ptr %17, align 8, !tbaa !5
  %119 = call i32 @dlatps_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %106, ptr noundef %107, ptr noundef %109, ptr noundef %111, ptr noundef %25, ptr noundef %117, ptr noundef %118)
  %120 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  store i8 89, ptr %120, align 1, !tbaa !13
  %121 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds double, ptr %123, i64 1
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = getelementptr inbounds double, ptr %125, i64 1
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = shl i64 %129, 1
  %131 = add nsw i64 %130, 1
  %132 = getelementptr inbounds double, ptr %127, i64 %131
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = call i32 @dlatps_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %121, ptr noundef %122, ptr noundef %124, ptr noundef %126, ptr noundef %26, ptr noundef %132, ptr noundef %133)
  br label %165

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

165:                                              ; preds = %135, %105
  %166 = load double, ptr %25, align 8, !tbaa !11
  %167 = load double, ptr %26, align 8, !tbaa !11
  %168 = fmul double %166, %167
  store double %168, ptr %22, align 8, !tbaa !11
  %169 = load double, ptr %22, align 8, !tbaa !11
  %170 = fcmp une double %169, 1.000000e+00
  br i1 %170, label %171, label %202

171:                                              ; preds = %165
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = load ptr, ptr %15, align 8, !tbaa !5
  %174 = getelementptr inbounds double, ptr %173, i64 1
  %175 = call i64 @f2c_idamax(ptr noundef %172, ptr noundef %174, ptr noundef @c__1)
  store i64 %175, ptr %20, align 8, !tbaa !9
  %176 = load double, ptr %22, align 8, !tbaa !11
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = load i64, ptr %20, align 8, !tbaa !9
  %179 = getelementptr inbounds double, ptr %177, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !11
  store double %180, ptr %19, align 8, !tbaa !11
  %181 = load double, ptr %19, align 8, !tbaa !11
  %182 = fcmp oge double %181, 0.000000e+00
  br i1 %182, label %183, label %185

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

185:                                              ; preds = %171
  %186 = load double, ptr %19, 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 %29, align 8, !tbaa !11
  %191 = fmul double %189, %190
  %192 = fcmp olt double %176, %191
  br i1 %192, label %196, label %193

193:                                              ; preds = %188
  %194 = load double, ptr %22, 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 %214

197:                                              ; preds = %193
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = load ptr, ptr %15, align 8, !tbaa !5
  %200 = getelementptr inbounds double, ptr %199, i64 1
  %201 = call i32 @drscl_(ptr noundef %198, ptr noundef %22, ptr noundef %200, ptr noundef @c__1)
  br label %202

202:                                              ; preds = %197, %165
  br label %87

203:                                              ; preds = %87
  %204 = load double, ptr %27, align 8, !tbaa !11
  %205 = fcmp une double %204, 0.000000e+00
  br i1 %205, label %206, label %213

206:                                              ; preds = %203
  %207 = load double, ptr %27, align 8, !tbaa !11
  %208 = fdiv double 1.000000e+00, %207
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = load double, ptr %209, align 8, !tbaa !11
  %211 = fdiv double %208, %210
  %212 = load ptr, ptr %14, align 8, !tbaa !5
  store double %211, ptr %212, align 8, !tbaa !11
  br label %213

213:                                              ; preds = %206, %203
  br label %214

214:                                              ; preds = %213, %196
  store i32 0, ptr %9, align 4
  store i32 1, ptr %30, align 4
  br label %215

215:                                              ; preds = %214, %82, %76, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 24, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  %216 = load i32, ptr %9, align 4
  ret i32 %216
}

; 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 @dlamch_(ptr noundef) #2

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

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

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

declare i32 @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 = !{!"long", !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 i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @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 i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  %12 = alloca [3 x i64], align 16
  %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 8, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 24, 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 i64 0, ptr %7, align 8, !tbaa !5
  %18 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %.not = icmp eq i64 %18, 0
  br i1 %.not, label %19, label %21

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

21:                                               ; preds = %19, %8
  %22 = load i64, ptr %1, align 8, !tbaa !5
  %23 = icmp slt i64 %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 i64, ptr %7, align 8, !tbaa !5
  %.not63 = icmp eq i64 %.pr, 0
  br i1 %.not63, label %31, label %.thread

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

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

31:                                               ; preds = %27
  store double 0.000000e+00, ptr %4, align 8, !tbaa !9
  %32 = icmp eq i64 %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 i64 0, ptr %10, align 8, !tbaa !5
  store i8 78, ptr %16, align 1, !tbaa !11
  %39 = load i64, ptr %1, align 8, !tbaa !5
  %40 = getelementptr double, ptr %5, i64 %39
  %41 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %40, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %42 = load i64, ptr %10, align 8, !tbaa !5
  %.not6469 = icmp eq i64 %42, 0
  br i1 %.not6469, 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, %66
  %43 = load i64, ptr %1, align 8, !tbaa !5
  %.idx.us = shl i64 %43, 4
  %44 = getelementptr i8, ptr %5, i64 %.idx.us
  %45 = call i32 @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 %44, ptr noundef nonnull %7) #3
  store i8 89, ptr %16, align 1, !tbaa !11
  %46 = load i64, ptr %1, align 8, !tbaa !5
  %.idx65.us = shl i64 %46, 4
  %47 = getelementptr i8, ptr %5, i64 %.idx65.us
  %48 = call i32 @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 %47, ptr noundef nonnull %7) #3
  %49 = load double, ptr %13, align 8, !tbaa !9
  %50 = load double, ptr %14, align 8, !tbaa !9
  %51 = fmul double %49, %50
  store double %51, ptr %11, align 8, !tbaa !9
  %52 = fcmp une double %51, 1.000000e+00
  br i1 %52, label %53, label %66

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

64:                                               ; preds = %53
  %65 = call i32 @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #3
  br label %66

66:                                               ; preds = %64, %.lr.ph.split.us
  %67 = load i64, ptr %1, align 8, !tbaa !5
  %68 = getelementptr double, ptr %5, i64 %67
  %69 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %68, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %70 = load i64, ptr %10, align 8, !tbaa !5
  %.not64.us = icmp eq i64 %70, 0
  br i1 %.not64.us, label %._crit_edge, label %.lr.ph.split.us

.lr.ph.split:                                     ; preds = %.lr.ph, %94
  %71 = load i64, ptr %1, align 8, !tbaa !5
  %.idx66 = shl i64 %71, 4
  %72 = getelementptr i8, ptr %5, i64 %.idx66
  %73 = call i32 @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 %72, ptr noundef nonnull %7) #3
  store i8 89, ptr %16, align 1, !tbaa !11
  %74 = load i64, ptr %1, align 8, !tbaa !5
  %.idx67 = shl i64 %74, 4
  %75 = getelementptr i8, ptr %5, i64 %.idx67
  %76 = call i32 @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 %75, ptr noundef nonnull %7) #3
  %77 = load double, ptr %13, align 8, !tbaa !9
  %78 = load double, ptr %14, align 8, !tbaa !9
  %79 = fmul double %77, %78
  store double %79, ptr %11, align 8, !tbaa !9
  %80 = fcmp une double %79, 1.000000e+00
  br i1 %80, label %81, label %94

81:                                               ; preds = %.lr.ph.split
  %82 = call i64 @f2c_idamax(ptr noundef nonnull %1, ptr noundef %5, ptr noundef nonnull @c__1) #3
  %83 = load double, ptr %11, align 8
  %84 = getelementptr inbounds double, ptr %17, i64 %82
  %85 = load double, ptr %84, align 8, !tbaa !9
  %86 = fcmp oge double %85, 0.000000e+00
  %87 = fneg double %85
  %88 = select i1 %86, double %85, double %87
  %89 = fmul double %38, %88
  %90 = fcmp olt double %83, %89
  %91 = fcmp oeq double %83, 0.000000e+00
  %or.cond = or i1 %91, %90
  br i1 %or.cond, label %.loopexit, label %92

92:                                               ; preds = %81
  %93 = call i32 @drscl_(ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #3
  br label %94

94:                                               ; preds = %92, %.lr.ph.split
  %95 = load i64, ptr %1, align 8, !tbaa !5
  %96 = getelementptr double, ptr %5, i64 %95
  %97 = call i32 @dlacn2_(ptr noundef nonnull %1, ptr noundef %96, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %98 = load i64, ptr %10, align 8, !tbaa !5
  %.not64 = icmp eq i64 %98, 0
  br i1 %.not64, label %._crit_edge, label %.lr.ph.split

._crit_edge:                                      ; preds = %94, %66, %37
  %99 = load double, ptr %15, align 8, !tbaa !9
  %100 = fcmp une double %99, 0.000000e+00
  br i1 %100, label %101, label %.loopexit

101:                                              ; preds = %._crit_edge
  %102 = fdiv double 1.000000e+00, %99
  %103 = load double, ptr %3, align 8, !tbaa !9
  %104 = fdiv double %102, %103
  store double %104, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %81, %53, %101, %._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 24, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 @dlamch_(ptr noundef) local_unnamed_addr #2

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

declare i32 @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 i64 @f2c_idamax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @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 = !{!"long", !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,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass