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

; 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 { { float, float } }

@_ZZ6chemv_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_vectorISt7complexIfEEN5Eigen3MapINS2_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 @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixISt7complexIfELin1ELi1ELi0ELin1ELi1EEELi0ENS_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_backISt7complexIfEEPT_S3_S3_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local i32 @chemv_(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) #8 {
  %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 4
  %26 = alloca %"class.std::complex", align 4
  %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 4
  %33 = alloca %"class.std::complex", align 4
  %34 = alloca %"class.Eigen::Map.9", align 8
  %35 = alloca %"class.Eigen::Map.9", align 8
  %36 = alloca %"class.std::complex", align 4
  %37 = alloca i32, align 4
  %38 = alloca %"class.std::complex", align 4
  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) #9
  %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) #9
  %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) #9
  %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 8, ptr %25) #9
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %42, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %43, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  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) #9
  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) #9
  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 %217

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 %217

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %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_vectorIKSt7complexIfEEPT_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) #9
  %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_vectorISt7complexIfEEPT_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 8, ptr %32) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %32, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %122 = call noundef zeroext i1 @_ZStneIfEbRKSt7complexIT_ES4_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %32)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br i1 %122, label %123, label %136

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

125:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #9
  %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_vectorISt7complexIfEEN5Eigen3MapINS2_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_6MatrixISt7complexIfELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %34)
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #9
  br label %135

130:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #9
  %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_vectorISt7complexIfEEN5Eigen3MapINS2_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_6MatrixISt7complexIfELin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEEmLERKS4_(ptr noundef nonnull align 1 dereferenceable(1) %35, ptr noundef nonnull align 4 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #9
  br label %135

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

136:                                              ; preds = %135, %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %36, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %137 = call noundef zeroext i1 @_ZStneIfEbRKSt7complexIT_ES4_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %36)
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br i1 %137, label %138, label %191

138:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %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 @_ZZ6chemv_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 %188

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 @_ZZ6chemv_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 4 %38, ptr align 4 %25, i64 8, i1 false), !tbaa.struct !9
  %186 = getelementptr inbounds %"class.std::complex", ptr %38, i32 0, i32 0
  %187 = load <2 x float>, ptr %186, align 4
  call void %178(i32 noundef %180, ptr noundef %181, i32 noundef %183, ptr noundef %184, ptr noundef %185, <2 x float> %187)
  store i32 0, ptr %29, align 4
  br label %188

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

190:                                              ; preds = %188
  br label %191

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

195:                                              ; preds = %191
  %196 = load ptr, ptr %30, align 8, !tbaa !5
  %197 = icmp eq ptr %196, null
  br i1 %197, label %199, label %198

198:                                              ; preds = %195
  call void @_ZdaPv(ptr noundef %196) #10
  br label %199

199:                                              ; preds = %198, %195
  br label %200

200:                                              ; preds = %199, %191
  %201 = load ptr, ptr %31, align 8, !tbaa !5
  %202 = load ptr, ptr %24, align 8, !tbaa !5
  %203 = icmp ne ptr %201, %202
  br i1 %203, label %204, label %215

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

213:                                              ; preds = %204
  call void @_ZdaPv(ptr noundef %211) #10
  br label %214

214:                                              ; preds = %213, %204
  br label %215

215:                                              ; preds = %214, %200
  store i32 1, ptr %11, align 4
  store i32 1, ptr %29, align 4
  br label %216

216:                                              ; preds = %215, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %217

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

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 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { 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 8, !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 { { float, float } }

@_ZZ6chemv_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 uwtable
declare dso_local void @_Z11make_vectorISt7complexIfEEN5Eigen3MapINS2_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 nounwind uwtable
declare dso_local void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @chemv_(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 #7 {
  %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 4
  %16 = alloca %"class.std::complex", align 4
  %17 = alloca %"class.Eigen::Map.9", align 8
  %18 = alloca %"class.Eigen::Map.9", align 8
  %19 = alloca %"class.std::complex", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %20 = load i64, ptr %2, align 4, !tbaa !5
  store i64 %20, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %21 = load i64, ptr %7, align 4, !tbaa !5
  store i64 %21, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %22 = load i8, ptr %0, align 1, !tbaa !5
  switch i8 %22, label %23 [
    i8 85, label %24
    i8 117, label %24
    i8 76, label %24
    i8 108, label %24
  ]

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

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

27:                                               ; preds = %24
  store i32 2, ptr %13, align 4, !tbaa !8
  br label %.thread59

28:                                               ; preds = %24
  %29 = load i32, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  store i32 1, ptr %14, align 4, !tbaa !8
  %30 = 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)
  %31 = load i32, ptr %30, align 4, !tbaa !8
  %32 = icmp slt i32 %29, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br i1 %32, label %33, label %34

33:                                               ; preds = %28
  store i32 5, ptr %13, align 4, !tbaa !8
  br label %.thread59

34:                                               ; preds = %28
  %35 = load i32, ptr %6, align 4, !tbaa !8
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  store i32 7, ptr %13, align 4, !tbaa !8
  br label %.thread59

38:                                               ; preds = %34
  %39 = load i32, ptr %9, align 4, !tbaa !8
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %38
  store i32 10, ptr %13, align 4, !tbaa !8
  br label %.thread59

.thread59:                                        ; preds = %23, %33, %41, %37, %27
  %42 = call i32 @xerbla_(ptr noundef nonnull @.str.7, ptr noundef nonnull %13, i32 noundef 6)
  br label %80

43:                                               ; preds = %38
  %44 = load i32, ptr %1, align 4, !tbaa !8
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %80, label %46

46:                                               ; preds = %43
  %47 = call noundef ptr @_Z18get_compact_vectorIKSt7complexIfEEPT_S4_ii(ptr noundef %5, i32 noundef %44, i32 noundef %35)
  %48 = load i32, ptr %1, align 4, !tbaa !8
  %49 = load i32, ptr %9, align 4, !tbaa !8
  %50 = call noundef ptr @_Z18get_compact_vectorISt7complexIfEEPT_S3_ii(ptr noundef %8, i32 noundef %48, i32 noundef %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %51 = call noundef zeroext i1 @_ZStneIfEbRKSt7complexIT_ES4_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br i1 %51, label %52, label %60

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %53 = call noundef zeroext i1 @_ZSteqIfEbRKSt7complexIT_ES4_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br i1 %53, label %54, label %57

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

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

60:                                               ; preds = %54, %57, %46
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  call void @_ZNSt7complexIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %61 = call noundef zeroext i1 @_ZStneIfEbRKSt7complexIT_ES4_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  br i1 %61, label %62, label %70

62:                                               ; preds = %60
  %63 = load i8, ptr %0, align 1, !tbaa !5
  switch i8 %63, label %80 [
    i8 85, label %select.unfold
    i8 117, label %select.unfold
    i8 76, label %64
    i8 108, label %select.unfold.fold.split
  ]

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

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

select.unfold:                                    ; preds = %62, %62, %select.unfold.fold.split, %64
  %.ph = phi i64 [ 1, %64 ], [ 0, %62 ], [ 0, %62 ], [ 1, %select.unfold.fold.split ]
  %65 = getelementptr inbounds [2 x ptr], ptr @_ZZ6chemv_E4func, i64 0, i64 %.ph
  %66 = load ptr, ptr %65, align 8, !tbaa !10
  %67 = icmp eq ptr %66, null
  br i1 %67, label %80, label %.critedge

.critedge:                                        ; preds = %select.unfold
  %68 = load i32, ptr %1, align 4, !tbaa !8
  %69 = load i32, ptr %4, align 4, !tbaa !8
  %.sroa.0.0.copyload = load <2 x float>, ptr %11, align 8, !tbaa !5
  call void %66(i32 noundef %68, ptr noundef %3, i32 noundef %69, ptr noundef %47, ptr noundef %50, <2 x float> %.sroa.0.0.copyload)
  br label %70

70:                                               ; preds = %.critedge, %60
  %.not56 = icmp eq ptr %47, %5
  %71 = icmp eq ptr %47, null
  %or.cond = or i1 %.not56, %71
  br i1 %or.cond, label %73, label %72

72:                                               ; preds = %70
  call void @_ZdaPv(ptr noundef nonnull %47) #9
  br label %73

73:                                               ; preds = %72, %70
  %.not57 = icmp eq ptr %50, %8
  br i1 %.not57, label %80, label %74

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

79:                                               ; preds = %74
  call void @_ZdaPv(ptr noundef nonnull %77) #9
  br label %80

80:                                               ; preds = %62, %select.unfold, %74, %79, %73, %43, %.thread59
  %.2 = phi i32 [ %42, %.thread59 ], [ 1, %43 ], [ 0, %select.unfold ], [ 1, %74 ], [ 1, %79 ], [ 1, %73 ], [ 0, %62 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  ret i32 %.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 = { 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 #3 = { 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 #4 = { 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 #5 = { "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 = { 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 #7 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}


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