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

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

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

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

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

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

55:                                               ; preds = %49
  %56 = load ptr, ptr %12, 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 %16, align 8, !tbaa !5
  store i32 -4, ptr %60, align 4, !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 %16, align 8, !tbaa !5
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %72

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

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

77:                                               ; preds = %72
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  store float 1.000000e+00, ptr %78, align 4, !tbaa !11
  store i32 1, ptr %30, align 4
  br label %215

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

84:                                               ; preds = %79
  br label %85

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

88:                                               ; preds = %202, %85
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds %struct.complex, ptr %90, i64 %94
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.complex, ptr %96, i64 1
  %98 = getelementptr inbounds [3 x i32], ptr %22, i64 0, i64 0
  call void @clacn2_(ptr noundef %89, ptr noundef %95, ptr noundef %97, ptr noundef %27, ptr noundef %20, ptr noundef %98)
  %99 = load i32, ptr %20, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %203

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

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

124:                                              ; preds = %101
  %125 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.complex, ptr %127, i64 1
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.complex, ptr %129, i64 1
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = getelementptr inbounds float, ptr %131, i64 1
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  call void @clatps_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %125, ptr noundef %126, ptr noundef %128, ptr noundef %130, ptr noundef %25, ptr noundef %132, ptr noundef %133)
  %134 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  store i8 89, ptr %134, align 1, !tbaa !13
  %135 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.complex, ptr %137, i64 1
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.complex, ptr %139, i64 1
  %141 = load ptr, ptr %15, align 8, !tbaa !5
  %142 = getelementptr inbounds float, ptr %141, i64 1
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  call void @clatps_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %135, ptr noundef %136, ptr noundef %138, ptr noundef %140, ptr noundef %26, ptr noundef %142, ptr noundef %143)
  br label %144

144:                                              ; preds = %124, %104
  %145 = load float, ptr %25, align 4, !tbaa !11
  %146 = load float, ptr %26, align 4, !tbaa !11
  %147 = fmul float %145, %146
  store float %147, ptr %21, align 4, !tbaa !11
  %148 = load float, ptr %21, align 4, !tbaa !11
  %149 = fcmp une float %148, 1.000000e+00
  br i1 %149, label %150, label %202

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

165:                                              ; preds = %150
  %166 = load float, ptr %18, align 4, !tbaa !11
  br label %170

167:                                              ; preds = %150
  %168 = load float, ptr %18, align 4, !tbaa !11
  %169 = fneg float %168
  br label %170

170:                                              ; preds = %167, %165
  %171 = phi float [ %166, %165 ], [ %169, %167 ]
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = load i32, ptr %24, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds %struct.complex, ptr %172, i64 %174
  %176 = call <2 x float> @Cf(ptr noundef %175)
  store <2 x float> %176, ptr %31, align 4
  %177 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 0
  %178 = load float, ptr %177, align 4
  %179 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 1
  %180 = load float, ptr %179, align 4
  store float %180, ptr %19, align 4, !tbaa !11
  %181 = load float, ptr %19, align 4, !tbaa !11
  %182 = fcmp oge float %181, 0.000000e+00
  br i1 %182, label %183, label %185

183:                                              ; preds = %170
  %184 = load float, ptr %19, align 4, !tbaa !11
  br label %188

185:                                              ; preds = %170
  %186 = load float, ptr %19, align 4, !tbaa !11
  %187 = fneg float %186
  br label %188

188:                                              ; preds = %185, %183
  %189 = phi float [ %184, %183 ], [ %187, %185 ]
  %190 = fadd float %171, %189
  %191 = load float, ptr %29, align 4, !tbaa !11
  %192 = fmul float %190, %191
  %193 = fcmp olt float %156, %192
  br i1 %193, label %197, label %194

194:                                              ; preds = %188
  %195 = load float, ptr %21, align 4, !tbaa !11
  %196 = fcmp oeq float %195, 0.000000e+00
  br i1 %196, label %197, label %198

197:                                              ; preds = %194, %188
  br label %214

198:                                              ; preds = %194
  %199 = load ptr, ptr %10, align 8, !tbaa !5
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.complex, ptr %200, i64 1
  call void @csrscl_(ptr noundef %199, ptr noundef %21, ptr noundef %201, ptr noundef @c__1)
  br label %202

202:                                              ; preds = %198, %144
  br label %88

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

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

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

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

215:                                              ; preds = %214, %83, %77, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 float @slamch_(ptr noundef) #2

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) #3

declare void @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"="64" "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"="64" "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 = !{!"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 i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca [3 x i32], align 4
  %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 4, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #4
  %17 = getelementptr inbounds i8, ptr %5, i64 -8
  store i32 0, ptr %7, align 4, !tbaa !5
  %18 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #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 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 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 float 0.000000e+00, ptr %4, align 4, !tbaa !9
  %32 = icmp eq i32 %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 float @slamch_(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.complex, ptr %5, i64 %40
  call void @clacn2_(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, %68
  br i1 %.not, label %43, label %42

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

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

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

49:                                               ; preds = %44
  %50 = call i32 @icamax_(ptr noundef nonnull %1, ptr noundef %5, ptr noundef nonnull @c__1) #4
  %51 = load float, ptr %11, align 4, !tbaa !9
  %52 = sext i32 %50 to i64
  %53 = getelementptr inbounds %struct.complex, ptr %17, i64 %52
  %54 = load float, ptr %53, align 4, !tbaa !12
  %55 = fcmp oge float %54, 0.000000e+00
  %56 = fneg float %54
  %57 = select i1 %55, float %54, float %56
  %58 = call <2 x float> @Cf(ptr noundef nonnull %53)
  %.sroa.0.4.vec.extract = extractelement <2 x float> %58, i64 1
  %59 = fcmp oge float %.sroa.0.4.vec.extract, 0.000000e+00
  %60 = fneg float %.sroa.0.4.vec.extract
  %61 = select i1 %59, float %.sroa.0.4.vec.extract, float %60
  %62 = fadd float %57, %61
  %63 = fmul float %38, %62
  %64 = fcmp olt float %51, %63
  %65 = load float, ptr %11, align 4
  %66 = fcmp oeq float %65, 0.000000e+00
  %or.cond = select i1 %64, i1 true, i1 %66
  br i1 %or.cond, label %.loopexit, label %67

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

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

._crit_edge:                                      ; preds = %68, %37
  %72 = load float, ptr %15, align 4, !tbaa !9
  %73 = fcmp une float %72, 0.000000e+00
  br i1 %73, label %74, label %.loopexit

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) local_unnamed_addr #3

declare void @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"="64" "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"="64" "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 = !{!"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,SROAPass,SimplifyCFGPass,TailCallElimPass