; 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.9" = type { %"class.Eigen::MapBase.base.19", [7 x i8] }
%"class.Eigen::MapBase.base.19" = type { %"class.Eigen::MapBase.base.18" }
%"class.Eigen::MapBase.base.18" = type <{ ptr, %"class.Eigen::internal::variable_if_dynamic", i8 }>
%"class.Eigen::internal::variable_if_dynamic" = type { i64 }
%"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::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" }

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

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

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE7reverseEv(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Reverse") align 8, ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @zswap_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca i32, align 4
  %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 ptr, align 8
  %14 = alloca %"class.Eigen::Map.9", align 8
  %15 = alloca %"class.Eigen::Map.9", align 8
  %16 = alloca %"class.Eigen::Map.36", align 8
  %17 = alloca %"class.Eigen::Map.36", align 8
  %18 = alloca %"class.Eigen::Reverse", align 8
  %19 = alloca %"class.Eigen::Map.36", 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::Map.36", align 8
  %24 = alloca %"class.Eigen::Reverse", align 8
  %25 = alloca %"class.Eigen::Map.36", align 8
  %26 = alloca %"class.Eigen::Reverse", align 8
  %27 = alloca %"class.Eigen::Map.36", 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
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = icmp sle i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %5
  store i32 0, ptr %6, align 4
  br label %134

32:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %33, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %34, ptr %13, align 8, !tbaa !5
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = icmp eq i32 %36, 1
  br i1 %37, label %38, label %49

38:                                               ; preds = %32
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %42, label %49

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #3
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load i32, ptr %44, align 4, !tbaa !9
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_6StrideILi0ELi0EEEEEPS5_i(ptr dead_on_unwind writable sret(%"class.Eigen::Map.9") align 8 %14, ptr noundef %43, i32 noundef %45)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #3
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load i32, ptr %47, align 4, !tbaa !9
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_6StrideILi0ELi0EEEEEPS5_i(ptr dead_on_unwind writable sret(%"class.Eigen::Map.9") align 8 %15, ptr noundef %46, i32 noundef %48)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEE4swapIS8_EEvRKNS0_IT_EE(ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  br label %133

49:                                               ; preds = %38, %32
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %53, label %68

53:                                               ; preds = %49
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %57, label %68

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #3
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = load i32, ptr %61, align 4, !tbaa !9
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind writable sret(%"class.Eigen::Map.36") align 8 %16, ptr noundef %58, i32 noundef %60, i32 noundef %62)
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #3
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load i32, ptr %66, align 4, !tbaa !9
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind writable sret(%"class.Eigen::Map.36") align 8 %17, ptr noundef %63, i32 noundef %65, i32 noundef %67)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE4swapIS8_EEvRKNS0_IT_EE(ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #3
  br label %132

68:                                               ; preds = %53, %49
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %72, label %88

72:                                               ; preds = %68
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = icmp slt i32 %74, 0
  br i1 %75, label %76, label %88

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #3
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = sub nsw i32 0, %81
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind writable sret(%"class.Eigen::Map.36") align 8 %19, ptr noundef %77, i32 noundef %79, i32 noundef %82)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE7reverseEv(ptr dead_on_unwind writable sret(%"class.Eigen::Reverse") align 8 %18, ptr noundef nonnull align 1 dereferenceable(1) %19)
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #3
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 4, !tbaa !9
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind writable sret(%"class.Eigen::Map.36") align 8 %20, ptr noundef %83, i32 noundef %85, i32 noundef %87)
  call void @_ZN5Eigen9DenseBaseINS_7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEEE4swapIS9_EEvRKNS0_IT_EE(ptr noundef nonnull align 1 dereferenceable(1) %18, ptr noundef nonnull align 1 dereferenceable(1) %20)
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #3
  br label %131

88:                                               ; preds = %72, %68
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %92, label %108

92:                                               ; preds = %88
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %96, label %108

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #3
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = load i32, ptr %100, align 4, !tbaa !9
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind writable sret(%"class.Eigen::Map.36") align 8 %21, ptr noundef %97, i32 noundef %99, i32 noundef %101)
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #3
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = sub nsw i32 0, %106
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind writable sret(%"class.Eigen::Map.36") align 8 %23, ptr noundef %102, i32 noundef %104, i32 noundef %107)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE7reverseEv(ptr dead_on_unwind writable sret(%"class.Eigen::Reverse") align 8 %22, ptr noundef nonnull align 1 dereferenceable(1) %23)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE4swapINS_7ReverseIS8_Li2EEEEEvRKNS0_IT_EE(ptr noundef nonnull align 1 dereferenceable(1) %21, ptr noundef nonnull align 1 dereferenceable(1) %22)
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #3
  br label %130

108:                                              ; preds = %92, %88
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = icmp slt i32 %110, 0
  br i1 %111, label %112, label %129

112:                                              ; preds = %108
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = icmp slt i32 %114, 0
  br i1 %115, label %116, label %129

116:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #3
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = sub nsw i32 0, %121
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind writable sret(%"class.Eigen::Map.36") align 8 %25, ptr noundef %117, i32 noundef %119, i32 noundef %122)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE7reverseEv(ptr dead_on_unwind writable sret(%"class.Eigen::Reverse") align 8 %24, ptr noundef nonnull align 1 dereferenceable(1) %25)
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #3
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = sub nsw i32 0, %127
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind writable sret(%"class.Eigen::Map.36") align 8 %27, ptr noundef %123, i32 noundef %125, i32 noundef %128)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE7reverseEv(ptr dead_on_unwind writable sret(%"class.Eigen::Reverse") align 8 %26, ptr noundef nonnull align 1 dereferenceable(1) %27)
  call void @_ZN5Eigen9DenseBaseINS_7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEEE4swapISA_EEvRKNS0_IT_EE(ptr noundef nonnull align 1 dereferenceable(1) %24, ptr noundef nonnull align 1 dereferenceable(1) %26)
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #3
  br label %129

129:                                              ; preds = %116, %112, %108
  br label %130

130:                                              ; preds = %129, %96
  br label %131

131:                                              ; preds = %130, %76
  br label %132

132:                                              ; preds = %131, %57
  br label %133

133:                                              ; preds = %132, %42
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %134

134:                                              ; preds = %133, %31
  %135 = load i32, ptr %6, align 4
  ret i32 %135
}

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

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

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

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

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

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 = { 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 #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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.9" = type { %"class.Eigen::MapBase.base.19", [7 x i8] }
%"class.Eigen::MapBase.base.19" = type { %"class.Eigen::MapBase.base.18" }
%"class.Eigen::MapBase.base.18" = type <{ ptr, %"class.Eigen::internal::variable_if_dynamic", i8 }>
%"class.Eigen::internal::variable_if_dynamic" = type { i64 }
%"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::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" }

; 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 uwtable
declare dso_local void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_6StrideILi0ELi0EEEEEPS5_i(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Map.9") align 8, ptr noundef, i32 noundef) local_unnamed_addr #1

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE7reverseEv(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Reverse") align 8, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local range(i32 0, 2) i32 @zswap_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr nocapture noundef readonly %4) local_unnamed_addr #1 {
  %6 = alloca %"class.Eigen::Map.9", align 8
  %7 = alloca %"class.Eigen::Map.9", align 8
  %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::Map.36", align 8
  %12 = alloca %"class.Eigen::Map.36", align 8
  %13 = alloca %"class.Eigen::Map.36", align 8
  %14 = alloca %"class.Eigen::Reverse", align 8
  %15 = alloca %"class.Eigen::Map.36", align 8
  %16 = alloca %"class.Eigen::Reverse", align 8
  %17 = alloca %"class.Eigen::Map.36", align 8
  %18 = alloca %"class.Eigen::Reverse", align 8
  %19 = alloca %"class.Eigen::Map.36", align 8
  %20 = load i32, ptr %0, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 1
  br i1 %21, label %.thread44, label %22

22:                                               ; preds = %5
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = icmp eq i32 %23, 1
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %28, label %.thread

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_6StrideILi0ELi0EEEEEPS5_i(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.9") align 8 %6, ptr noundef %3, i32 noundef %20)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #3
  %29 = load i32, ptr %0, align 4, !tbaa !5
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_6StrideILi0ELi0EEEEEPS5_i(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.9") align 8 %7, ptr noundef %1, i32 noundef %29)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEE4swapIS8_EEvRKNS0_IT_EE(ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  br label %.thread44

30:                                               ; preds = %22
  %31 = icmp sgt i32 %23, 0
  br i1 %31, label %thread-pre-split, label %43

thread-pre-split:                                 ; preds = %30
  %.pr = load i32, ptr %4, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %25, %thread-pre-split
  %32 = phi i32 [ %.pr, %thread-pre-split ], [ %26, %25 ]
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #3
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.36") align 8 %8, ptr noundef %3, i32 noundef %20, i32 noundef %32)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #3
  %35 = load i32, ptr %0, align 4, !tbaa !5
  %36 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.36") align 8 %9, ptr noundef %1, i32 noundef %35, i32 noundef %36)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE4swapIS8_EEvRKNS0_IT_EE(ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #3
  br label %.thread44

37:                                               ; preds = %.thread
  %38 = icmp slt i32 %32, 0
  br i1 %38, label %39, label %.thread44

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #3
  %40 = sub nsw i32 0, %32
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.36") align 8 %11, ptr noundef %3, i32 noundef %20, i32 noundef %40)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE7reverseEv(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Reverse") align 8 %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #3
  %41 = load i32, ptr %0, align 4, !tbaa !5
  %42 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.36") align 8 %12, ptr noundef %1, i32 noundef %41, i32 noundef %42)
  call void @_ZN5Eigen9DenseBaseINS_7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEEE4swapIS9_EEvRKNS0_IT_EE(ptr noundef nonnull align 1 dereferenceable(1) %10, ptr noundef nonnull align 1 dereferenceable(1) %12)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #3
  br label %.thread44

43:                                               ; preds = %30
  %44 = icmp slt i32 %23, 0
  br i1 %44, label %45, label %.thread44

45:                                               ; preds = %43
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %48, label %52

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #3
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.36") align 8 %13, ptr noundef %3, i32 noundef %20, i32 noundef %46)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #3
  %49 = load i32, ptr %0, align 4, !tbaa !5
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = sub nsw i32 0, %50
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.36") align 8 %15, ptr noundef %1, i32 noundef %49, i32 noundef %51)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE7reverseEv(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Reverse") align 8 %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE4swapINS_7ReverseIS8_Li2EEEEEvRKNS0_IT_EE(ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #3
  br label %.thread44

52:                                               ; preds = %45
  %53 = icmp slt i32 %46, 0
  br i1 %53, label %54, label %.thread44

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %17) #3
  %55 = sub nsw i32 0, %46
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.36") align 8 %17, ptr noundef %3, i32 noundef %20, i32 noundef %55)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE7reverseEv(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Reverse") align 8 %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #3
  %56 = load i32, ptr %0, align 4, !tbaa !5
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = sub nsw i32 0, %57
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_11InnerStrideILin1EEEEEPS5_ii(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.36") align 8 %19, ptr noundef %1, i32 noundef %56, i32 noundef %58)
  call void @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEEE7reverseEv(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Reverse") align 8 %18, ptr noundef nonnull align 1 dereferenceable(1) %19)
  call void @_ZN5Eigen9DenseBaseINS_7ReverseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_11InnerStrideILin1EEEEELi2EEEE4swapISA_EEvRKNS0_IT_EE(ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 1 dereferenceable(1) %18)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #3
  br label %.thread44

.thread44:                                        ; preds = %43, %37, %28, %39, %52, %54, %48, %34, %5
  %.0 = phi i32 [ 0, %5 ], [ 1, %34 ], [ 1, %48 ], [ 1, %54 ], [ 1, %52 ], [ 1, %39 ], [ 1, %28 ], [ 1, %37 ], [ 1, %43 ]
  ret i32 %.0
}

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

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

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

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

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

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 = { 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 #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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