; LLVM IR from o0o0o0o0o0o0o/image-processing-from-scratch :: ImageMatting/Eigen/blas (complex_double)

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

%"class.Eigen::Map.36" = type { %"class.Eigen::MapBase.base.46", %"class.Eigen::InnerStride" }
%"class.Eigen::MapBase.base.46" = type { %"class.Eigen::MapBase.base.45" }
%"class.Eigen::MapBase.base.45" = type <{ ptr, %"class.Eigen::internal::variable_if_dynamic", i8 }>
%"class.Eigen::internal::variable_if_dynamic" = type { i64 }
%"class.Eigen::InnerStride" = type { %"class.Eigen::Stride" }
%"class.Eigen::Stride" = type { [8 x i8], %"class.Eigen::internal::variable_if_dynamic" }
%"class.Eigen::Reverse" = type { %"class.Eigen::Map.36" }
%"class.Eigen::JacobiRotation" = type { %"class.std::complex", %"class.std::complex" }
%"class.std::complex" = type { { double, double } }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Map.36") align 8, ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @zdrot_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #1 {
  %8 = alloca i32, align 4
  %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 ptr, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca %"class.Eigen::Map.36", align 8
  %21 = alloca %"class.Eigen::Map.36", align 8
  %22 = alloca %"class.Eigen::Reverse", align 8
  %23 = alloca %"class.Eigen::Reverse", align 8
  %24 = alloca %"class.Eigen::JacobiRotation", align 8
  %25 = alloca %"class.std::complex", align 8
  %26 = alloca %"class.std::complex", align 8
  %27 = alloca %"class.Eigen::JacobiRotation", align 8
  %28 = alloca %"class.std::complex", align 8
  %29 = alloca %"class.std::complex", align 8
  %30 = alloca %"class.Eigen::JacobiRotation", align 8
  %31 = alloca %"class.std::complex", align 8
  %32 = alloca %"class.std::complex", align 8
  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
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = icmp sle i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %7
  store i32 0, ptr %8, align 4
  br label %82

37:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %38, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %39, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = load double, ptr %40, align 8, !tbaa !11
  store double %41, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = load double, ptr %42, align 8, !tbaa !11
  store double %43, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #5
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = call i32 @llvm.abs.i32(i32 %48, i1 true)
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind writable sret(%"class.Eigen::Map.36") align 8 %20, ptr noundef %44, i32 noundef %46, i32 noundef %49)
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #5
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = call i32 @llvm.abs.i32(i32 %54, i1 true)
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind writable sret(%"class.Eigen::Map.36") align 8 %21, ptr noundef %50, i32 noundef %52, i32 noundef %55)
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #5
  call void @_ZN5Eigen7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef nonnull align 8 dereferenceable(40) %20)
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #5
  call void @_ZN5Eigen7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(40) %23, ptr noundef nonnull align 8 dereferenceable(40) %21)
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = icmp slt i32 %57, 0
  br i1 %58, label %59, label %66

59:                                               ; preds = %37
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %64 = load double, ptr %18, align 8, !tbaa !11
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %25, double noundef %64, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %65 = load double, ptr %19, align 8, !tbaa !11
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %65, double noundef 0.000000e+00)
  call void @_ZN5Eigen14JacobiRotationISt7complexIdEEC2ERKS2_S5_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
  call void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEESA_S6_EEvRNS_9DenseBaseIT_EERNSC_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1) %22, ptr noundef nonnull align 1 dereferenceable(1) %21, ptr noundef nonnull align 8 dereferenceable(32) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  br label %81

66:                                               ; preds = %59, %37
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %70, label %77

70:                                               ; preds = %66
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = icmp slt i32 %72, 0
  br i1 %73, label %74, label %77

74:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %75 = load double, ptr %18, align 8, !tbaa !11
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef %75, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #5
  %76 = load double, ptr %19, align 8, !tbaa !11
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %29, double noundef %76, double noundef 0.000000e+00)
  call void @_ZN5Eigen14JacobiRotationISt7complexIdEEC2ERKS2_S5_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %29)
  call void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEENS_7ReverseIS9_Li2EEES5_EEvRNS_9DenseBaseIT_EERNSC_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1) %20, ptr noundef nonnull align 1 dereferenceable(1) %23, ptr noundef nonnull align 8 dereferenceable(32) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #5
  br label %80

77:                                               ; preds = %70, %66
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  %78 = load double, ptr %18, align 8, !tbaa !11
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %31, double noundef %78, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #5
  %79 = load double, ptr %19, align 8, !tbaa !11
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %32, double noundef %79, double noundef 0.000000e+00)
  call void @_ZN5Eigen14JacobiRotationISt7complexIdEEC2ERKS2_S5_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %32)
  call void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEES9_S5_EEvRNS_9DenseBaseIT_EERNSA_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1) %20, ptr noundef nonnull align 1 dereferenceable(1) %21, ptr noundef nonnull align 8 dereferenceable(32) %30)
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  br label %80

80:                                               ; preds = %77, %74
  br label %81

81:                                               ; preds = %80, %63
  store i32 0, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %82

82:                                               ; preds = %81, %36
  %83 = load i32, ptr %8, align 4
  ret i32 %83
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEESA_S6_EEvRNS_9DenseBaseIT_EERNSC_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen14JacobiRotationISt7complexIdEEC2ERKS2_S5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEENS_7ReverseIS9_Li2EEES5_EEvRNS_9DenseBaseIT_EERNSC_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEES9_S5_EEvRNS_9DenseBaseIT_EERNSA_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(32)) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress 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 = { inlinehint mustprogress 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 }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


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

%"class.Eigen::Map.36" = type { %"class.Eigen::MapBase.base.46", %"class.Eigen::InnerStride" }
%"class.Eigen::MapBase.base.46" = type { %"class.Eigen::MapBase.base.45" }
%"class.Eigen::MapBase.base.45" = type <{ ptr, %"class.Eigen::internal::variable_if_dynamic", i8 }>
%"class.Eigen::internal::variable_if_dynamic" = type { i64 }
%"class.Eigen::InnerStride" = type { %"class.Eigen::Stride" }
%"class.Eigen::Stride" = type { [8 x i8], %"class.Eigen::internal::variable_if_dynamic" }
%"class.Eigen::Reverse" = type { %"class.Eigen::Map.36" }
%"class.Eigen::JacobiRotation" = type { %"class.std::complex", %"class.std::complex" }
%"class.std::complex" = type { { double, double } }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Map.36") align 8, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @zdrot_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6) local_unnamed_addr #1 {
  %8 = alloca %"class.Eigen::Map.36", align 8
  %9 = alloca %"class.Eigen::Map.36", align 8
  %10 = alloca %"class.Eigen::Reverse", align 8
  %11 = alloca %"class.Eigen::Reverse", align 8
  %12 = alloca %"class.Eigen::JacobiRotation", align 8
  %13 = alloca %"class.std::complex", align 8
  %14 = alloca %"class.std::complex", align 8
  %15 = alloca %"class.Eigen::JacobiRotation", align 8
  %16 = alloca %"class.std::complex", align 8
  %17 = alloca %"class.std::complex", align 8
  %18 = alloca %"class.Eigen::JacobiRotation", align 8
  %19 = alloca %"class.std::complex", align 8
  %20 = alloca %"class.std::complex", align 8
  %21 = load i32, ptr %0, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 1
  br i1 %22, label %43, label %23

23:                                               ; preds = %7
  %24 = load double, ptr %5, align 8, !tbaa !9
  %25 = load double, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = tail call i32 @llvm.abs.i32(i32 %26, i1 true)
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.36") align 8 %8, ptr noundef %1, i32 noundef %21, i32 noundef %27)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #5
  %28 = load i32, ptr %0, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = call i32 @llvm.abs.i32(i32 %29, i1 true)
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.36") align 8 %9, ptr noundef %3, i32 noundef %28, i32 noundef %30)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #5
  call void @_ZN5Eigen7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(40) %8)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  call void @_ZN5Eigen7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(40) %9)
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = icmp slt i32 %31, 0
  br i1 %32, label %33, label %37

33:                                               ; preds = %23
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %36, label %.thread

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %24, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef %25, double noundef 0.000000e+00)
  call void @_ZN5Eigen14JacobiRotationISt7complexIdEEC2ERKS2_S5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEESA_S6_EEvRNS_9DenseBaseIT_EERNSC_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 8 dereferenceable(32) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  br label %42

37:                                               ; preds = %23
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %.thread, label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %41, label %.thread

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef %24, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef %25, double noundef 0.000000e+00)
  call void @_ZN5Eigen14JacobiRotationISt7complexIdEEC2ERKS2_S5_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %17)
  call void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEENS_7ReverseIS9_Li2EEES5_EEvRNS_9DenseBaseIT_EERNSC_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 8 dereferenceable(32) %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  br label %42

.thread:                                          ; preds = %33, %38, %37
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %24, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #5
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef %25, double noundef 0.000000e+00)
  call void @_ZN5Eigen14JacobiRotationISt7complexIdEEC2ERKS2_S5_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20)
  call void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEES9_S5_EEvRNS_9DenseBaseIT_EERNSA_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 8 dereferenceable(32) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #5
  br label %42

42:                                               ; preds = %41, %.thread, %36
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  br label %43

43:                                               ; preds = %7, %42
  ret i32 0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEESA_S6_EEvRNS_9DenseBaseIT_EERNSC_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen14JacobiRotationISt7complexIdEEC2ERKS2_S5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEENS_7ReverseIS9_Li2EEES5_EEvRNS_9DenseBaseIT_EERNSC_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal27apply_rotation_in_the_planeINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEES9_S5_EEvRNS_9DenseBaseIT_EERNSA_IT0_EERKNS_14JacobiRotationIT1_EE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress 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 = { inlinehint mustprogress 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 }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass