; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (zlapll)

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

; Function Attrs: nounwind uwtable
define dso_local void @zlapll_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca %struct.doublecomplex, align 8
  %18 = alloca %struct.doublecomplex, align 8
  %19 = alloca %struct.doublecomplex, align 8
  %20 = alloca %struct.doublecomplex, align 8
  %21 = alloca %struct.doublecomplex, align 8
  %22 = alloca double, align 8
  %23 = alloca %struct.doublecomplex, align 8
  %24 = alloca %struct.doublecomplex, align 8
  %25 = alloca %struct.doublecomplex, align 8
  %26 = alloca %struct.doublecomplex, align 8
  %27 = alloca i32, align 4
  %28 = alloca { double, double }, align 8
  %29 = alloca { double, double }, align 8
  %30 = alloca { double, double }, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 -1
  store ptr %32, ptr %10, align 8, !tbaa !5
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.doublecomplex, ptr %33, i32 -1
  store ptr %34, ptr %8, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = icmp sle i32 %36, 1
  br i1 %37, label %38, label %40

38:                                               ; preds = %6
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  store double 0.000000e+00, ptr %39, align 8, !tbaa !11
  store i32 1, ptr %27, align 4
  br label %200

40:                                               ; preds = %6
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.doublecomplex, ptr %42, i64 1
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = add nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds %struct.doublecomplex, ptr %44, i64 %48
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  call void @zlarfg_(ptr noundef %41, ptr noundef %43, ptr noundef %49, ptr noundef %50, ptr noundef %26)
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.doublecomplex, ptr %51, i64 1
  %53 = getelementptr inbounds %struct.doublecomplex, ptr %52, i32 0, i32 0
  %54 = load double, ptr %53, align 8, !tbaa !13
  %55 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %54, ptr %55, align 8, !tbaa !13
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.doublecomplex, ptr %56, i64 1
  %58 = getelementptr inbounds %struct.doublecomplex, ptr %57, i32 0, i32 1
  %59 = load double, ptr %58, align 8, !tbaa !15
  %60 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %59, ptr %60, align 8, !tbaa !15
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.doublecomplex, ptr %61, i64 1
  %63 = getelementptr inbounds %struct.doublecomplex, ptr %62, i32 0, i32 0
  store double 1.000000e+00, ptr %63, align 8, !tbaa !13
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %64, i64 1
  %66 = getelementptr inbounds %struct.doublecomplex, ptr %65, i32 0, i32 1
  store double 0.000000e+00, ptr %66, align 8, !tbaa !15
  %67 = call { double, double } @Cd(ptr noundef %26)
  %68 = extractvalue { double, double } %67, 0
  %69 = extractvalue { double, double } %67, 1
  %70 = fneg double %69
  %71 = call ptr @_pCd(ptr noundef %19)
  %72 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 1
  store double %68, ptr %72, align 8
  store double %70, ptr %73, align 8
  %74 = getelementptr inbounds %struct.doublecomplex, ptr %19, i32 0, i32 0
  %75 = load double, ptr %74, align 8, !tbaa !13
  %76 = fneg double %75
  %77 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  store double %76, ptr %77, align 8, !tbaa !13
  %78 = getelementptr inbounds %struct.doublecomplex, ptr %19, i32 0, i32 1
  %79 = load double, ptr %78, align 8, !tbaa !15
  %80 = fneg double %79
  %81 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  store double %80, ptr %81, align 8, !tbaa !15
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.doublecomplex, ptr %83, i64 1
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.doublecomplex, ptr %86, i64 1
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  call void @zdotc_(ptr noundef %20, ptr noundef %82, ptr noundef %84, ptr noundef %85, ptr noundef %87, ptr noundef %88)
  %89 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  %90 = load double, ptr %89, align 8, !tbaa !13
  %91 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 0
  %92 = load double, ptr %91, align 8, !tbaa !13
  %93 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  %94 = load double, ptr %93, align 8, !tbaa !15
  %95 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 1
  %96 = load double, ptr %95, align 8, !tbaa !15
  %97 = fmul double %94, %96
  %98 = fneg double %97
  %99 = call double @llvm.fmuladd.f64(double %90, double %92, double %98)
  %100 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double %99, ptr %100, align 8, !tbaa !13
  %101 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 0
  %102 = load double, ptr %101, align 8, !tbaa !13
  %103 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 1
  %104 = load double, ptr %103, align 8, !tbaa !15
  %105 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 0, i32 1
  %106 = load double, ptr %105, align 8, !tbaa !15
  %107 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 0
  %108 = load double, ptr %107, align 8, !tbaa !13
  %109 = fmul double %106, %108
  %110 = call double @llvm.fmuladd.f64(double %102, double %104, double %109)
  %111 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double %110, ptr %111, align 8, !tbaa !15
  %112 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %113 = load double, ptr %112, align 8, !tbaa !13
  %114 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  store double %113, ptr %114, align 8, !tbaa !13
  %115 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  %116 = load double, ptr %115, align 8, !tbaa !15
  %117 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  store double %116, ptr %117, align 8, !tbaa !15
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.doublecomplex, ptr %119, i64 1
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.doublecomplex, ptr %122, i64 1
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  call void @zaxpy_(ptr noundef %118, ptr noundef %21, ptr noundef %120, ptr noundef %121, ptr noundef %123, ptr noundef %124)
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = sub nsw i32 %126, 1
  store i32 %127, ptr %13, align 4, !tbaa !9
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = add nsw i32 %130, 1
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds %struct.doublecomplex, ptr %128, i64 %132
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = shl i32 %136, 1
  %138 = add nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds %struct.doublecomplex, ptr %134, i64 %139
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  call void @zlarfg_(ptr noundef %13, ptr noundef %133, ptr noundef %140, ptr noundef %141, ptr noundef %26)
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.doublecomplex, ptr %142, i64 1
  %144 = getelementptr inbounds %struct.doublecomplex, ptr %143, i32 0, i32 0
  %145 = load double, ptr %144, align 8, !tbaa !13
  %146 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %145, ptr %146, align 8, !tbaa !13
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.doublecomplex, ptr %147, i64 1
  %149 = getelementptr inbounds %struct.doublecomplex, ptr %148, i32 0, i32 1
  %150 = load double, ptr %149, align 8, !tbaa !15
  %151 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %150, ptr %151, align 8, !tbaa !15
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = load i32, ptr %152, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %13, align 4, !tbaa !9
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = load i32, ptr %13, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds %struct.doublecomplex, ptr %155, i64 %157
  %159 = getelementptr inbounds %struct.doublecomplex, ptr %158, i32 0, i32 0
  %160 = load double, ptr %159, align 8, !tbaa !13
  %161 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %160, ptr %161, align 8, !tbaa !13
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %struct.doublecomplex, ptr %162, i64 %164
  %166 = getelementptr inbounds %struct.doublecomplex, ptr %165, i32 0, i32 1
  %167 = load double, ptr %166, align 8, !tbaa !15
  %168 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double %167, ptr %168, align 8, !tbaa !15
  %169 = call { double, double } @Cd(ptr noundef %23)
  %170 = extractvalue { double, double } %169, 0
  %171 = extractvalue { double, double } %169, 1
  %172 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %173 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  store double %170, ptr %172, align 8
  store double %171, ptr %173, align 8
  %174 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %175 = load double, ptr %174, align 8
  %176 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %177 = load double, ptr %176, align 8
  %178 = call double @cabs(double noundef %175, double noundef %177) #6
  store double %178, ptr %14, align 8, !tbaa !11
  %179 = call { double, double } @Cd(ptr noundef %24)
  %180 = extractvalue { double, double } %179, 0
  %181 = extractvalue { double, double } %179, 1
  %182 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %183 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  store double %180, ptr %182, align 8
  store double %181, ptr %183, align 8
  %184 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %185 = load double, ptr %184, align 8
  %186 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %187 = load double, ptr %186, align 8
  %188 = call double @cabs(double noundef %185, double noundef %187) #6
  store double %188, ptr %15, align 8, !tbaa !11
  %189 = call { double, double } @Cd(ptr noundef %25)
  %190 = extractvalue { double, double } %189, 0
  %191 = extractvalue { double, double } %189, 1
  %192 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %193 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  store double %190, ptr %192, align 8
  store double %191, ptr %193, align 8
  %194 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %195 = load double, ptr %194, align 8
  %196 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %197 = load double, ptr %196, align 8
  %198 = call double @cabs(double noundef %195, double noundef %197) #6
  store double %198, ptr %16, align 8, !tbaa !11
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  call void @dlas2_(ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %199, ptr noundef %22)
  store i32 1, ptr %27, align 4
  br label %200

200:                                              ; preds = %40, %38
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCd(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @zdotc_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

; Function Attrs: nounwind
declare double @cabs(double noundef, double noundef) #5

declare void @dlas2_(ptr noundef, 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind "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 #6 = { 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 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 8}
!15 = !{!14, !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 }

; Function Attrs: nounwind uwtable
define dso_local void @zlapll_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca %struct.doublecomplex, align 8
  %12 = alloca %struct.doublecomplex, align 16
  %13 = alloca %struct.doublecomplex, align 16
  %14 = alloca double, align 8
  %15 = alloca %struct.doublecomplex, align 16
  %16 = alloca %struct.doublecomplex, align 16
  %17 = alloca %struct.doublecomplex, align 16
  %18 = alloca %struct.doublecomplex, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  %19 = load i32, ptr %0, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 2
  br i1 %20, label %21, label %22

21:                                               ; preds = %6
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  br label %77

22:                                               ; preds = %6
  %23 = getelementptr inbounds i8, ptr %1, i64 -16
  %24 = getelementptr inbounds i8, ptr %3, i64 -16
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr %struct.doublecomplex, ptr %23, i64 %26
  %28 = getelementptr i8, ptr %27, i64 16
  call void @zlarfg_(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %28, ptr noundef nonnull %2, ptr noundef nonnull %18) #6
  %29 = load <2 x double>, ptr %1, align 8, !tbaa !9
  store <2 x double> %29, ptr %15, align 16, !tbaa !9
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %1, align 8, !tbaa !9
  %30 = call { double, double } @Cd(ptr noundef nonnull %18)
  %31 = extractvalue { double, double } %30, 0
  %32 = extractvalue { double, double } %30, 1
  %33 = fneg double %32
  %34 = call ptr @_pCd(ptr noundef nonnull %11)
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  store double %31, ptr %34, align 8
  store double %33, ptr %35, align 8
  %36 = load double, ptr %11, align 8, !tbaa !11
  %37 = fneg double %36
  %38 = getelementptr inbounds i8, ptr %11, i64 8
  %39 = load double, ptr %38, align 8, !tbaa !13
  %40 = fneg double %39
  call void @zdotc_(ptr noundef nonnull %12, ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %4)
  %41 = load <2 x double>, ptr %12, align 16, !tbaa !9
  %42 = insertelement <2 x double> poison, double %40, i64 0
  %43 = insertelement <2 x double> %42, double %39, i64 1
  %44 = fmul <2 x double> %41, %43
  %45 = shufflevector <2 x double> %44, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %46 = insertelement <2 x double> poison, double %37, i64 0
  %47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> zeroinitializer
  %48 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %47, <2 x double> %41, <2 x double> %45)
  store <2 x double> %48, ptr %13, align 16, !tbaa !9
  call void @zaxpy_(ptr noundef nonnull %0, ptr noundef nonnull %13, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %4) #6
  %49 = load i32, ptr %0, align 4, !tbaa !5
  %50 = add nsw i32 %49, -1
  store i32 %50, ptr %7, align 4, !tbaa !5
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr %struct.doublecomplex, ptr %24, i64 %52
  %54 = getelementptr i8, ptr %53, i64 16
  %55 = shl i32 %51, 1
  %56 = or disjoint i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds %struct.doublecomplex, ptr %24, i64 %57
  call void @zlarfg_(ptr noundef nonnull %7, ptr noundef %54, ptr noundef nonnull %58, ptr noundef nonnull %4, ptr noundef nonnull %18) #6
  %59 = load <2 x double>, ptr %3, align 8, !tbaa !9
  store <2 x double> %59, ptr %16, align 16, !tbaa !9
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %7, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %struct.doublecomplex, ptr %24, i64 %62
  %64 = load <2 x double>, ptr %63, align 8, !tbaa !9
  store <2 x double> %64, ptr %17, align 16, !tbaa !9
  %65 = call { double, double } @Cd(ptr noundef nonnull %15)
  %66 = extractvalue { double, double } %65, 0
  %67 = extractvalue { double, double } %65, 1
  %68 = call double @cabs(double noundef %66, double noundef %67) #6
  store double %68, ptr %8, align 8, !tbaa !9
  %69 = call { double, double } @Cd(ptr noundef nonnull %16)
  %70 = extractvalue { double, double } %69, 0
  %71 = extractvalue { double, double } %69, 1
  %72 = call double @cabs(double noundef %70, double noundef %71) #6
  store double %72, ptr %9, align 8, !tbaa !9
  %73 = call { double, double } @Cd(ptr noundef nonnull %17)
  %74 = extractvalue { double, double } %73, 0
  %75 = extractvalue { double, double } %73, 1
  %76 = call double @cabs(double noundef %74, double noundef %75) #6
  store double %76, ptr %10, align 8, !tbaa !9
  call void @dlas2_(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %5, ptr noundef nonnull %14) #6
  br label %77

77:                                               ; preds = %22, %21
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  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 void @zlarfg_(ptr noundef, ptr noundef, 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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCd(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @zdotc_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare double @cabs(double noundef, double noundef) local_unnamed_addr #4

declare void @dlas2_(ptr noundef, 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

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 = { nofree nounwind "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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass