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

; 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.complex = type { float, float }

@.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 @cppcon_(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 float, align 4
  %20 = alloca float, align 4
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca float, align 4
  %24 = alloca [3 x i64], align 16
  %25 = alloca i64, align 8
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca [1 x i8], align 1
  %30 = alloca float, align 4
  %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 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, 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 4, 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 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  %32 = load ptr, ptr %16, align 8, !tbaa !5
  %33 = getelementptr inbounds float, 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.complex, 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.complex, 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 float, ptr %56, align 4, !tbaa !11
  %58 = fcmp olt float %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 %220

72:                                               ; preds = %63
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  store float 0.000000e+00, ptr %73, align 4, !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 float 1.000000e+00, ptr %78, align 4, !tbaa !11
  store i32 0, ptr %9, align 4
  store i32 1, ptr %31, align 4
  br label %220

79:                                               ; preds = %72
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = load float, ptr %80, align 4, !tbaa !11
  %82 = fcmp oeq float %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 %220

84:                                               ; preds = %79
  br label %85

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

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

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

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

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

149:                                              ; preds = %127, %105
  %150 = load float, ptr %26, align 4, !tbaa !11
  %151 = load float, ptr %27, align 4, !tbaa !11
  %152 = fmul float %150, %151
  store float %152, ptr %23, align 4, !tbaa !11
  %153 = load float, ptr %23, align 4, !tbaa !11
  %154 = fcmp une float %153, 1.000000e+00
  br i1 %154, label %155, label %207

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

170:                                              ; preds = %155
  %171 = load float, ptr %19, align 4, !tbaa !11
  br label %175

172:                                              ; preds = %155
  %173 = load float, ptr %19, align 4, !tbaa !11
  %174 = fneg float %173
  br label %175

175:                                              ; preds = %172, %170
  %176 = phi float [ %171, %170 ], [ %174, %172 ]
  %177 = fpext float %176 to double
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = load i64, ptr %21, align 8, !tbaa !9
  %180 = getelementptr inbounds %struct.complex, ptr %178, i64 %179
  %181 = call double @r_imag(ptr noundef %180)
  %182 = fptrunc double %181 to float
  store float %182, ptr %20, align 4, !tbaa !11
  %183 = load float, ptr %20, align 4, !tbaa !11
  %184 = fcmp oge float %183, 0.000000e+00
  br i1 %184, label %185, label %187

185:                                              ; preds = %175
  %186 = load float, ptr %20, align 4, !tbaa !11
  br label %190

187:                                              ; preds = %175
  %188 = load float, ptr %20, align 4, !tbaa !11
  %189 = fneg float %188
  br label %190

190:                                              ; preds = %187, %185
  %191 = phi float [ %186, %185 ], [ %189, %187 ]
  %192 = fpext float %191 to double
  %193 = fadd double %177, %192
  %194 = load float, ptr %30, align 4, !tbaa !11
  %195 = fpext float %194 to double
  %196 = fmul double %193, %195
  %197 = fcmp olt double %162, %196
  br i1 %197, label %201, label %198

198:                                              ; preds = %190
  %199 = load float, ptr %23, align 4, !tbaa !11
  %200 = fcmp oeq float %199, 0.000000e+00
  br i1 %200, label %201, label %202

201:                                              ; preds = %198, %190
  br label %219

202:                                              ; preds = %198
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.complex, ptr %204, i64 1
  %206 = call i32 @csrscl_(ptr noundef %203, ptr noundef %23, ptr noundef %205, ptr noundef @c__1)
  br label %207

207:                                              ; preds = %202, %149
  br label %89

208:                                              ; preds = %89
  %209 = load float, ptr %28, align 4, !tbaa !11
  %210 = fcmp une float %209, 0.000000e+00
  br i1 %210, label %211, label %218

211:                                              ; preds = %208
  %212 = load float, ptr %28, align 4, !tbaa !11
  %213 = fdiv float 1.000000e+00, %212
  %214 = load ptr, ptr %13, align 8, !tbaa !5
  %215 = load float, ptr %214, align 4, !tbaa !11
  %216 = fdiv float %213, %215
  %217 = load ptr, ptr %14, align 8, !tbaa !5
  store float %216, ptr %217, align 4, !tbaa !11
  br label %218

218:                                              ; preds = %211, %208
  br label %219

219:                                              ; preds = %218, %201
  store i32 0, ptr %9, align 4
  store i32 1, ptr %31, align 4
  br label %220

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

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

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

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

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

declare double @r_imag(ptr noundef) #2

declare i32 @csrscl_(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 = !{!"float", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !12, i64 0}
!15 = !{!"", !12, i64 0, !12, i64 4}


; 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.complex = type { float, float }

@.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 @cppcon_(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 float, align 4
  %12 = alloca [3 x i64], align 16
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %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 4, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 4, 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 float, ptr %3, align 4, !tbaa !9
  %26 = fcmp olt float %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 float 0.000000e+00, ptr %4, align 4, !tbaa !9
  %32 = icmp eq i64 %22, 0
  br i1 %32, label %33, label %34

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

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

37:                                               ; preds = %34
  %38 = tail call double @slamch_(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.complex, ptr %5, i64 %39
  %41 = call i32 @clacn2_(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
  %43 = fptrunc double %38 to float
  %44 = fpext float %43 to double
  br label %45

45:                                               ; preds = %.lr.ph, %79
  br i1 %.not, label %49, label %46

46:                                               ; preds = %45
  %47 = call i32 @clatps_(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
  %48 = call i32 @clatps_(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 %52

49:                                               ; preds = %45
  %50 = call i32 @clatps_(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
  %51 = call i32 @clatps_(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 %52

52:                                               ; preds = %49, %46
  %53 = load float, ptr %13, align 4, !tbaa !9
  %54 = load float, ptr %14, align 4, !tbaa !9
  %55 = fmul float %53, %54
  store float %55, ptr %11, align 4, !tbaa !9
  %56 = fcmp une float %55, 1.000000e+00
  br i1 %56, label %57, label %79

57:                                               ; preds = %52
  %58 = call i64 @f2c_icamax(ptr noundef nonnull %1, ptr noundef %5, ptr noundef nonnull @c__1) #3
  %59 = load float, ptr %11, align 4, !tbaa !9
  %60 = fpext float %59 to double
  %61 = getelementptr inbounds %struct.complex, ptr %17, i64 %58
  %62 = load float, ptr %61, align 4, !tbaa !12
  %63 = call double @r_imag(ptr noundef nonnull %61) #3
  %64 = fptrunc double %63 to float
  %65 = insertelement <2 x float> poison, float %62, i64 0
  %66 = insertelement <2 x float> %65, float %64, i64 1
  %67 = fcmp oge <2 x float> %66, zeroinitializer
  %68 = fneg <2 x float> %66
  %69 = select <2 x i1> %67, <2 x float> %66, <2 x float> %68
  %70 = fpext <2 x float> %69 to <2 x double>
  %shift = shufflevector <2 x double> %70, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %71 = fadd <2 x double> %shift, %70
  %72 = extractelement <2 x double> %71, i64 0
  %73 = fmul double %72, %44
  %74 = fcmp ogt double %73, %60
  %75 = load float, ptr %11, align 4
  %76 = fcmp oeq float %75, 0.000000e+00
  %or.cond = select i1 %74, i1 true, i1 %76
  br i1 %or.cond, label %.loopexit, label %77

77:                                               ; preds = %57
  %78 = call i32 @csrscl_(ptr noundef nonnull %1, ptr noundef nonnull %11, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #3
  br label %79

79:                                               ; preds = %77, %52
  %80 = load i64, ptr %1, align 8, !tbaa !5
  %81 = getelementptr %struct.complex, ptr %5, i64 %80
  %82 = call i32 @clacn2_(ptr noundef nonnull %1, ptr noundef %81, ptr noundef %5, ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %12) #3
  %83 = load i64, ptr %10, align 8, !tbaa !5
  %.not64 = icmp eq i64 %83, 0
  br i1 %.not64, label %._crit_edge, label %45

._crit_edge:                                      ; preds = %79, %37
  %84 = load float, ptr %15, align 4, !tbaa !9
  %85 = fcmp une float %84, 0.000000e+00
  br i1 %85, label %86, label %.loopexit

86:                                               ; preds = %._crit_edge
  %87 = fdiv float 1.000000e+00, %84
  %88 = load float, ptr %3, align 4, !tbaa !9
  %89 = fdiv float %87, %88
  store float %89, ptr %4, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %57, %86, %._crit_edge, %34, %33, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 @slamch_(ptr noundef) local_unnamed_addr #2

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

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

declare double @r_imag(ptr noundef) local_unnamed_addr #2

declare i32 @csrscl_(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 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"", !10, i64 0, !10, i64 4}


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