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

; 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"

%struct.doublecomplex = type { double, double }

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

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

47:                                               ; preds = %43
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -1, ptr %48, align 8, !tbaa !9
  br label %63

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

53:                                               ; preds = %49
  %54 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -2, ptr %54, align 8, !tbaa !9
  br label %62

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

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

61:                                               ; preds = %59, %55
  br label %62

62:                                               ; preds = %61, %53
  br label %63

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

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

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

77:                                               ; preds = %72
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  store double 1.000000e+00, ptr %78, align 8, !tbaa !11
  store i32 0, ptr %9, align 4
  store i32 1, ptr %31, align 4
  br label %214

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

83:                                               ; preds = %79
  store i32 0, ptr %9, align 4
  store i32 1, ptr %31, align 4
  br label %214

84:                                               ; preds = %79
  br label %85

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

88:                                               ; preds = %201, %85
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = add nsw i64 %92, 1
  %94 = getelementptr inbounds %struct.doublecomplex, ptr %90, i64 %93
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.doublecomplex, ptr %95, i64 1
  %97 = getelementptr inbounds [3 x i64], ptr %24, i64 0, i64 0
  %98 = call i32 @zlacn2_(ptr noundef %89, ptr noundef %94, ptr noundef %96, ptr noundef %28, ptr noundef %22, ptr noundef %97)
  %99 = load i64, ptr %22, align 8, !tbaa !9
  %100 = icmp ne i64 %99, 0
  br i1 %100, label %101, label %202

101:                                              ; preds = %88
  %102 = load i64, ptr %25, align 8, !tbaa !9
  %103 = icmp ne i64 %102, 0
  br i1 %103, label %104, label %126

104:                                              ; preds = %101
  %105 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.doublecomplex, ptr %107, i64 1
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.doublecomplex, ptr %109, i64 1
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 1
  %113 = load ptr, ptr %17, align 8, !tbaa !5
  %114 = call i32 @zlatps_(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 %26, ptr noundef %112, ptr noundef %113)
  %115 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  store i8 89, ptr %115, align 1, !tbaa !13
  %116 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.doublecomplex, ptr %118, i64 1
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.doublecomplex, ptr %120, i64 1
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  %123 = getelementptr inbounds double, ptr %122, i64 1
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = call i32 @zlatps_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %116, ptr noundef %117, ptr noundef %119, ptr noundef %121, ptr noundef %27, ptr noundef %123, ptr noundef %124)
  br label %148

126:                                              ; preds = %101
  %127 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.doublecomplex, ptr %129, i64 1
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.doublecomplex, ptr %131, i64 1
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = getelementptr inbounds double, ptr %133, i64 1
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = call i32 @zlatps_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %127, ptr noundef %128, ptr noundef %130, ptr noundef %132, ptr noundef %26, ptr noundef %134, ptr noundef %135)
  %137 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  store i8 89, ptr %137, align 1, !tbaa !13
  %138 = getelementptr inbounds [1 x i8], ptr %29, i64 0, i64 0
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %140, i64 1
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.doublecomplex, ptr %142, i64 1
  %144 = load ptr, ptr %16, align 8, !tbaa !5
  %145 = getelementptr inbounds double, ptr %144, i64 1
  %146 = load ptr, ptr %17, align 8, !tbaa !5
  %147 = call i32 @zlatps_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %138, ptr noundef %139, ptr noundef %141, ptr noundef %143, ptr noundef %27, ptr noundef %145, ptr noundef %146)
  br label %148

148:                                              ; preds = %126, %104
  %149 = load double, ptr %26, align 8, !tbaa !11
  %150 = load double, ptr %27, align 8, !tbaa !11
  %151 = fmul double %149, %150
  store double %151, ptr %23, align 8, !tbaa !11
  %152 = load double, ptr %23, align 8, !tbaa !11
  %153 = fcmp une double %152, 1.000000e+00
  br i1 %153, label %154, label %201

154:                                              ; preds = %148
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.doublecomplex, ptr %156, i64 1
  %158 = call i64 @f2c_izamax(ptr noundef %155, ptr noundef %157, ptr noundef @c__1)
  store i64 %158, ptr %21, align 8, !tbaa !9
  %159 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %159, ptr %18, align 8, !tbaa !9
  %160 = load double, ptr %23, align 8, !tbaa !11
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  %162 = load i64, ptr %18, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.doublecomplex, ptr %161, i64 %162
  %164 = getelementptr inbounds %struct.doublecomplex, ptr %163, i32 0, i32 0
  %165 = load double, ptr %164, align 8, !tbaa !14
  store double %165, ptr %19, align 8, !tbaa !11
  %166 = load double, ptr %19, align 8, !tbaa !11
  %167 = fcmp oge double %166, 0.000000e+00
  br i1 %167, label %168, label %170

168:                                              ; preds = %154
  %169 = load double, ptr %19, align 8, !tbaa !11
  br label %173

170:                                              ; preds = %154
  %171 = load double, ptr %19, align 8, !tbaa !11
  %172 = fneg double %171
  br label %173

173:                                              ; preds = %170, %168
  %174 = phi double [ %169, %168 ], [ %172, %170 ]
  %175 = load ptr, ptr %15, align 8, !tbaa !5
  %176 = load i64, ptr %21, align 8, !tbaa !9
  %177 = getelementptr inbounds %struct.doublecomplex, ptr %175, i64 %176
  %178 = call double @d_imag(ptr noundef %177)
  store double %178, ptr %20, align 8, !tbaa !11
  %179 = load double, ptr %20, align 8, !tbaa !11
  %180 = fcmp oge double %179, 0.000000e+00
  br i1 %180, label %181, label %183

181:                                              ; preds = %173
  %182 = load double, ptr %20, align 8, !tbaa !11
  br label %186

183:                                              ; preds = %173
  %184 = load double, ptr %20, align 8, !tbaa !11
  %185 = fneg double %184
  br label %186

186:                                              ; preds = %183, %181
  %187 = phi double [ %182, %181 ], [ %185, %183 ]
  %188 = fadd double %174, %187
  %189 = load double, ptr %30, align 8, !tbaa !11
  %190 = fmul double %188, %189
  %191 = fcmp olt double %160, %190
  br i1 %191, label %195, label %192

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

195:                                              ; preds = %192, %186
  br label %213

196:                                              ; preds = %192
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = load ptr, ptr %15, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %198, i64 1
  %200 = call i32 @zdrscl_(ptr noundef %197, ptr noundef %23, ptr noundef %199, ptr noundef @c__1)
  br label %201

201:                                              ; preds = %196, %148
  br label %88

202:                                              ; preds = %88
  %203 = load double, ptr %28, 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 %28, align 8, !tbaa !11
  %207 = fdiv double 1.000000e+00, %206
  %208 = load ptr, ptr %13, align 8, !tbaa !5
  %209 = load double, ptr %208, align 8, !tbaa !11
  %210 = fdiv double %207, %209
  %211 = load ptr, ptr %14, 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, %195
  store i32 0, ptr %9, align 4
  store i32 1, ptr %31, align 4
  br label %214

214:                                              ; preds = %213, %83, %77, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 24, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  %215 = load i32, ptr %9, align 4
  ret i32 %215
}

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

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

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

declare double @d_imag(ptr noundef) #2

declare i32 @zdrscl_(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}
!14 = !{!15, !12, i64 0}
!15 = !{!"", !12, i64 0, !12, i64 8}


; 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"

%struct.doublecomplex = type { double, double }

@.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 [20 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 @zppcon_(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 -16
  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 %struct.doublecomplex, ptr %5, i64 %39
  %41 = call i32 @zlacn2_(ptr noundef nonnull %1, ptr noundef %40, ptr noundef %5, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %42 = load i64, ptr %10, align 8, !tbaa !5
  %.not6466 = icmp eq i64 %42, 0
  br i1 %.not6466, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %37, %73
  br i1 %.not, label %46, label %43

43:                                               ; preds = %.lr.ph
  %44 = call i32 @zlatps_(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 %6, ptr noundef nonnull %7) #3
  store i8 89, ptr %16, align 1, !tbaa !11
  %45 = call i32 @zlatps_(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 %6, ptr noundef nonnull %7) #3
  br label %49

46:                                               ; preds = %.lr.ph
  %47 = call i32 @zlatps_(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 %6, ptr noundef nonnull %7) #3
  store i8 89, ptr %16, align 1, !tbaa !11
  %48 = call i32 @zlatps_(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 %6, ptr noundef nonnull %7) #3
  br label %49

49:                                               ; preds = %46, %43
  %50 = load double, ptr %13, align 8, !tbaa !9
  %51 = load double, ptr %14, align 8, !tbaa !9
  %52 = fmul double %50, %51
  store double %52, ptr %11, align 8, !tbaa !9
  %53 = fcmp une double %52, 1.000000e+00
  br i1 %53, label %54, label %73

54:                                               ; preds = %49
  %55 = call i64 @f2c_izamax(ptr noundef nonnull %1, ptr noundef %5, ptr noundef nonnull @c__1) #3
  %56 = load double, ptr %11, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.doublecomplex, ptr %17, i64 %55
  %58 = load double, ptr %57, align 8, !tbaa !12
  %59 = call double @d_imag(ptr noundef nonnull %57) #3
  %60 = insertelement <2 x double> poison, double %58, i64 0
  %61 = insertelement <2 x double> %60, double %59, i64 1
  %62 = fcmp oge <2 x double> %61, zeroinitializer
  %63 = fneg <2 x double> %61
  %64 = select <2 x i1> %62, <2 x double> %61, <2 x double> %63
  %shift = shufflevector <2 x double> %64, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %65 = fadd <2 x double> %64, %shift
  %66 = extractelement <2 x double> %65, i64 0
  %67 = fmul double %38, %66
  %68 = fcmp olt double %56, %67
  %69 = load double, ptr %11, align 8
  %70 = fcmp oeq double %69, 0.000000e+00
  %or.cond = select i1 %68, i1 true, i1 %70
  br i1 %or.cond, label %.loopexit, label %71

71:                                               ; preds = %54
  %72 = call i32 @zdrscl_(ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #3
  br label %73

73:                                               ; preds = %71, %49
  %74 = load i64, ptr %1, align 8, !tbaa !5
  %75 = getelementptr %struct.doublecomplex, ptr %5, i64 %74
  %76 = call i32 @zlacn2_(ptr noundef nonnull %1, ptr noundef %75, ptr noundef %5, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %77 = load i64, ptr %10, align 8, !tbaa !5
  %.not64 = icmp eq i64 %77, 0
  br i1 %.not64, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %73, %37
  %78 = load double, ptr %15, align 8, !tbaa !9
  %79 = fcmp une double %78, 0.000000e+00
  br i1 %79, label %80, label %.loopexit

80:                                               ; preds = %._crit_edge
  %81 = fdiv double 1.000000e+00, %78
  %82 = load double, ptr %3, align 8, !tbaa !9
  %83 = fdiv double %81, %82
  store double %83, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %54, %80, %._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 @zlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @d_imag(ptr noundef) local_unnamed_addr #2

declare i32 @zdrscl_(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}
!12 = !{!13, !10, i64 0}
!13 = !{!"", !10, i64 0, !10, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass