; 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.std::complex" = type { { double, double } }

@_ZZ6zhemv_E4func = external hidden constant [2 x ptr], align 16
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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) #2

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

; 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: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEEmLERKS4_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18get_compact_vectorIKSt7complexIdEEPT_S4_ii(ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18get_compact_vectorISt7complexIdEEPT_S3_ii(ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z9copy_backISt7complexIdEEPT_S3_S3_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local i32 @zhemv_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #2 {
  %11 = alloca i32, align 4
  %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 ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.std::complex", align 8
  %26 = alloca %"class.std::complex", align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"class.std::complex", align 8
  %33 = alloca %"class.std::complex", align 8
  %34 = alloca %"class.Eigen::Map.9", align 8
  %35 = alloca %"class.Eigen::Map.9", align 8
  %36 = alloca %"class.std::complex", align 8
  %37 = alloca i32, align 4
  %38 = alloca %"class.std::complex", align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %39, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %40 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %40, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %41 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %41, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %42, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %43, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !11
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = load i8, ptr %44, align 1, !tbaa !10
  %46 = sext i8 %45 to i32
  %47 = icmp eq i32 %46, 85
  br i1 %47, label %53, label %48

48:                                               ; preds = %10
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = load i8, ptr %49, align 1, !tbaa !10
  %51 = sext i8 %50 to i32
  %52 = icmp eq i32 %51, 117
  br i1 %52, label %53, label %54

53:                                               ; preds = %48, %10
  br label %68

54:                                               ; preds = %48
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = load i8, ptr %55, align 1, !tbaa !10
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %57, 76
  br i1 %58, label %64, label %59

59:                                               ; preds = %54
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = load i8, ptr %60, align 1, !tbaa !10
  %62 = sext i8 %61 to i32
  %63 = icmp eq i32 %62, 108
  br label %64

64:                                               ; preds = %59, %54
  %65 = phi i1 [ true, %54 ], [ %63, %59 ]
  %66 = zext i1 %65 to i64
  %67 = select i1 %65, i32 1, i32 255
  br label %68

68:                                               ; preds = %64, %53
  %69 = phi i32 [ 0, %53 ], [ %67, %64 ]
  %70 = icmp eq i32 %69, 255
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  store i32 1, ptr %27, align 4, !tbaa !11
  br label %99

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

76:                                               ; preds = %72
  store i32 2, ptr %27, align 4, !tbaa !11
  br label %98

77:                                               ; preds = %72
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = load i32, ptr %78, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 1, ptr %28, align 4, !tbaa !11
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %80)
  %82 = load i32, ptr %81, align 4, !tbaa !11
  %83 = icmp slt i32 %79, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br i1 %83, label %84, label %85

84:                                               ; preds = %77
  store i32 5, ptr %27, align 4, !tbaa !11
  br label %97

85:                                               ; preds = %77
  %86 = load ptr, ptr %18, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 4, !tbaa !11
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %85
  store i32 7, ptr %27, align 4, !tbaa !11
  br label %96

90:                                               ; preds = %85
  %91 = load ptr, ptr %21, align 8, !tbaa !5
  %92 = load i32, ptr %91, align 4, !tbaa !11
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %95

94:                                               ; preds = %90
  store i32 10, ptr %27, align 4, !tbaa !11
  br label %95

95:                                               ; preds = %94, %90
  br label %96

96:                                               ; preds = %95, %89
  br label %97

97:                                               ; preds = %96, %84
  br label %98

98:                                               ; preds = %97, %76
  br label %99

99:                                               ; preds = %98, %71
  %100 = load i32, ptr %27, align 4, !tbaa !11
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %99
  %103 = call i32 @xerbla_(ptr noundef @.str.7, ptr noundef %27, i32 noundef 6)
  store i32 %103, ptr %11, align 4
  store i32 1, ptr %29, align 4
  br label %219

104:                                              ; preds = %99
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !11
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %104
  store i32 1, ptr %11, align 4
  store i32 1, ptr %29, align 4
  br label %219

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %110 = load ptr, ptr %23, align 8, !tbaa !5
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = load i32, ptr %111, align 4, !tbaa !11
  %113 = load ptr, ptr %18, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !11
  %115 = call noundef ptr @_Z18get_compact_vectorIKSt7complexIdEEPT_S4_ii(ptr noundef %110, i32 noundef %112, i32 noundef %114)
  store ptr %115, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %116 = load ptr, ptr %24, align 8, !tbaa !5
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !11
  %119 = load ptr, ptr %21, align 8, !tbaa !5
  %120 = load i32, ptr %119, align 4, !tbaa !11
  %121 = call noundef ptr @_Z18get_compact_vectorISt7complexIdEEPT_S3_ii(ptr noundef %116, i32 noundef %118, i32 noundef %120)
  store ptr %121, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %32, double noundef 1.000000e+00, double noundef 0.000000e+00)
  %122 = call noundef zeroext i1 @_ZStneIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  br i1 %122, label %123, label %136

123:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %33, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %124 = call noundef zeroext i1 @_ZSteqIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %33)
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br i1 %124, label %125, label %130

125:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #8
  %126 = load ptr, ptr %31, align 8, !tbaa !5
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  %128 = load i32, ptr %127, align 4, !tbaa !11
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_6StrideILi0ELi0EEEEEPS5_i(ptr dead_on_unwind writable sret(%"class.Eigen::Map.9") align 8 %34, ptr noundef %126, i32 noundef %128)
  %129 = call noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %34)
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  br label %135

130:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #8
  %131 = load ptr, ptr %31, align 8, !tbaa !5
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = load i32, ptr %132, align 4, !tbaa !11
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_6StrideILi0ELi0EEEEEPS5_i(ptr dead_on_unwind writable sret(%"class.Eigen::Map.9") align 8 %35, ptr noundef %131, i32 noundef %133)
  %134 = call noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEEmLERKS4_(ptr noundef nonnull align 1 dereferenceable(1) %35, ptr noundef nonnull align 8 dereferenceable(16) %26)
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  br label %135

135:                                              ; preds = %130, %125
  br label %136

136:                                              ; preds = %135, %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %36, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %137 = call noundef zeroext i1 @_ZStneIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %36)
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  br i1 %137, label %138, label %193

138:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = load i8, ptr %139, align 1, !tbaa !10
  %141 = sext i8 %140 to i32
  %142 = icmp eq i32 %141, 85
  br i1 %142, label %148, label %143

143:                                              ; preds = %138
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = load i8, ptr %144, align 1, !tbaa !10
  %146 = sext i8 %145 to i32
  %147 = icmp eq i32 %146, 117
  br i1 %147, label %148, label %149

148:                                              ; preds = %143, %138
  br label %163

149:                                              ; preds = %143
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = load i8, ptr %150, align 1, !tbaa !10
  %152 = sext i8 %151 to i32
  %153 = icmp eq i32 %152, 76
  br i1 %153, label %159, label %154

154:                                              ; preds = %149
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = load i8, ptr %155, align 1, !tbaa !10
  %157 = sext i8 %156 to i32
  %158 = icmp eq i32 %157, 108
  br label %159

159:                                              ; preds = %154, %149
  %160 = phi i1 [ true, %149 ], [ %158, %154 ]
  %161 = zext i1 %160 to i64
  %162 = select i1 %160, i32 1, i32 255
  br label %163

163:                                              ; preds = %159, %148
  %164 = phi i32 [ 0, %148 ], [ %162, %159 ]
  store i32 %164, ptr %37, align 4, !tbaa !11
  %165 = load i32, ptr %37, align 4, !tbaa !11
  %166 = icmp sge i32 %165, 2
  br i1 %166, label %173, label %167

167:                                              ; preds = %163
  %168 = load i32, ptr %37, align 4, !tbaa !11
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [2 x ptr], ptr @_ZZ6zhemv_E4func, i64 0, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = icmp eq ptr %171, null
  br i1 %172, label %173, label %174

173:                                              ; preds = %167, %163
  store i32 0, ptr %11, align 4
  store i32 1, ptr %29, align 4
  br label %190

174:                                              ; preds = %167
  %175 = load i32, ptr %37, align 4, !tbaa !11
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [2 x ptr], ptr @_ZZ6zhemv_E4func, i64 0, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = load i32, ptr %179, align 4, !tbaa !11
  %181 = load ptr, ptr %22, align 8, !tbaa !5
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  %183 = load i32, ptr %182, align 4, !tbaa !11
  %184 = load ptr, ptr %30, align 8, !tbaa !5
  %185 = load ptr, ptr %31, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !9
  %186 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %187 = load double, ptr %186, align 8
  %188 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %189 = load double, ptr %188, align 8
  call void %178(i32 noundef %180, ptr noundef %181, i32 noundef %183, ptr noundef %184, ptr noundef %185, double %187, double %189)
  store i32 0, ptr %29, align 4
  br label %190

190:                                              ; preds = %174, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  %191 = load i32, ptr %29, align 4
  switch i32 %191, label %218 [
    i32 0, label %192
  ]

192:                                              ; preds = %190
  br label %193

193:                                              ; preds = %192, %136
  %194 = load ptr, ptr %30, align 8, !tbaa !5
  %195 = load ptr, ptr %23, align 8, !tbaa !5
  %196 = icmp ne ptr %194, %195
  br i1 %196, label %197, label %202

197:                                              ; preds = %193
  %198 = load ptr, ptr %30, align 8, !tbaa !5
  %199 = icmp eq ptr %198, null
  br i1 %199, label %201, label %200

200:                                              ; preds = %197
  call void @_ZdaPv(ptr noundef %198) #9
  br label %201

201:                                              ; preds = %200, %197
  br label %202

202:                                              ; preds = %201, %193
  %203 = load ptr, ptr %31, align 8, !tbaa !5
  %204 = load ptr, ptr %24, align 8, !tbaa !5
  %205 = icmp ne ptr %203, %204
  br i1 %205, label %206, label %217

206:                                              ; preds = %202
  %207 = load ptr, ptr %31, align 8, !tbaa !5
  %208 = load ptr, ptr %24, align 8, !tbaa !5
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = load i32, ptr %209, align 4, !tbaa !11
  %211 = load ptr, ptr %21, align 8, !tbaa !5
  %212 = load i32, ptr %211, align 4, !tbaa !11
  %213 = call noundef ptr @_Z9copy_backISt7complexIdEEPT_S3_S3_ii(ptr noundef %207, ptr noundef %208, i32 noundef %210, i32 noundef %212)
  %214 = icmp eq ptr %213, null
  br i1 %214, label %216, label %215

215:                                              ; preds = %206
  call void @_ZdaPv(ptr noundef %213) #9
  br label %216

216:                                              ; preds = %215, %206
  br label %217

217:                                              ; preds = %216, %202
  store i32 1, ptr %11, align 4
  store i32 1, ptr %29, align 4
  br label %218

218:                                              ; preds = %217, %190
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %219

219:                                              ; preds = %218, %108, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  %220 = load i32, ptr %11, align 4
  ret i32 %220
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 = { inlinehint 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 #6 = { "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 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin 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 = !{i64 0, i64 16, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"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.std::complex" = type { { double, double } }

@_ZZ6zhemv_E4func = external hidden local_unnamed_addr constant [2 x ptr], align 16
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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 #2

; 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 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: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEEmLERKS4_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18get_compact_vectorIKSt7complexIdEEPT_S4_ii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18get_compact_vectorISt7complexIdEEPT_S3_ii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z9copy_backISt7complexIdEEPT_S3_S3_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local i32 @zhemv_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr nocapture noundef readonly %4, ptr noundef %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7, ptr noundef %8, ptr nocapture noundef readonly %9) local_unnamed_addr #2 {
  %11 = alloca %"class.std::complex", align 8
  %12 = alloca %"class.std::complex", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::complex", align 8
  %16 = alloca %"class.std::complex", align 8
  %17 = alloca %"class.Eigen::Map.9", align 8
  %18 = alloca %"class.Eigen::Map.9", align 8
  %19 = alloca %"class.std::complex", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %20 = load i8, ptr %0, align 1, !tbaa !6
  switch i8 %20, label %21 [
    i8 85, label %22
    i8 117, label %22
    i8 76, label %22
    i8 108, label %22
  ]

21:                                               ; preds = %10
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %.thread59

22:                                               ; preds = %10, %10, %10, %10
  %23 = load i32, ptr %1, align 4, !tbaa !9
  %24 = icmp slt i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  store i32 2, ptr %13, align 4, !tbaa !9
  br label %.thread59

26:                                               ; preds = %22
  %27 = load i32, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  store i32 1, ptr %14, align 4, !tbaa !9
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = icmp slt i32 %27, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br i1 %30, label %31, label %32

31:                                               ; preds = %26
  store i32 5, ptr %13, align 4, !tbaa !9
  br label %.thread59

32:                                               ; preds = %26
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  store i32 7, ptr %13, align 4, !tbaa !9
  br label %.thread59

36:                                               ; preds = %32
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %36
  store i32 10, ptr %13, align 4, !tbaa !9
  br label %.thread59

.thread59:                                        ; preds = %21, %31, %39, %35, %25
  %40 = call i32 @xerbla_(ptr noundef nonnull @.str.7, ptr noundef nonnull %13, i32 noundef 6)
  br label %78

41:                                               ; preds = %36
  %42 = load i32, ptr %1, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %78, label %44

44:                                               ; preds = %41
  %45 = call noundef ptr @_Z18get_compact_vectorIKSt7complexIdEEPT_S4_ii(ptr noundef %5, i32 noundef %42, i32 noundef %33)
  %46 = load i32, ptr %1, align 4, !tbaa !9
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = call noundef ptr @_Z18get_compact_vectorISt7complexIdEEPT_S3_ii(ptr noundef %8, i32 noundef %46, i32 noundef %47)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef 1.000000e+00, double noundef 0.000000e+00)
  %49 = call noundef zeroext i1 @_ZStneIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  br i1 %49, label %50, label %58

50:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #8
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %51 = call noundef zeroext i1 @_ZSteqIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %16)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  br i1 %51, label %52, label %55

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  %53 = load i32, ptr %1, align 4, !tbaa !9
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_6StrideILi0ELi0EEEEEPS5_i(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.9") align 8 %17, ptr noundef %48, i32 noundef %53)
  %54 = call noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %17)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  br label %58

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #8
  %56 = load i32, ptr %1, align 4, !tbaa !9
  call void @_Z11make_vectorISt7complexIdEEN5Eigen3MapINS2_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS2_6StrideILi0ELi0EEEEEPS5_i(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.9") align 8 %18, ptr noundef %48, i32 noundef %56)
  %57 = call noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEEmLERKS4_(ptr noundef nonnull align 1 dereferenceable(1) %18, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  br label %58

58:                                               ; preds = %52, %55, %44
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #8
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %59 = call noundef zeroext i1 @_ZStneIdEbRKSt7complexIT_ES4_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  br i1 %59, label %60, label %68

60:                                               ; preds = %58
  %61 = load i8, ptr %0, align 1, !tbaa !6
  switch i8 %61, label %78 [
    i8 85, label %select.unfold
    i8 117, label %select.unfold
    i8 76, label %62
    i8 108, label %select.unfold.fold.split
  ]

62:                                               ; preds = %60
  br label %select.unfold

select.unfold.fold.split:                         ; preds = %60
  br label %select.unfold

select.unfold:                                    ; preds = %60, %60, %select.unfold.fold.split, %62
  %.ph = phi i64 [ 1, %62 ], [ 0, %60 ], [ 0, %60 ], [ 1, %select.unfold.fold.split ]
  %63 = getelementptr inbounds [2 x ptr], ptr @_ZZ6zhemv_E4func, i64 0, i64 %.ph
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = icmp eq ptr %64, null
  br i1 %65, label %78, label %.critedge

.critedge:                                        ; preds = %select.unfold
  %66 = load i32, ptr %1, align 4, !tbaa !9
  %67 = load i32, ptr %4, align 4, !tbaa !9
  %.sroa.0.0.copyload = load double, ptr %11, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !6
  call void %64(i32 noundef %66, ptr noundef %3, i32 noundef %67, ptr noundef %45, ptr noundef %48, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  br label %68

68:                                               ; preds = %.critedge, %58
  %.not56 = icmp eq ptr %45, %5
  %69 = icmp eq ptr %45, null
  %or.cond = or i1 %.not56, %69
  br i1 %or.cond, label %71, label %70

70:                                               ; preds = %68
  call void @_ZdaPv(ptr noundef nonnull %45) #9
  br label %71

71:                                               ; preds = %70, %68
  %.not57 = icmp eq ptr %48, %8
  br i1 %.not57, label %78, label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %1, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = call noundef ptr @_Z9copy_backISt7complexIdEEPT_S3_S3_ii(ptr noundef %48, ptr noundef %8, i32 noundef %73, i32 noundef %74)
  %76 = icmp eq ptr %75, null
  br i1 %76, label %78, label %77

77:                                               ; preds = %72
  call void @_ZdaPv(ptr noundef nonnull %75) #9
  br label %78

78:                                               ; preds = %60, %select.unfold, %72, %77, %71, %41, %.thread59
  %.2 = phi i32 [ %40, %.thread59 ], [ 1, %41 ], [ 0, %select.unfold ], [ 1, %72 ], [ 1, %77 ], [ 1, %71 ], [ 0, %60 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  ret i32 %.2
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 = { inlinehint 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 #6 = { "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 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin 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 = !{i64 0, i64 16, !6}
!6 = !{!7, !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 = !{!"any pointer", !7, i64 0}


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