; 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 }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18get_compact_vectorIdEPT_S1_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_backIdEPT_S1_S1_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

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

35:                                               ; preds = %8
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = load i8, ptr %36, align 1, !tbaa !11
  %38 = sext i8 %37 to i32
  %39 = icmp eq i32 %38, 117
  br i1 %39, label %40, label %41

40:                                               ; preds = %35, %8
  br label %55

41:                                               ; preds = %35
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = load i8, ptr %42, align 1, !tbaa !11
  %44 = sext i8 %43 to i32
  %45 = icmp eq i32 %44, 76
  br i1 %45, label %51, label %46

46:                                               ; preds = %41
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = load i8, ptr %47, align 1, !tbaa !11
  %49 = sext i8 %48 to i32
  %50 = icmp eq i32 %49, 108
  br label %51

51:                                               ; preds = %46, %41
  %52 = phi i1 [ true, %41 ], [ %50, %46 ]
  %53 = zext i1 %52 to i64
  %54 = select i1 %52, i32 1, i32 255
  br label %55

55:                                               ; preds = %51, %40
  %56 = phi i32 [ 0, %40 ], [ %54, %51 ]
  %57 = icmp eq i32 %56, 255
  br i1 %57, label %58, label %59

58:                                               ; preds = %55
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %153

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

64:                                               ; preds = %59
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = load i8, ptr %65, align 1, !tbaa !11
  %67 = sext i8 %66 to i32
  %68 = icmp eq i32 %67, 110
  br i1 %68, label %69, label %70

69:                                               ; preds = %64, %59
  br label %97

70:                                               ; preds = %64
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = load i8, ptr %71, align 1, !tbaa !11
  %73 = sext i8 %72 to i32
  %74 = icmp eq i32 %73, 84
  br i1 %74, label %80, label %75

75:                                               ; preds = %70
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = load i8, ptr %76, align 1, !tbaa !11
  %78 = sext i8 %77 to i32
  %79 = icmp eq i32 %78, 116
  br i1 %79, label %80, label %81

80:                                               ; preds = %75, %70
  br label %95

81:                                               ; preds = %75
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = load i8, ptr %82, align 1, !tbaa !11
  %84 = sext i8 %83 to i32
  %85 = icmp eq i32 %84, 67
  br i1 %85, label %91, label %86

86:                                               ; preds = %81
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load i8, ptr %87, align 1, !tbaa !11
  %89 = sext i8 %88 to i32
  %90 = icmp eq i32 %89, 99
  br label %91

91:                                               ; preds = %86, %81
  %92 = phi i1 [ true, %81 ], [ %90, %86 ]
  %93 = zext i1 %92 to i64
  %94 = select i1 %92, i32 2, i32 255
  br label %95

95:                                               ; preds = %91, %80
  %96 = phi i32 [ 1, %80 ], [ %94, %91 ]
  br label %97

97:                                               ; preds = %95, %69
  %98 = phi i32 [ 0, %69 ], [ %96, %95 ]
  %99 = icmp eq i32 %98, 255
  br i1 %99, label %100, label %101

100:                                              ; preds = %97
  store i32 2, ptr %20, align 4, !tbaa !9
  br label %152

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

106:                                              ; preds = %101
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = load i8, ptr %107, align 1, !tbaa !11
  %109 = sext i8 %108 to i32
  %110 = icmp eq i32 %109, 110
  br i1 %110, label %111, label %112

111:                                              ; preds = %106, %101
  br label %126

112:                                              ; preds = %106
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = load i8, ptr %113, align 1, !tbaa !11
  %115 = sext i8 %114 to i32
  %116 = icmp eq i32 %115, 85
  br i1 %116, label %122, label %117

117:                                              ; preds = %112
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load i8, ptr %118, align 1, !tbaa !11
  %120 = sext i8 %119 to i32
  %121 = icmp eq i32 %120, 117
  br label %122

122:                                              ; preds = %117, %112
  %123 = phi i1 [ true, %112 ], [ %121, %117 ]
  %124 = zext i1 %123 to i64
  %125 = select i1 %123, i32 1, i32 255
  br label %126

126:                                              ; preds = %122, %111
  %127 = phi i32 [ 0, %111 ], [ %125, %122 ]
  %128 = icmp eq i32 %127, 255
  br i1 %128, label %129, label %130

129:                                              ; preds = %126
  store i32 3, ptr %20, align 4, !tbaa !9
  br label %151

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

134:                                              ; preds = %130
  store i32 4, ptr %20, align 4, !tbaa !9
  br label %150

135:                                              ; preds = %130
  %136 = load ptr, ptr %15, align 8, !tbaa !5
  %137 = load i32, ptr %136, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 1, ptr %21, align 4, !tbaa !9
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %138)
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = icmp slt i32 %137, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br i1 %141, label %142, label %143

142:                                              ; preds = %135
  store i32 6, ptr %20, align 4, !tbaa !9
  br label %149

143:                                              ; preds = %135
  %144 = load ptr, ptr %17, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !9
  %146 = icmp eq i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %143
  store i32 8, ptr %20, align 4, !tbaa !9
  br label %148

148:                                              ; preds = %147, %143
  br label %149

149:                                              ; preds = %148, %142
  br label %150

150:                                              ; preds = %149, %134
  br label %151

151:                                              ; preds = %150, %129
  br label %152

152:                                              ; preds = %151, %100
  br label %153

153:                                              ; preds = %152, %58
  %154 = load i32, ptr %20, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %158

156:                                              ; preds = %153
  %157 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %20, i32 noundef 6)
  store i32 %157, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %326

158:                                              ; preds = %153
  %159 = load ptr, ptr %13, align 8, !tbaa !5
  %160 = load i32, ptr %159, align 4, !tbaa !9
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %162, label %163

162:                                              ; preds = %158
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %326

163:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %164 = load ptr, ptr %19, align 8, !tbaa !5
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = load i32, ptr %165, align 4, !tbaa !9
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = load i32, ptr %167, align 4, !tbaa !9
  %169 = call noundef ptr @_Z18get_compact_vectorIdEPT_S1_ii(ptr noundef %164, i32 noundef %166, i32 noundef %168)
  store ptr %169, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  %170 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEC2IiEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) %170)
  %171 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %172 unwind label %277

172:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = load i8, ptr %173, align 1, !tbaa !11
  %175 = sext i8 %174 to i32
  %176 = icmp eq i32 %175, 78
  br i1 %176, label %182, label %177

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

182:                                              ; preds = %177, %172
  br label %210

183:                                              ; preds = %177
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = load i8, ptr %184, align 1, !tbaa !11
  %186 = sext i8 %185 to i32
  %187 = icmp eq i32 %186, 84
  br i1 %187, label %193, label %188

188:                                              ; preds = %183
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = load i8, ptr %189, align 1, !tbaa !11
  %191 = sext i8 %190 to i32
  %192 = icmp eq i32 %191, 116
  br i1 %192, label %193, label %194

193:                                              ; preds = %188, %183
  br label %208

194:                                              ; preds = %188
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = load i8, ptr %195, align 1, !tbaa !11
  %197 = sext i8 %196 to i32
  %198 = icmp eq i32 %197, 67
  br i1 %198, label %204, label %199

199:                                              ; preds = %194
  %200 = load ptr, ptr %11, align 8, !tbaa !5
  %201 = load i8, ptr %200, align 1, !tbaa !11
  %202 = sext i8 %201 to i32
  %203 = icmp eq i32 %202, 99
  br label %204

204:                                              ; preds = %199, %194
  %205 = phi i1 [ true, %194 ], [ %203, %199 ]
  %206 = zext i1 %205 to i64
  %207 = select i1 %205, i32 2, i32 255
  br label %208

208:                                              ; preds = %204, %193
  %209 = phi i32 [ 1, %193 ], [ %207, %204 ]
  br label %210

210:                                              ; preds = %208, %182
  %211 = phi i32 [ 0, %182 ], [ %209, %208 ]
  %212 = load ptr, ptr %10, align 8, !tbaa !5
  %213 = load i8, ptr %212, align 1, !tbaa !11
  %214 = sext i8 %213 to i32
  %215 = icmp eq i32 %214, 85
  br i1 %215, label %221, label %216

216:                                              ; preds = %210
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = load i8, ptr %217, align 1, !tbaa !11
  %219 = sext i8 %218 to i32
  %220 = icmp eq i32 %219, 117
  br i1 %220, label %221, label %222

221:                                              ; preds = %216, %210
  br label %236

222:                                              ; preds = %216
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  %224 = load i8, ptr %223, align 1, !tbaa !11
  %225 = sext i8 %224 to i32
  %226 = icmp eq i32 %225, 76
  br i1 %226, label %232, label %227

227:                                              ; preds = %222
  %228 = load ptr, ptr %10, align 8, !tbaa !5
  %229 = load i8, ptr %228, align 1, !tbaa !11
  %230 = sext i8 %229 to i32
  %231 = icmp eq i32 %230, 108
  br label %232

232:                                              ; preds = %227, %222
  %233 = phi i1 [ true, %222 ], [ %231, %227 ]
  %234 = zext i1 %233 to i64
  %235 = select i1 %233, i32 1, i32 255
  br label %236

236:                                              ; preds = %232, %221
  %237 = phi i32 [ 0, %221 ], [ %235, %232 ]
  %238 = shl i32 %237, 2
  %239 = or i32 %211, %238
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  %241 = load i8, ptr %240, align 1, !tbaa !11
  %242 = sext i8 %241 to i32
  %243 = icmp eq i32 %242, 78
  br i1 %243, label %249, label %244

244:                                              ; preds = %236
  %245 = load ptr, ptr %12, align 8, !tbaa !5
  %246 = load i8, ptr %245, align 1, !tbaa !11
  %247 = sext i8 %246 to i32
  %248 = icmp eq i32 %247, 110
  br i1 %248, label %249, label %250

249:                                              ; preds = %244, %236
  br label %264

250:                                              ; preds = %244
  %251 = load ptr, ptr %12, align 8, !tbaa !5
  %252 = load i8, ptr %251, align 1, !tbaa !11
  %253 = sext i8 %252 to i32
  %254 = icmp eq i32 %253, 85
  br i1 %254, label %260, label %255

255:                                              ; preds = %250
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  %257 = load i8, ptr %256, align 1, !tbaa !11
  %258 = sext i8 %257 to i32
  %259 = icmp eq i32 %258, 117
  br label %260

260:                                              ; preds = %255, %250
  %261 = phi i1 [ true, %250 ], [ %259, %255 ]
  %262 = zext i1 %261 to i64
  %263 = select i1 %261, i32 1, i32 255
  br label %264

264:                                              ; preds = %260, %249
  %265 = phi i32 [ 0, %249 ], [ %263, %260 ]
  %266 = shl i32 %265, 3
  %267 = or i32 %239, %266
  store i32 %267, ptr %27, align 4, !tbaa !9
  %268 = load i32, ptr %27, align 4, !tbaa !9
  %269 = icmp sge i32 %268, 16
  br i1 %269, label %276, label %270

270:                                              ; preds = %264
  %271 = load i32, ptr %27, align 4, !tbaa !9
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [16 x ptr], ptr @_ZZ6dtrmv_E4func, i64 0, i64 %272
  %274 = load ptr, ptr %273, align 8, !tbaa !5
  %275 = icmp eq ptr %274, null
  br i1 %275, label %276, label %281

276:                                              ; preds = %270, %264
  store i32 0, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %323

277:                                              ; preds = %163
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %25, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %26, align 4
  br label %325

281:                                              ; preds = %270
  %282 = load i32, ptr %27, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [16 x ptr], ptr @_ZZ6dtrmv_E4func, i64 0, i64 %283
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  %286 = load ptr, ptr %13, align 8, !tbaa !5
  %287 = load i32, ptr %286, align 4, !tbaa !9
  %288 = load ptr, ptr %13, align 8, !tbaa !5
  %289 = load i32, ptr %288, align 4, !tbaa !9
  %290 = load ptr, ptr %18, align 8, !tbaa !5
  %291 = load ptr, ptr %15, align 8, !tbaa !5
  %292 = load i32, ptr %291, align 4, !tbaa !9
  %293 = load ptr, ptr %23, align 8, !tbaa !5
  %294 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %295 unwind label %314

295:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store double 1.000000e+00, ptr %28, align 8, !tbaa !12
  invoke void %285(i32 noundef %287, i32 noundef %289, ptr noundef %290, i32 noundef %292, ptr noundef %293, i32 noundef 1, ptr noundef %294, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %296 unwind label %318

296:                                              ; preds = %295
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  %297 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %298 unwind label %314

298:                                              ; preds = %296
  %299 = load ptr, ptr %19, align 8, !tbaa !5
  %300 = load ptr, ptr %13, align 8, !tbaa !5
  %301 = load i32, ptr %300, align 4, !tbaa !9
  %302 = load ptr, ptr %17, align 8, !tbaa !5
  %303 = load i32, ptr %302, align 4, !tbaa !9
  %304 = invoke noundef ptr @_Z9copy_backIdEPT_S1_S1_ii(ptr noundef %297, ptr noundef %299, i32 noundef %301, i32 noundef %303)
          to label %305 unwind label %314

305:                                              ; preds = %298
  %306 = load ptr, ptr %23, align 8, !tbaa !5
  %307 = load ptr, ptr %19, align 8, !tbaa !5
  %308 = icmp ne ptr %306, %307
  br i1 %308, label %309, label %322

309:                                              ; preds = %305
  %310 = load ptr, ptr %23, align 8, !tbaa !5
  %311 = icmp eq ptr %310, null
  br i1 %311, label %313, label %312

312:                                              ; preds = %309
  call void @_ZdaPv(ptr noundef %310) #7
  br label %313

313:                                              ; preds = %312, %309
  br label %322

314:                                              ; preds = %298, %296, %281
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %25, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %26, align 4
  br label %324

318:                                              ; preds = %295
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %25, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %324

322:                                              ; preds = %313, %305
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %323

323:                                              ; preds = %322, %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %326

324:                                              ; preds = %318, %314
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %325

325:                                              ; preds = %324, %277
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %328

326:                                              ; preds = %323, %162, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %327 = load i32, ptr %9, align 4
  ret i32 %327

328:                                              ; preds = %325
  %329 = load ptr, ptr %25, align 8
  %330 = load i32, ptr %26, align 4
  %331 = insertvalue { ptr, i32 } poison, ptr %329, 0
  %332 = insertvalue { ptr, i32 } %331, i32 %330, 1
  resume { ptr, i32 } %332
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18get_compact_vectorIdEPT_S1_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_backIdEPT_S1_S1_ii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

14:                                               ; preds = %8
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %.thread82

15:                                               ; preds = %8, %8, %8, %8
  %16 = load i8, ptr %1, align 1, !tbaa !5
  switch i8 %16, label %17 [
    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
  ]

17:                                               ; preds = %15
  store i32 2, ptr %9, align 4, !tbaa !8
  br label %.thread82

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

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

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

23:                                               ; preds = %20
  store i32 4, ptr %9, align 4, !tbaa !8
  br label %.thread82

24:                                               ; preds = %20
  %25 = load i32, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store i32 1, ptr %10, align 4, !tbaa !8
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %27 = load i32, ptr %26, align 4, !tbaa !8
  %28 = icmp slt i32 %25, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br i1 %28, label %29, label %30

29:                                               ; preds = %24
  store i32 6, ptr %9, align 4, !tbaa !8
  br label %.thread82

30:                                               ; preds = %24
  %31 = load i32, ptr %7, align 4, !tbaa !8
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  store i32 8, ptr %9, align 4, !tbaa !8
  br label %.thread82

.thread82:                                        ; preds = %14, %19, %29, %33, %23, %17
  %34 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %9, i32 noundef 6)
  br label %93

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

38:                                               ; preds = %35
  %39 = call noundef ptr @_Z18get_compact_vectorIdEPT_S1_ii(ptr noundef %6, i32 noundef %36, i32 noundef %31)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEC2IiEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %40 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN5Eigen9DenseBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %41 unwind label %71

41:                                               ; preds = %38
  %42 = load i8, ptr %1, align 1, !tbaa !5
  switch i8 %42, label %43 [
    i8 78, label %47
    i8 110, label %47
    i8 84, label %.fold.split75
    i8 116, label %.fold.split76
    i8 67, label %46
  ]

43:                                               ; preds = %41
  %44 = icmp eq i8 %42, 99
  %45 = select i1 %44, i32 2, i32 255
  br label %47

46:                                               ; preds = %41
  br label %47

.fold.split75:                                    ; preds = %41
  br label %47

.fold.split76:                                    ; preds = %41
  br label %47

47:                                               ; preds = %43, %41, %41, %.fold.split76, %.fold.split75, %46
  %48 = phi i32 [ 0, %41 ], [ 0, %41 ], [ 1, %.fold.split75 ], [ 1, %.fold.split76 ], [ %45, %43 ], [ 2, %46 ]
  %49 = load i8, ptr %0, align 1, !tbaa !5
  switch i8 %49, label %50 [
    i8 85, label %54
    i8 117, label %54
    i8 76, label %53
  ]

50:                                               ; preds = %47
  %51 = icmp eq i8 %49, 108
  %52 = select i1 %51, i32 4, i32 1020
  br label %54

53:                                               ; preds = %47
  br label %54

54:                                               ; preds = %50, %47, %47, %53
  %55 = phi i32 [ 0, %47 ], [ 0, %47 ], [ %52, %50 ], [ 4, %53 ]
  %56 = or i32 %55, %48
  %57 = load i8, ptr %2, align 1, !tbaa !5
  switch i8 %57, label %58 [
    i8 78, label %62
    i8 110, label %62
    i8 85, label %61
  ]

58:                                               ; preds = %54
  %59 = icmp eq i8 %57, 117
  %60 = select i1 %59, i32 8, i32 2040
  br label %62

61:                                               ; preds = %54
  br label %62

62:                                               ; preds = %58, %54, %54, %61
  %63 = phi i32 [ 0, %54 ], [ 0, %54 ], [ %60, %58 ], [ 8, %61 ]
  %64 = or i32 %56, %63
  %65 = icmp ugt i32 %64, 15
  br i1 %65, label %91, label %66

66:                                               ; preds = %62
  %67 = zext nneg i32 %64 to i64
  %68 = getelementptr inbounds [16 x ptr], ptr @_ZZ6dtrmv_E4func, i64 0, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !10
  %70 = icmp eq ptr %69, null
  br i1 %70, label %91, label %73

71:                                               ; preds = %38
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %92

73:                                               ; preds = %66
  %74 = load i32, ptr %3, align 4, !tbaa !8
  %75 = load i32, ptr %5, align 4, !tbaa !8
  %76 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %77 unwind label %87

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store double 1.000000e+00, ptr %12, align 8, !tbaa !12
  invoke void %69(i32 noundef %74, i32 noundef %74, ptr noundef %4, i32 noundef %75, ptr noundef %39, i32 noundef 1, ptr noundef %76, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %78 unwind label %89

78:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  %79 = invoke noundef ptr @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %80 unwind label %87

80:                                               ; preds = %78
  %81 = load i32, ptr %3, align 4, !tbaa !8
  %82 = load i32, ptr %7, align 4, !tbaa !8
  %83 = invoke noundef ptr @_Z9copy_backIdEPT_S1_S1_ii(ptr noundef %79, ptr noundef %6, i32 noundef %81, i32 noundef %82)
          to label %84 unwind label %87

84:                                               ; preds = %80
  %.not71 = icmp eq ptr %39, %6
  %85 = icmp eq ptr %39, null
  %or.cond = or i1 %.not71, %85
  br i1 %or.cond, label %91, label %86

86:                                               ; preds = %84
  call void @_ZdaPv(ptr noundef nonnull %39) #7
  br label %91

87:                                               ; preds = %80, %78, %73
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %92

89:                                               ; preds = %77
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %92

91:                                               ; preds = %84, %86, %62, %66
  %.0 = phi i32 [ 0, %66 ], [ 0, %62 ], [ 1, %86 ], [ 1, %84 ]
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %93

92:                                               ; preds = %87, %89, %71
  %.pn.pn = phi { ptr, i32 } [ %72, %71 ], [ %88, %87 ], [ %90, %89 ]
  call void @_ZN5Eigen15PlainObjectBaseINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  resume { ptr, i32 } %.pn.pn

93:                                               ; preds = %35, %91, %.thread82
  %.1 = phi i32 [ %34, %.thread82 ], [ %.0, %91 ], [ 1, %35 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  ret i32 %.1
}

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

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

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


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