; LLVM IR from o0o0o0o0o0o0o/image-processing-from-scratch :: ImageMatting/Eigen/blas (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 }

@_ZZ6dtpmv_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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @dtpmv_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2 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
  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) #6
  %25 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %25, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %26 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %26, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = sext i8 %28 to i32
  %30 = icmp eq i32 %29, 85
  br i1 %30, label %36, label %31

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

36:                                               ; preds = %31, %7
  br label %51

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

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

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

51:                                               ; preds = %47, %36
  %52 = phi i32 [ 0, %36 ], [ %50, %47 ]
  %53 = icmp eq i32 %52, 255
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %140

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

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

65:                                               ; preds = %60, %55
  br label %93

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

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

76:                                               ; preds = %71, %66
  br label %91

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

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

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

91:                                               ; preds = %87, %76
  %92 = phi i32 [ 1, %76 ], [ %90, %87 ]
  br label %93

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

96:                                               ; preds = %93
  store i32 2, ptr %18, align 4, !tbaa !9
  br label %139

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

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

107:                                              ; preds = %102, %97
  br label %122

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

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

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

122:                                              ; preds = %118, %107
  %123 = phi i32 [ 0, %107 ], [ %121, %118 ]
  %124 = icmp eq i32 %123, 255
  br i1 %124, label %125, label %126

125:                                              ; preds = %122
  store i32 3, ptr %18, align 4, !tbaa !9
  br label %138

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

130:                                              ; preds = %126
  store i32 4, ptr %18, align 4, !tbaa !9
  br label %137

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

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

136:                                              ; preds = %135, %131
  br label %137

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

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

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

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

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

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

149:                                              ; preds = %145
  store i32 1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %304

150:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = load i32, ptr %152, align 4, !tbaa !9
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = call noundef ptr @_Z18get_compact_vectorIdEPT_S1_ii(ptr noundef %151, i32 noundef %153, i32 noundef %155)
  store ptr %156, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEC2IiEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(4) %157)
  %158 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %159 unwind label %264

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

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

169:                                              ; preds = %164, %159
  br label %197

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

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

180:                                              ; preds = %175, %170
  br label %195

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

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

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

195:                                              ; preds = %191, %180
  %196 = phi i32 [ 1, %180 ], [ %194, %191 ]
  br label %197

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

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

208:                                              ; preds = %203, %197
  br label %223

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

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

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

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

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

236:                                              ; preds = %231, %223
  br label %251

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

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

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

251:                                              ; preds = %247, %236
  %252 = phi i32 [ 0, %236 ], [ %250, %247 ]
  %253 = shl i32 %252, 3
  %254 = or i32 %226, %253
  store i32 %254, ptr %24, align 4, !tbaa !9
  %255 = load i32, ptr %24, align 4, !tbaa !9
  %256 = icmp sge i32 %255, 16
  br i1 %256, label %263, label %257

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

263:                                              ; preds = %257, %251
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %302

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

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

278:                                              ; preds = %268
  invoke void %272(i32 noundef %274, ptr noundef %275, ptr noundef %276, ptr noundef %277, double noundef 1.000000e+00)
          to label %279 unwind label %297

279:                                              ; preds = %278
  %280 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %281 unwind label %297

281:                                              ; preds = %279
  %282 = load ptr, ptr %17, align 8, !tbaa !5
  %283 = load ptr, ptr %12, align 8, !tbaa !5
  %284 = load i32, ptr %283, align 4, !tbaa !9
  %285 = load ptr, ptr %15, align 8, !tbaa !5
  %286 = load i32, ptr %285, align 4, !tbaa !9
  %287 = invoke noundef ptr @_Z9copy_backIdEPT_S1_S1_ii(ptr noundef %280, ptr noundef %282, i32 noundef %284, i32 noundef %286)
          to label %288 unwind label %297

288:                                              ; preds = %281
  %289 = load ptr, ptr %20, align 8, !tbaa !5
  %290 = load ptr, ptr %17, align 8, !tbaa !5
  %291 = icmp ne ptr %289, %290
  br i1 %291, label %292, label %301

292:                                              ; preds = %288
  %293 = load ptr, ptr %20, align 8, !tbaa !5
  %294 = icmp eq ptr %293, null
  br i1 %294, label %296, label %295

295:                                              ; preds = %292
  call void @_ZdaPv(ptr noundef %293) #7
  br label %296

296:                                              ; preds = %295, %292
  br label %301

297:                                              ; preds = %281, %279, %278, %268
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %22, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %303

301:                                              ; preds = %296, %288
  store i32 1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %302

302:                                              ; preds = %301, %263
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %304

303:                                              ; preds = %297, %264
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %306

304:                                              ; preds = %302, %149, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %305 = load i32, ptr %8, align 4
  ret i32 %305

306:                                              ; preds = %303
  %307 = load ptr, ptr %22, align 8
  %308 = load i32, ptr %23, align 4
  %309 = insertvalue { ptr, i32 } poison, ptr %307, 0
  %310 = insertvalue { ptr, i32 } %309, i32 %308, 1
  resume { ptr, i32 } %310
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 = { 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 #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 = { nounwind }
attributes #7 = { 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 }

@_ZZ6dtpmv_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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @dtpmv_(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 #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca %"class.Eigen::Matrix", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %10 = load i8, ptr %0, align 1, !tbaa !5
  switch i8 %10, label %11 [
    i8 85, label %12
    i8 117, label %12
    i8 76, label %12
    i8 108, label %12
  ]

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

12:                                               ; preds = %7, %7, %7, %7
  %13 = load i8, ptr %1, align 1, !tbaa !5
  switch i8 %13, label %14 [
    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
  ]

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

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

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

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

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

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

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

.thread75:                                        ; preds = %11, %16, %24, %20, %14
  %25 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %8, i32 noundef 6)
  br label %80

26:                                               ; preds = %21
  %27 = icmp eq i32 %18, 0
  br i1 %27, label %80, label %28

28:                                               ; preds = %26
  %29 = tail call noundef ptr @_Z18get_compact_vectorIdEPT_S1_ii(ptr noundef %5, i32 noundef %18, i32 noundef %22)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEC2IiEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %31 unwind label %61

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

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

36:                                               ; preds = %31
  br label %37

.fold.split68:                                    ; preds = %31
  br label %37

.fold.split69:                                    ; preds = %31
  br label %37

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

40:                                               ; preds = %37
  %41 = icmp eq i8 %39, 108
  %42 = select i1 %41, i32 4, i32 1020
  br label %44

43:                                               ; preds = %37
  br label %44

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

48:                                               ; preds = %44
  %49 = icmp eq i8 %47, 117
  %50 = select i1 %49, i32 8, i32 2040
  br label %52

51:                                               ; preds = %44
  br label %52

52:                                               ; preds = %48, %44, %44, %51
  %53 = phi i32 [ 0, %44 ], [ 0, %44 ], [ %50, %48 ], [ 8, %51 ]
  %54 = or i32 %46, %53
  %55 = icmp ugt i32 %54, 15
  br i1 %55, label %78, label %56

56:                                               ; preds = %52
  %57 = zext nneg i32 %54 to i64
  %58 = getelementptr inbounds [16 x ptr], ptr @_ZZ6dtpmv_E4func, i64 0, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !10
  %60 = icmp eq ptr %59, null
  br i1 %60, label %78, label %63

61:                                               ; preds = %28
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %79

63:                                               ; preds = %56
  %64 = load i32, ptr %3, align 4, !tbaa !8
  %65 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %66 unwind label %76

66:                                               ; preds = %63
  invoke void %59(i32 noundef %64, ptr noundef %4, ptr noundef %29, ptr noundef %65, double noundef 1.000000e+00)
          to label %67 unwind label %76

67:                                               ; preds = %66
  %68 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %69 unwind label %76

69:                                               ; preds = %67
  %70 = load i32, ptr %3, align 4, !tbaa !8
  %71 = load i32, ptr %6, align 4, !tbaa !8
  %72 = invoke noundef ptr @_Z9copy_backIdEPT_S1_S1_ii(ptr noundef %68, ptr noundef %5, i32 noundef %70, i32 noundef %71)
          to label %73 unwind label %76

73:                                               ; preds = %69
  %.not64 = icmp eq ptr %29, %5
  %74 = icmp eq ptr %29, null
  %or.cond = or i1 %.not64, %74
  br i1 %or.cond, label %78, label %75

75:                                               ; preds = %73
  call void @_ZdaPv(ptr noundef nonnull %29) #7
  br label %78

76:                                               ; preds = %69, %67, %66, %63
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %79

78:                                               ; preds = %73, %75, %52, %56
  %.0 = phi i32 [ 0, %56 ], [ 0, %52 ], [ 1, %75 ], [ 1, %73 ]
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %80

79:                                               ; preds = %76, %61
  %.pn = phi { ptr, i32 } [ %77, %76 ], [ %62, %61 ]
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  resume { ptr, i32 } %.pn

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

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