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

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

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

42:                                               ; preds = %6
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  store float 0.000000e+00, ptr %43, align 4, !tbaa !11
  store i32 1, ptr %27, align 4
  br label %203

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

203:                                              ; preds = %44, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  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 @clarfg_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCf(ptr noundef) #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

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

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #6

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

; Function Attrs: nounwind uwtable
define dso_local void @clapll_(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 float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %struct.complex, align 4
  %12 = alloca %struct.complex, align 8
  %13 = alloca %struct.complex, align 8
  %14 = alloca float, align 4
  %15 = alloca %struct.complex, align 8
  %16 = alloca %struct.complex, align 8
  %17 = alloca %struct.complex, align 8
  %18 = alloca %struct.complex, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %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 float 0.000000e+00, ptr %5, align 4, !tbaa !9
  br label %69

22:                                               ; preds = %6
  %23 = getelementptr inbounds i8, ptr %1, i64 -8
  %24 = getelementptr inbounds i8, ptr %3, i64 -8
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr %struct.complex, ptr %23, i64 %26
  %28 = getelementptr i8, ptr %27, i64 8
  call void @clarfg_(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %28, ptr noundef nonnull %2, ptr noundef nonnull %18) #7
  %29 = load <2 x float>, ptr %1, align 4, !tbaa !9
  store <2 x float> %29, ptr %15, align 8, !tbaa !9
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %1, align 4, !tbaa !9
  %30 = call <2 x float> @Cf(ptr noundef nonnull %18)
  %.sroa.09.0.vec.extract = extractelement <2 x float> %30, i64 0
  %.sroa.09.4.vec.extract = extractelement <2 x float> %30, i64 1
  %31 = fneg float %.sroa.09.4.vec.extract
  %32 = call ptr @_pCf(ptr noundef nonnull %11)
  %33 = getelementptr inbounds i8, ptr %32, i64 4
  store float %.sroa.09.0.vec.extract, ptr %32, align 4
  store float %31, ptr %33, align 4
  %34 = load float, ptr %11, align 4, !tbaa !11
  %35 = fneg float %34
  %36 = getelementptr inbounds i8, ptr %11, i64 4
  %37 = load float, ptr %36, align 4, !tbaa !13
  %38 = fneg float %37
  call void @cdotc_(ptr noundef nonnull %12, ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %4)
  %39 = load <2 x float>, ptr %12, align 8, !tbaa !9
  %40 = insertelement <2 x float> poison, float %38, i64 0
  %41 = insertelement <2 x float> %40, float %37, i64 1
  %42 = fmul <2 x float> %39, %41
  %43 = shufflevector <2 x float> %42, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %44 = insertelement <2 x float> poison, float %35, i64 0
  %45 = shufflevector <2 x float> %44, <2 x float> poison, <2 x i32> zeroinitializer
  %46 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %45, <2 x float> %39, <2 x float> %43)
  store <2 x float> %46, ptr %13, align 8, !tbaa !9
  call void @caxpy_(ptr noundef nonnull %0, ptr noundef nonnull %13, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %4) #7
  %47 = load i32, ptr %0, align 4, !tbaa !5
  %48 = add nsw i32 %47, -1
  store i32 %48, ptr %7, align 4, !tbaa !5
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr %struct.complex, ptr %24, i64 %50
  %52 = getelementptr i8, ptr %51, i64 8
  %53 = shl i32 %49, 1
  %54 = or disjoint i32 %53, 1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds %struct.complex, ptr %24, i64 %55
  call void @clarfg_(ptr noundef nonnull %7, ptr noundef %52, ptr noundef nonnull %56, ptr noundef nonnull %4, ptr noundef nonnull %18) #7
  %57 = load <2 x float>, ptr %3, align 4, !tbaa !9
  store <2 x float> %57, ptr %16, align 8, !tbaa !9
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %7, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %struct.complex, ptr %24, i64 %60
  %62 = load <2 x float>, ptr %61, align 4, !tbaa !9
  store <2 x float> %62, ptr %17, align 8, !tbaa !9
  %63 = call <2 x float> @Cf(ptr noundef nonnull %15)
  %64 = call float @cabsf(<2 x float> noundef %63) #7
  store float %64, ptr %8, align 4, !tbaa !9
  %65 = call <2 x float> @Cf(ptr noundef nonnull %16)
  %66 = call float @cabsf(<2 x float> noundef %65) #7
  store float %66, ptr %9, align 4, !tbaa !9
  %67 = call <2 x float> @Cf(ptr noundef nonnull %17)
  %68 = call float @cabsf(<2 x float> noundef %67) #7
  store float %68, ptr %10, align 4, !tbaa !9
  call void @slas2_(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %5, ptr noundef nonnull %14) #7
  br label %69

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

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

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

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

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #5

declare void @slas2_(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 float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #6

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


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