; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4

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

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

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

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

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

54:                                               ; preds = %48
  %55 = load ptr, ptr %12, 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 %16, align 8, !tbaa !5
  store i32 -4, ptr %59, align 4, !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 %16, align 8, !tbaa !5
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %71

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

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

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

78:                                               ; preds = %71
  %79 = load ptr, ptr %12, 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 1, ptr %30, align 4
  br label %212

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 i32 0, ptr %20, align 4, !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 = %199, %84
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds %struct.doublecomplex, ptr %89, i64 %93
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.doublecomplex, ptr %95, i64 1
  %97 = getelementptr inbounds [3 x i32], ptr %22, i64 0, i64 0
  call void @zlacn2_(ptr noundef %88, ptr noundef %94, ptr noundef %96, ptr noundef %27, ptr noundef %20, ptr noundef %97)
  %98 = load i32, ptr %20, align 4, !tbaa !9
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %200

100:                                              ; preds = %87
  %101 = load i32, ptr %23, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %123

103:                                              ; preds = %100
  %104 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.doublecomplex, ptr %106, i64 1
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.doublecomplex, 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 %16, align 8, !tbaa !5
  call void @zlatps_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %104, ptr noundef %105, ptr noundef %107, ptr noundef %109, ptr noundef %25, ptr noundef %111, ptr noundef %112)
  %113 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  store i8 89, ptr %113, align 1, !tbaa !13
  %114 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.doublecomplex, ptr %116, i64 1
  %118 = load ptr, ptr %14, 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 double, ptr %120, i64 1
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  call void @zlatps_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %114, ptr noundef %115, ptr noundef %117, ptr noundef %119, ptr noundef %26, ptr noundef %121, ptr noundef %122)
  br label %143

123:                                              ; preds = %100
  %124 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.doublecomplex, ptr %126, i64 1
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.doublecomplex, ptr %128, i64 1
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  %131 = getelementptr inbounds double, ptr %130, i64 1
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  call void @zlatps_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %124, ptr noundef %125, ptr noundef %127, ptr noundef %129, ptr noundef %25, ptr noundef %131, ptr noundef %132)
  %133 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  store i8 89, ptr %133, align 1, !tbaa !13
  %134 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.doublecomplex, ptr %136, i64 1
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.doublecomplex, 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 %16, align 8, !tbaa !5
  call void @zlatps_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %134, ptr noundef %135, ptr noundef %137, ptr noundef %139, ptr noundef %26, ptr noundef %141, ptr noundef %142)
  br label %143

143:                                              ; preds = %123, %103
  %144 = load double, ptr %25, align 8, !tbaa !11
  %145 = load double, ptr %26, align 8, !tbaa !11
  %146 = fmul double %144, %145
  store double %146, ptr %21, align 8, !tbaa !11
  %147 = load double, ptr %21, align 8, !tbaa !11
  %148 = fcmp une double %147, 1.000000e+00
  br i1 %148, label %149, label %199

149:                                              ; preds = %143
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.doublecomplex, ptr %151, i64 1
  %153 = call i32 @izamax_(ptr noundef %150, ptr noundef %152, ptr noundef @c__1)
  store i32 %153, ptr %24, align 4, !tbaa !9
  %154 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %154, ptr %17, align 4, !tbaa !9
  %155 = load double, ptr %21, align 8, !tbaa !11
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = load i32, ptr %17, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds %struct.doublecomplex, ptr %156, i64 %158
  %160 = getelementptr inbounds %struct.doublecomplex, ptr %159, i32 0, i32 0
  %161 = load double, ptr %160, align 8, !tbaa !14
  store double %161, ptr %18, align 8, !tbaa !11
  %162 = load double, ptr %18, align 8, !tbaa !11
  %163 = fcmp oge double %162, 0.000000e+00
  br i1 %163, label %164, label %166

164:                                              ; preds = %149
  %165 = load double, ptr %18, align 8, !tbaa !11
  br label %169

166:                                              ; preds = %149
  %167 = load double, ptr %18, align 8, !tbaa !11
  %168 = fneg double %167
  br label %169

169:                                              ; preds = %166, %164
  %170 = phi double [ %165, %164 ], [ %168, %166 ]
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  %172 = load i32, ptr %24, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds %struct.doublecomplex, ptr %171, i64 %173
  %175 = call { double, double } @Cd(ptr noundef %174)
  %176 = extractvalue { double, double } %175, 0
  %177 = extractvalue { double, double } %175, 1
  store double %177, ptr %19, align 8, !tbaa !11
  %178 = load double, ptr %19, align 8, !tbaa !11
  %179 = fcmp oge double %178, 0.000000e+00
  br i1 %179, label %180, label %182

180:                                              ; preds = %169
  %181 = load double, ptr %19, align 8, !tbaa !11
  br label %185

182:                                              ; preds = %169
  %183 = load double, ptr %19, align 8, !tbaa !11
  %184 = fneg double %183
  br label %185

185:                                              ; preds = %182, %180
  %186 = phi double [ %181, %180 ], [ %184, %182 ]
  %187 = fadd double %170, %186
  %188 = load double, ptr %29, align 8, !tbaa !11
  %189 = fmul double %187, %188
  %190 = fcmp olt double %155, %189
  br i1 %190, label %194, label %191

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

194:                                              ; preds = %191, %185
  br label %211

195:                                              ; preds = %191
  %196 = load ptr, ptr %10, align 8, !tbaa !5
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.doublecomplex, ptr %197, i64 1
  call void @zdrscl_(ptr noundef %196, ptr noundef %21, ptr noundef %198, ptr noundef @c__1)
  br label %199

199:                                              ; preds = %195, %143
  br label %87

200:                                              ; preds = %87
  %201 = load double, ptr %27, align 8, !tbaa !11
  %202 = fcmp une double %201, 0.000000e+00
  br i1 %202, label %203, label %210

203:                                              ; preds = %200
  %204 = load double, ptr %27, align 8, !tbaa !11
  %205 = fdiv double 1.000000e+00, %204
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = load double, ptr %206, align 8, !tbaa !11
  %208 = fdiv double %205, %207
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  store double %208, ptr %209, align 8, !tbaa !11
  br label %210

210:                                              ; preds = %203, %200
  br label %211

211:                                              ; preds = %210, %194
  store i32 1, ptr %30, align 4
  br label %212

212:                                              ; preds = %211, %82, %76, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, 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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) #3

declare void @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 = { inlinehint 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 #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}
!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 i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @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 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) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #4
  %17 = getelementptr inbounds i8, ptr %5, i64 -16
  store i32 0, ptr %7, align 4, !tbaa !5
  %18 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.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) #4
  %.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) #4
  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) #4
  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 %struct.doublecomplex, ptr %5, i64 %40
  call void @zlacn2_(ptr noundef nonnull %1, ptr noundef %gep65, ptr noundef %5, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #4
  %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, %69
  br i1 %.not, label %43, label %42

42:                                               ; preds = %.lr.ph
  call void @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) #4
  store i8 89, ptr %16, align 1, !tbaa !11
  call void @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) #4
  br label %44

43:                                               ; preds = %.lr.ph
  call void @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) #4
  store i8 89, ptr %16, align 1, !tbaa !11
  call void @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) #4
  br label %44

44:                                               ; preds = %43, %42
  %45 = load double, ptr %13, align 8, !tbaa !9
  %46 = load double, ptr %14, align 8, !tbaa !9
  %47 = fmul double %45, %46
  store double %47, ptr %11, align 8, !tbaa !9
  %48 = fcmp une double %47, 1.000000e+00
  br i1 %48, label %49, label %69

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

68:                                               ; preds = %49
  call void @zdrscl_(ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #4
  br label %69

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

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

75:                                               ; preds = %._crit_edge
  %76 = fdiv double 1.000000e+00, %73
  %77 = load double, ptr %3, align 8, !tbaa !9
  %78 = fdiv double %76, %77
  store double %78, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %49, %75, %._crit_edge, %34, %33, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, 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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) local_unnamed_addr #3

declare void @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 = { inlinehint 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 #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}
!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,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass