; 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::Matrix" = type { %"class.Eigen::PlainObjectBase" }
%"class.Eigen::PlainObjectBase" = type { %"class.Eigen::DenseStorage" }
%"class.Eigen::DenseStorage" = type { ptr, i64 }
%"class.std::complex" = type { { double, double } }

@_ZZ6ztpmv_E4func = external hidden constant [16 x ptr], align 16
@.str.5 = 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 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 #1 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen9DenseBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1)) #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @ztpmv_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.Eigen::Matrix", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::complex", align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %26 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %26, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %27, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = load i8, ptr %28, align 1, !tbaa !11
  %30 = sext i8 %29 to i32
  %31 = icmp eq i32 %30, 85
  br i1 %31, label %37, label %32

32:                                               ; preds = %7
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = load i8, ptr %33, align 1, !tbaa !11
  %35 = sext i8 %34 to i32
  %36 = icmp eq i32 %35, 117
  br i1 %36, label %37, label %38

37:                                               ; preds = %32, %7
  br label %52

38:                                               ; preds = %32
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = load i8, ptr %39, align 1, !tbaa !11
  %41 = sext i8 %40 to i32
  %42 = icmp eq i32 %41, 76
  br i1 %42, label %48, label %43

43:                                               ; preds = %38
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %46 = sext i8 %45 to i32
  %47 = icmp eq i32 %46, 108
  br label %48

48:                                               ; preds = %43, %38
  %49 = phi i1 [ true, %38 ], [ %47, %43 ]
  %50 = zext i1 %49 to i64
  %51 = select i1 %49, i32 1, i32 255
  br label %52

52:                                               ; preds = %48, %37
  %53 = phi i32 [ 0, %37 ], [ %51, %48 ]
  %54 = icmp eq i32 %53, 255
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %141

56:                                               ; preds = %52
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = load i8, ptr %57, align 1, !tbaa !11
  %59 = sext i8 %58 to i32
  %60 = icmp eq i32 %59, 78
  br i1 %60, label %66, label %61

61:                                               ; preds = %56
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = load i8, ptr %62, align 1, !tbaa !11
  %64 = sext i8 %63 to i32
  %65 = icmp eq i32 %64, 110
  br i1 %65, label %66, label %67

66:                                               ; preds = %61, %56
  br label %94

67:                                               ; preds = %61
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = load i8, ptr %68, align 1, !tbaa !11
  %70 = sext i8 %69 to i32
  %71 = icmp eq i32 %70, 84
  br i1 %71, label %77, label %72

72:                                               ; preds = %67
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = load i8, ptr %73, align 1, !tbaa !11
  %75 = sext i8 %74 to i32
  %76 = icmp eq i32 %75, 116
  br i1 %76, label %77, label %78

77:                                               ; preds = %72, %67
  br label %92

78:                                               ; preds = %72
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = load i8, ptr %79, align 1, !tbaa !11
  %81 = sext i8 %80 to i32
  %82 = icmp eq i32 %81, 67
  br i1 %82, label %88, label %83

83:                                               ; preds = %78
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = load i8, ptr %84, align 1, !tbaa !11
  %86 = sext i8 %85 to i32
  %87 = icmp eq i32 %86, 99
  br label %88

88:                                               ; preds = %83, %78
  %89 = phi i1 [ true, %78 ], [ %87, %83 ]
  %90 = zext i1 %89 to i64
  %91 = select i1 %89, i32 2, i32 255
  br label %92

92:                                               ; preds = %88, %77
  %93 = phi i32 [ 1, %77 ], [ %91, %88 ]
  br label %94

94:                                               ; preds = %92, %66
  %95 = phi i32 [ 0, %66 ], [ %93, %92 ]
  %96 = icmp eq i32 %95, 255
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  store i32 2, ptr %18, align 4, !tbaa !9
  br label %140

98:                                               ; preds = %94
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = load i8, ptr %99, align 1, !tbaa !11
  %101 = sext i8 %100 to i32
  %102 = icmp eq i32 %101, 78
  br i1 %102, label %108, label %103

103:                                              ; preds = %98
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = load i8, ptr %104, align 1, !tbaa !11
  %106 = sext i8 %105 to i32
  %107 = icmp eq i32 %106, 110
  br i1 %107, label %108, label %109

108:                                              ; preds = %103, %98
  br label %123

109:                                              ; preds = %103
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = load i8, ptr %110, align 1, !tbaa !11
  %112 = sext i8 %111 to i32
  %113 = icmp eq i32 %112, 85
  br i1 %113, label %119, label %114

114:                                              ; preds = %109
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = load i8, ptr %115, align 1, !tbaa !11
  %117 = sext i8 %116 to i32
  %118 = icmp eq i32 %117, 117
  br label %119

119:                                              ; preds = %114, %109
  %120 = phi i1 [ true, %109 ], [ %118, %114 ]
  %121 = zext i1 %120 to i64
  %122 = select i1 %120, i32 1, i32 255
  br label %123

123:                                              ; preds = %119, %108
  %124 = phi i32 [ 0, %108 ], [ %122, %119 ]
  %125 = icmp eq i32 %124, 255
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  store i32 3, ptr %18, align 4, !tbaa !9
  br label %139

127:                                              ; preds = %123
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = icmp slt i32 %129, 0
  br i1 %130, label %131, label %132

131:                                              ; preds = %127
  store i32 4, ptr %18, align 4, !tbaa !9
  br label %138

132:                                              ; preds = %127
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %137

136:                                              ; preds = %132
  store i32 7, ptr %18, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %136, %132
  br label %138

138:                                              ; preds = %137, %131
  br label %139

139:                                              ; preds = %138, %126
  br label %140

140:                                              ; preds = %139, %97
  br label %141

141:                                              ; preds = %140, %55
  %142 = load i32, ptr %18, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %146

144:                                              ; preds = %141
  %145 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %18, i32 noundef 6)
  store i32 %145, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %310

146:                                              ; preds = %141
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = icmp eq i32 %148, 0
  br i1 %149, label %150, label %151

150:                                              ; preds = %146
  store i32 1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %310

151:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = call noundef ptr @_Z18get_compact_vectorISt7complexIdEEPT_S3_ii(ptr noundef %152, i32 noundef %154, i32 noundef %156)
  store ptr %157, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN5Eigen6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEC2IiEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(4) %158)
  %159 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen9DenseBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %160 unwind label %265

160:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = load i8, ptr %161, align 1, !tbaa !11
  %163 = sext i8 %162 to i32
  %164 = icmp eq i32 %163, 78
  br i1 %164, label %170, label %165

165:                                              ; preds = %160
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  %167 = load i8, ptr %166, align 1, !tbaa !11
  %168 = sext i8 %167 to i32
  %169 = icmp eq i32 %168, 110
  br i1 %169, label %170, label %171

170:                                              ; preds = %165, %160
  br label %198

171:                                              ; preds = %165
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  %173 = load i8, ptr %172, align 1, !tbaa !11
  %174 = sext i8 %173 to i32
  %175 = icmp eq i32 %174, 84
  br i1 %175, label %181, label %176

176:                                              ; preds = %171
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = load i8, ptr %177, align 1, !tbaa !11
  %179 = sext i8 %178 to i32
  %180 = icmp eq i32 %179, 116
  br i1 %180, label %181, label %182

181:                                              ; preds = %176, %171
  br label %196

182:                                              ; preds = %176
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = load i8, ptr %183, align 1, !tbaa !11
  %185 = sext i8 %184 to i32
  %186 = icmp eq i32 %185, 67
  br i1 %186, label %192, label %187

187:                                              ; preds = %182
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  %189 = load i8, ptr %188, align 1, !tbaa !11
  %190 = sext i8 %189 to i32
  %191 = icmp eq i32 %190, 99
  br label %192

192:                                              ; preds = %187, %182
  %193 = phi i1 [ true, %182 ], [ %191, %187 ]
  %194 = zext i1 %193 to i64
  %195 = select i1 %193, i32 2, i32 255
  br label %196

196:                                              ; preds = %192, %181
  %197 = phi i32 [ 1, %181 ], [ %195, %192 ]
  br label %198

198:                                              ; preds = %196, %170
  %199 = phi i32 [ 0, %170 ], [ %197, %196 ]
  %200 = load ptr, ptr %9, align 8, !tbaa !5
  %201 = load i8, ptr %200, align 1, !tbaa !11
  %202 = sext i8 %201 to i32
  %203 = icmp eq i32 %202, 85
  br i1 %203, label %209, label %204

204:                                              ; preds = %198
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = load i8, ptr %205, align 1, !tbaa !11
  %207 = sext i8 %206 to i32
  %208 = icmp eq i32 %207, 117
  br i1 %208, label %209, label %210

209:                                              ; preds = %204, %198
  br label %224

210:                                              ; preds = %204
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = load i8, ptr %211, align 1, !tbaa !11
  %213 = sext i8 %212 to i32
  %214 = icmp eq i32 %213, 76
  br i1 %214, label %220, label %215

215:                                              ; preds = %210
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = load i8, ptr %216, align 1, !tbaa !11
  %218 = sext i8 %217 to i32
  %219 = icmp eq i32 %218, 108
  br label %220

220:                                              ; preds = %215, %210
  %221 = phi i1 [ true, %210 ], [ %219, %215 ]
  %222 = zext i1 %221 to i64
  %223 = select i1 %221, i32 1, i32 255
  br label %224

224:                                              ; preds = %220, %209
  %225 = phi i32 [ 0, %209 ], [ %223, %220 ]
  %226 = shl i32 %225, 2
  %227 = or i32 %199, %226
  %228 = load ptr, ptr %11, align 8, !tbaa !5
  %229 = load i8, ptr %228, align 1, !tbaa !11
  %230 = sext i8 %229 to i32
  %231 = icmp eq i32 %230, 78
  br i1 %231, label %237, label %232

232:                                              ; preds = %224
  %233 = load ptr, ptr %11, align 8, !tbaa !5
  %234 = load i8, ptr %233, align 1, !tbaa !11
  %235 = sext i8 %234 to i32
  %236 = icmp eq i32 %235, 110
  br i1 %236, label %237, label %238

237:                                              ; preds = %232, %224
  br label %252

238:                                              ; preds = %232
  %239 = load ptr, ptr %11, align 8, !tbaa !5
  %240 = load i8, ptr %239, align 1, !tbaa !11
  %241 = sext i8 %240 to i32
  %242 = icmp eq i32 %241, 85
  br i1 %242, label %248, label %243

243:                                              ; preds = %238
  %244 = load ptr, ptr %11, align 8, !tbaa !5
  %245 = load i8, ptr %244, align 1, !tbaa !11
  %246 = sext i8 %245 to i32
  %247 = icmp eq i32 %246, 117
  br label %248

248:                                              ; preds = %243, %238
  %249 = phi i1 [ true, %238 ], [ %247, %243 ]
  %250 = zext i1 %249 to i64
  %251 = select i1 %249, i32 1, i32 255
  br label %252

252:                                              ; preds = %248, %237
  %253 = phi i32 [ 0, %237 ], [ %251, %248 ]
  %254 = shl i32 %253, 3
  %255 = or i32 %227, %254
  store i32 %255, ptr %24, align 4, !tbaa !9
  %256 = load i32, ptr %24, align 4, !tbaa !9
  %257 = icmp sge i32 %256, 16
  br i1 %257, label %264, label %258

258:                                              ; preds = %252
  %259 = load i32, ptr %24, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [16 x ptr], ptr @_ZZ6ztpmv_E4func, i64 0, i64 %260
  %262 = load ptr, ptr %261, align 8, !tbaa !5
  %263 = icmp eq ptr %262, null
  br i1 %263, label %264, label %269

264:                                              ; preds = %258, %252
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %308

265:                                              ; preds = %151
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %22, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %23, align 4
  br label %309

269:                                              ; preds = %258
  %270 = load i32, ptr %24, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [16 x ptr], ptr @_ZZ6ztpmv_E4func, i64 0, i64 %271
  %273 = load ptr, ptr %272, align 8, !tbaa !5
  %274 = load ptr, ptr %12, align 8, !tbaa !5
  %275 = load i32, ptr %274, align 4, !tbaa !9
  %276 = load ptr, ptr %16, align 8, !tbaa !5
  %277 = load ptr, ptr %20, align 8, !tbaa !5
  %278 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %279 unwind label %303

279:                                              ; preds = %269
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %25, double noundef 1.000000e+00, double noundef 0.000000e+00)
          to label %280 unwind label %303

280:                                              ; preds = %279
  %281 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %282 = load double, ptr %281, align 8
  %283 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %284 = load double, ptr %283, align 8
  invoke void %273(i32 noundef %275, ptr noundef %276, ptr noundef %277, ptr noundef %278, double %282, double %284)
          to label %285 unwind label %303

285:                                              ; preds = %280
  %286 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %287 unwind label %303

287:                                              ; preds = %285
  %288 = load ptr, ptr %17, align 8, !tbaa !5
  %289 = load ptr, ptr %12, align 8, !tbaa !5
  %290 = load i32, ptr %289, align 4, !tbaa !9
  %291 = load ptr, ptr %15, align 8, !tbaa !5
  %292 = load i32, ptr %291, align 4, !tbaa !9
  %293 = invoke noundef ptr @_Z9copy_backISt7complexIdEEPT_S3_S3_ii(ptr noundef %286, ptr noundef %288, i32 noundef %290, i32 noundef %292)
          to label %294 unwind label %303

294:                                              ; preds = %287
  %295 = load ptr, ptr %20, align 8, !tbaa !5
  %296 = load ptr, ptr %17, align 8, !tbaa !5
  %297 = icmp ne ptr %295, %296
  br i1 %297, label %298, label %307

298:                                              ; preds = %294
  %299 = load ptr, ptr %20, align 8, !tbaa !5
  %300 = icmp eq ptr %299, null
  br i1 %300, label %302, label %301

301:                                              ; preds = %298
  call void @_ZdaPv(ptr noundef %299) #8
  br label %302

302:                                              ; preds = %301, %298
  br label %307

303:                                              ; preds = %287, %285, %280, %279, %269
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %22, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %309

307:                                              ; preds = %302, %294
  store i32 1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %308

308:                                              ; preds = %307, %264
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %310

309:                                              ; preds = %303, %265
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %312

310:                                              ; preds = %308, %150, %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %311 = load i32, ptr %8, align 4
  ret i32 %311

312:                                              ; preds = %309
  %313 = load ptr, ptr %22, align 8
  %314 = load i32, ptr %23, align 4
  %315 = insertvalue { ptr, i32 } poison, ptr %313, 0
  %316 = insertvalue { ptr, i32 } %315, i32 %314, 1
  resume { ptr, i32 } %316
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !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::Matrix" = type { %"class.Eigen::PlainObjectBase" }
%"class.Eigen::PlainObjectBase" = type { %"class.Eigen::DenseStorage" }
%"class.Eigen::DenseStorage" = type { ptr, i64 }
%"class.std::complex" = type { { double, double } }

@_ZZ6ztpmv_E4func = external hidden local_unnamed_addr constant [16 x ptr], align 16
@.str.5 = 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 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 #1 align 2

declare i32 @xerbla_(ptr noundef, ptr 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 #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen9DenseBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @ztpmv_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef readonly %6) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca %"class.Eigen::Matrix", align 8
  %10 = alloca %"class.std::complex", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %11 = load i8, ptr %0, align 1, !tbaa !5
  switch i8 %11, label %12 [
    i8 85, label %13
    i8 117, label %13
    i8 76, label %13
    i8 108, label %13
  ]

12:                                               ; preds = %7
  store i32 1, ptr %8, align 4, !tbaa !8
  br label %.thread75

13:                                               ; preds = %7, %7, %7, %7
  %14 = load i8, ptr %1, align 1, !tbaa !5
  switch i8 %14, label %15 [
    i8 78, label %.fold.split
    i8 110, label %.fold.split
    i8 84, label %.fold.split
    i8 116, label %.fold.split
    i8 67, label %.fold.split
    i8 99, label %.fold.split
  ]

15:                                               ; preds = %13
  store i32 2, ptr %8, align 4, !tbaa !8
  br label %.thread75

.fold.split:                                      ; preds = %13, %13, %13, %13, %13, %13
  %16 = load i8, ptr %2, align 1, !tbaa !5
  switch i8 %16, label %17 [
    i8 78, label %18
    i8 110, label %18
    i8 85, label %18
    i8 117, label %18
  ]

17:                                               ; preds = %.fold.split
  store i32 3, ptr %8, align 4, !tbaa !8
  br label %.thread75

18:                                               ; preds = %.fold.split, %.fold.split, %.fold.split, %.fold.split
  %19 = load i32, ptr %3, align 4, !tbaa !8
  %20 = icmp slt i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  store i32 4, ptr %8, align 4, !tbaa !8
  br label %.thread75

22:                                               ; preds = %18
  %23 = load i32, ptr %6, align 4, !tbaa !8
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %27

25:                                               ; preds = %22
  store i32 7, ptr %8, align 4, !tbaa !8
  br label %.thread75

.thread75:                                        ; preds = %12, %17, %25, %21, %15
  %26 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %8, i32 noundef 6)
  br label %84

27:                                               ; preds = %22
  %28 = icmp eq i32 %19, 0
  br i1 %28, label %84, label %29

29:                                               ; preds = %27
  %30 = tail call noundef ptr @_Z18get_compact_vectorISt7complexIdEEPT_S3_ii(ptr noundef %5, i32 noundef %19, i32 noundef %23)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN5Eigen6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEC2IiEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen9DenseBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %32 unwind label %62

32:                                               ; preds = %29
  %33 = load i8, ptr %1, align 1, !tbaa !5
  switch i8 %33, label %34 [
    i8 78, label %38
    i8 110, label %38
    i8 84, label %.fold.split68
    i8 116, label %.fold.split69
    i8 67, label %37
  ]

34:                                               ; preds = %32
  %35 = icmp eq i8 %33, 99
  %36 = select i1 %35, i32 2, i32 255
  br label %38

37:                                               ; preds = %32
  br label %38

.fold.split68:                                    ; preds = %32
  br label %38

.fold.split69:                                    ; preds = %32
  br label %38

38:                                               ; preds = %34, %32, %32, %.fold.split69, %.fold.split68, %37
  %39 = phi i32 [ 0, %32 ], [ 0, %32 ], [ 1, %.fold.split68 ], [ 1, %.fold.split69 ], [ %36, %34 ], [ 2, %37 ]
  %40 = load i8, ptr %0, align 1, !tbaa !5
  switch i8 %40, label %41 [
    i8 85, label %45
    i8 117, label %45
    i8 76, label %44
  ]

41:                                               ; preds = %38
  %42 = icmp eq i8 %40, 108
  %43 = select i1 %42, i32 4, i32 1020
  br label %45

44:                                               ; preds = %38
  br label %45

45:                                               ; preds = %41, %38, %38, %44
  %46 = phi i32 [ 0, %38 ], [ 0, %38 ], [ %43, %41 ], [ 4, %44 ]
  %47 = or i32 %46, %39
  %48 = load i8, ptr %2, align 1, !tbaa !5
  switch i8 %48, label %49 [
    i8 78, label %53
    i8 110, label %53
    i8 85, label %52
  ]

49:                                               ; preds = %45
  %50 = icmp eq i8 %48, 117
  %51 = select i1 %50, i32 8, i32 2040
  br label %53

52:                                               ; preds = %45
  br label %53

53:                                               ; preds = %49, %45, %45, %52
  %54 = phi i32 [ 0, %45 ], [ 0, %45 ], [ %51, %49 ], [ 8, %52 ]
  %55 = or i32 %47, %54
  %56 = icmp ugt i32 %55, 15
  br i1 %56, label %82, label %57

57:                                               ; preds = %53
  %58 = zext nneg i32 %55 to i64
  %59 = getelementptr inbounds [16 x ptr], ptr @_ZZ6ztpmv_E4func, i64 0, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !10
  %61 = icmp eq ptr %60, null
  br i1 %61, label %82, label %64

62:                                               ; preds = %29
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %83

64:                                               ; preds = %57
  %65 = load i32, ptr %3, align 4, !tbaa !8
  %66 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %67 unwind label %80

67:                                               ; preds = %64
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef 1.000000e+00, double noundef 0.000000e+00)
  %68 = load double, ptr %10, align 8
  %69 = getelementptr inbounds i8, ptr %10, i64 8
  %70 = load double, ptr %69, align 8
  invoke void %60(i32 noundef %65, ptr noundef %4, ptr noundef %30, ptr noundef %66, double %68, double %70)
          to label %71 unwind label %80

71:                                               ; preds = %67
  %72 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %73 unwind label %80

73:                                               ; preds = %71
  %74 = load i32, ptr %3, align 4, !tbaa !8
  %75 = load i32, ptr %6, align 4, !tbaa !8
  %76 = invoke noundef ptr @_Z9copy_backISt7complexIdEEPT_S3_S3_ii(ptr noundef %72, ptr noundef %5, i32 noundef %74, i32 noundef %75)
          to label %77 unwind label %80

77:                                               ; preds = %73
  %.not64 = icmp eq ptr %30, %5
  %78 = icmp eq ptr %30, null
  %or.cond = or i1 %.not64, %78
  br i1 %or.cond, label %82, label %79

79:                                               ; preds = %77
  call void @_ZdaPv(ptr noundef nonnull %30) #8
  br label %82

80:                                               ; preds = %73, %71, %67, %64
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %83

82:                                               ; preds = %77, %79, %53, %57
  %.0 = phi i32 [ 0, %57 ], [ 0, %53 ], [ 1, %79 ], [ 1, %77 ]
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %84

83:                                               ; preds = %80, %62
  %.pn = phi { ptr, i32 } [ %81, %80 ], [ %63, %62 ]
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixISt7complexIdELin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  resume { ptr, i32 } %.pn

84:                                               ; preds = %27, %82, %.thread75
  %.1 = phi i32 [ %26, %.thread75 ], [ %.0, %82 ], [ 1, %27 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  ret i32 %.1
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { 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,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass