; 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::Map.9" = type { %"class.Eigen::MapBase.base.19", [7 x i8] }
%"class.Eigen::MapBase.base.19" = type { %"class.Eigen::MapBase.base.18" }
%"class.Eigen::MapBase.base.18" = type <{ ptr, %"class.Eigen::internal::variable_if_dynamic", i8 }>
%"class.Eigen::internal::variable_if_dynamic" = type { i64 }

@_ZZ6dgemv_E4func = external hidden constant [4 x ptr], align 16
@.str = 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: mustprogress uwtable
declare dso_local void @_Z11make_vectorIdEN5Eigen3MapINS0_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS0_6StrideILi0ELi0EEEEEPS3_i(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Map.9") align 8, ptr noundef, i32 noundef) #1

; 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEEmLERKd(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

50:                                               ; preds = %11
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = load i8, ptr %51, align 1, !tbaa !13
  %53 = sext i8 %52 to i32
  %54 = icmp eq i32 %53, 110
  br i1 %54, label %55, label %56

55:                                               ; preds = %50, %11
  br label %83

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

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

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

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

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

77:                                               ; preds = %72, %67
  %78 = phi i1 [ true, %67 ], [ %76, %72 ]
  %79 = zext i1 %78 to i64
  %80 = select i1 %78, i32 2, i32 255
  br label %81

81:                                               ; preds = %77, %66
  %82 = phi i32 [ 1, %66 ], [ %80, %77 ]
  br label %83

83:                                               ; preds = %81, %55
  %84 = phi i32 [ 0, %55 ], [ %82, %81 ]
  %85 = icmp eq i32 %84, 255
  br i1 %85, label %86, label %87

86:                                               ; preds = %83
  store i32 1, ptr %29, align 4, !tbaa !11
  br label %120

87:                                               ; preds = %83
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !11
  %90 = icmp slt i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %87
  store i32 2, ptr %29, align 4, !tbaa !11
  br label %119

92:                                               ; preds = %87
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !11
  %95 = icmp slt i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %92
  store i32 3, ptr %29, align 4, !tbaa !11
  br label %118

97:                                               ; preds = %92
  %98 = load ptr, ptr %18, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 1, ptr %30, align 4, !tbaa !11
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %100)
  %102 = load i32, ptr %101, align 4, !tbaa !11
  %103 = icmp slt i32 %99, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br i1 %103, label %104, label %105

104:                                              ; preds = %97
  store i32 6, ptr %29, align 4, !tbaa !11
  br label %117

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

109:                                              ; preds = %105
  store i32 8, ptr %29, align 4, !tbaa !11
  br label %116

110:                                              ; preds = %105
  %111 = load ptr, ptr %23, align 8, !tbaa !5
  %112 = load i32, ptr %111, align 4, !tbaa !11
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %110
  store i32 11, ptr %29, align 4, !tbaa !11
  br label %115

115:                                              ; preds = %114, %110
  br label %116

116:                                              ; preds = %115, %109
  br label %117

117:                                              ; preds = %116, %104
  br label %118

118:                                              ; preds = %117, %96
  br label %119

119:                                              ; preds = %118, %91
  br label %120

120:                                              ; preds = %119, %86
  %121 = load i32, ptr %29, align 4, !tbaa !11
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %120
  %124 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %29, i32 noundef 6)
  store i32 %124, ptr %12, align 4
  store i32 1, ptr %31, align 4
  br label %259

125:                                              ; preds = %120
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !11
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %139, label %129

129:                                              ; preds = %125
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !11
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %139, label %133

133:                                              ; preds = %129
  %134 = load double, ptr %27, align 8, !tbaa !9
  %135 = fcmp oeq double %134, 0.000000e+00
  br i1 %135, label %136, label %140

136:                                              ; preds = %133
  %137 = load double, ptr %28, align 8, !tbaa !9
  %138 = fcmp oeq double %137, 1.000000e+00
  br i1 %138, label %139, label %140

139:                                              ; preds = %136, %129, %125
  store i32 0, ptr %12, align 4
  store i32 1, ptr %31, align 4
  br label %259

140:                                              ; preds = %136, %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !11
  store i32 %142, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = load i32, ptr %143, align 4, !tbaa !11
  store i32 %144, ptr %33, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = load i8, ptr %145, align 1, !tbaa !13
  %147 = sext i8 %146 to i32
  %148 = icmp eq i32 %147, 78
  br i1 %148, label %154, label %149

149:                                              ; preds = %140
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load i8, ptr %150, align 1, !tbaa !13
  %152 = sext i8 %151 to i32
  %153 = icmp eq i32 %152, 110
  br i1 %153, label %154, label %155

154:                                              ; preds = %149, %140
  br label %182

155:                                              ; preds = %149
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = load i8, ptr %156, align 1, !tbaa !13
  %158 = sext i8 %157 to i32
  %159 = icmp eq i32 %158, 84
  br i1 %159, label %165, label %160

160:                                              ; preds = %155
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = load i8, ptr %161, align 1, !tbaa !13
  %163 = sext i8 %162 to i32
  %164 = icmp eq i32 %163, 116
  br i1 %164, label %165, label %166

165:                                              ; preds = %160, %155
  br label %180

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

171:                                              ; preds = %166
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = load i8, ptr %172, align 1, !tbaa !13
  %174 = sext i8 %173 to i32
  %175 = icmp eq i32 %174, 99
  br label %176

176:                                              ; preds = %171, %166
  %177 = phi i1 [ true, %166 ], [ %175, %171 ]
  %178 = zext i1 %177 to i64
  %179 = select i1 %177, i32 2, i32 255
  br label %180

180:                                              ; preds = %176, %165
  %181 = phi i32 [ 1, %165 ], [ %179, %176 ]
  br label %182

182:                                              ; preds = %180, %154
  %183 = phi i32 [ 0, %154 ], [ %181, %180 ]
  store i32 %183, ptr %34, align 4, !tbaa !11
  %184 = load i32, ptr %34, align 4, !tbaa !11
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %182
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %33) #6
  br label %187

187:                                              ; preds = %186, %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %188 = load ptr, ptr %25, align 8, !tbaa !5
  %189 = load i32, ptr %33, align 4, !tbaa !11
  %190 = load ptr, ptr %20, align 8, !tbaa !5
  %191 = load i32, ptr %190, align 4, !tbaa !11
  %192 = call noundef ptr @_Z18get_compact_vectorIKdEPT_S2_ii(ptr noundef %188, i32 noundef %189, i32 noundef %191)
  store ptr %192, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %193 = load ptr, ptr %26, align 8, !tbaa !5
  %194 = load i32, ptr %32, align 4, !tbaa !11
  %195 = load ptr, ptr %23, align 8, !tbaa !5
  %196 = load i32, ptr %195, align 4, !tbaa !11
  %197 = call noundef ptr @_Z18get_compact_vectorIdEPT_S1_ii(ptr noundef %193, i32 noundef %194, i32 noundef %196)
  store ptr %197, ptr %36, align 8, !tbaa !5
  %198 = load double, ptr %28, align 8, !tbaa !9
  %199 = fcmp une double %198, 1.000000e+00
  br i1 %199, label %200, label %212

200:                                              ; preds = %187
  %201 = load double, ptr %28, align 8, !tbaa !9
  %202 = fcmp oeq double %201, 0.000000e+00
  br i1 %202, label %203, label %207

203:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #6
  %204 = load ptr, ptr %36, align 8, !tbaa !5
  %205 = load i32, ptr %32, align 4, !tbaa !11
  call void @_Z11make_vectorIdEN5Eigen3MapINS0_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS0_6StrideILi0ELi0EEEEEPS3_i(ptr dead_on_unwind writable sret(%"class.Eigen::Map.9") align 8 %37, ptr noundef %204, i32 noundef %205)
  %206 = call noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %37)
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #6
  br label %211

207:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #6
  %208 = load ptr, ptr %36, align 8, !tbaa !5
  %209 = load i32, ptr %32, align 4, !tbaa !11
  call void @_Z11make_vectorIdEN5Eigen3MapINS0_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS0_6StrideILi0ELi0EEEEEPS3_i(ptr dead_on_unwind writable sret(%"class.Eigen::Map.9") align 8 %38, ptr noundef %208, i32 noundef %209)
  %210 = call noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEEmLERKd(ptr noundef nonnull align 1 dereferenceable(1) %38, ptr noundef nonnull align 8 dereferenceable(8) %28)
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #6
  br label %211

211:                                              ; preds = %207, %203
  br label %212

212:                                              ; preds = %211, %187
  %213 = load i32, ptr %34, align 4, !tbaa !11
  %214 = icmp sge i32 %213, 4
  br i1 %214, label %221, label %215

215:                                              ; preds = %212
  %216 = load i32, ptr %34, align 4, !tbaa !11
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [4 x ptr], ptr @_ZZ6dgemv_E4func, i64 0, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = icmp eq ptr %219, null
  br i1 %220, label %221, label %222

221:                                              ; preds = %215, %212
  store i32 0, ptr %12, align 4
  store i32 1, ptr %31, align 4
  br label %258

222:                                              ; preds = %215
  %223 = load i32, ptr %34, align 4, !tbaa !11
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [4 x ptr], ptr @_ZZ6dgemv_E4func, i64 0, i64 %224
  %226 = load ptr, ptr %225, align 8, !tbaa !5
  %227 = load i32, ptr %32, align 4, !tbaa !11
  %228 = load i32, ptr %33, align 4, !tbaa !11
  %229 = load ptr, ptr %24, align 8, !tbaa !5
  %230 = load ptr, ptr %18, align 8, !tbaa !5
  %231 = load i32, ptr %230, align 4, !tbaa !11
  %232 = load ptr, ptr %35, align 8, !tbaa !5
  %233 = load ptr, ptr %36, align 8, !tbaa !5
  %234 = load double, ptr %27, align 8, !tbaa !9
  call void %226(i32 noundef %227, i32 noundef %228, ptr noundef %229, i32 noundef %231, ptr noundef %232, i32 noundef 1, ptr noundef %233, i32 noundef 1, double noundef %234)
  %235 = load ptr, ptr %35, align 8, !tbaa !5
  %236 = load ptr, ptr %25, align 8, !tbaa !5
  %237 = icmp ne ptr %235, %236
  br i1 %237, label %238, label %243

238:                                              ; preds = %222
  %239 = load ptr, ptr %35, align 8, !tbaa !5
  %240 = icmp eq ptr %239, null
  br i1 %240, label %242, label %241

241:                                              ; preds = %238
  call void @_ZdaPv(ptr noundef %239) #7
  br label %242

242:                                              ; preds = %241, %238
  br label %243

243:                                              ; preds = %242, %222
  %244 = load ptr, ptr %36, align 8, !tbaa !5
  %245 = load ptr, ptr %26, align 8, !tbaa !5
  %246 = icmp ne ptr %244, %245
  br i1 %246, label %247, label %257

247:                                              ; preds = %243
  %248 = load ptr, ptr %36, align 8, !tbaa !5
  %249 = load ptr, ptr %26, align 8, !tbaa !5
  %250 = load i32, ptr %32, align 4, !tbaa !11
  %251 = load ptr, ptr %23, align 8, !tbaa !5
  %252 = load i32, ptr %251, align 4, !tbaa !11
  %253 = call noundef ptr @_Z9copy_backIdEPT_S1_S1_ii(ptr noundef %248, ptr noundef %249, i32 noundef %250, i32 noundef %252)
  %254 = icmp eq ptr %253, null
  br i1 %254, label %256, label %255

255:                                              ; preds = %247
  call void @_ZdaPv(ptr noundef %253) #7
  br label %256

256:                                              ; preds = %255, %247
  br label %257

257:                                              ; preds = %256, %243
  store i32 1, ptr %12, align 4
  store i32 1, ptr %31, align 4
  br label %258

258:                                              ; preds = %257, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %259

259:                                              ; preds = %258, %139, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %260 = load i32, ptr %12, align 4
  ret i32 %260
}

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { "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 = { 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 #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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!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::Map.9" = type { %"class.Eigen::MapBase.base.19", [7 x i8] }
%"class.Eigen::MapBase.base.19" = type { %"class.Eigen::MapBase.base.18" }
%"class.Eigen::MapBase.base.18" = type <{ ptr, %"class.Eigen::internal::variable_if_dynamic", i8 }>
%"class.Eigen::internal::variable_if_dynamic" = type { i64 }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11make_vectorIdEN5Eigen3MapINS0_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS0_6StrideILi0ELi0EEEEEPS3_i(ptr dead_on_unwind noalias writable sret(%"class.Eigen::Map.9") align 8, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @dgemv_(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr noundef %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readonly %8, ptr noundef %9, ptr nocapture noundef readonly %10) local_unnamed_addr #1 {
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.Eigen::Map.9", align 8
  %18 = alloca %"class.Eigen::Map.9", align 8
  %19 = load double, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %20 = load double, ptr %8, align 8, !tbaa !5
  store double %20, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %21 = load i8, ptr %0, align 1, !tbaa !9
  switch i8 %21, label %22 [
    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
  ]

22:                                               ; preds = %11
  store i32 1, ptr %13, align 4, !tbaa !10
  br label %.thread69

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

25:                                               ; preds = %.fold.split
  store i32 2, ptr %13, align 4, !tbaa !10
  br label %.thread69

26:                                               ; preds = %.fold.split
  %27 = load i32, ptr %2, align 4, !tbaa !10
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  store i32 3, ptr %13, align 4, !tbaa !10
  br label %.thread69

30:                                               ; preds = %26
  %31 = load i32, ptr %5, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store i32 1, ptr %14, align 4, !tbaa !10
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %33 = load i32, ptr %32, align 4, !tbaa !10
  %34 = icmp slt i32 %31, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br i1 %34, label %35, label %36

35:                                               ; preds = %30
  store i32 6, ptr %13, align 4, !tbaa !10
  br label %.thread69

36:                                               ; preds = %30
  %37 = load i32, ptr %7, align 4, !tbaa !10
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %40

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

40:                                               ; preds = %36
  %41 = load i32, ptr %10, align 4, !tbaa !10
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %40
  store i32 11, ptr %13, align 4, !tbaa !10
  br label %.thread69

.thread69:                                        ; preds = %22, %29, %39, %43, %35, %25
  %44 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %13, i32 noundef 6)
  br label %98

45:                                               ; preds = %40
  %46 = load i32, ptr %1, align 4, !tbaa !10
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %98, label %48

48:                                               ; preds = %45
  %49 = load i32, ptr %2, align 4, !tbaa !10
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %98, label %51

51:                                               ; preds = %48
  %52 = fcmp oeq double %19, 0.000000e+00
  %53 = fcmp oeq double %20, 1.000000e+00
  %or.cond = select i1 %52, i1 %53, i1 false
  br i1 %or.cond, label %98, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 %46, ptr %15, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store i32 %49, ptr %16, align 4, !tbaa !10
  %55 = load i8, ptr %0, align 1, !tbaa !9
  switch i8 %55, label %56 [
    i8 78, label %60
    i8 110, label %60
    i8 84, label %.fold.split65
    i8 116, label %.fold.split66
    i8 67, label %59
  ]

56:                                               ; preds = %54
  %57 = icmp eq i8 %55, 99
  %58 = select i1 %57, i32 2, i32 255
  br label %59

.fold.split65:                                    ; preds = %54
  br label %59

.fold.split66:                                    ; preds = %54
  br label %59

59:                                               ; preds = %54, %.fold.split65, %.fold.split66, %56
  %.ph = phi i32 [ %58, %56 ], [ 1, %.fold.split66 ], [ 1, %.fold.split65 ], [ 2, %54 ]
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16) #6
  %.pre = load i32, ptr %16, align 4, !tbaa !10
  %.pre74 = load i32, ptr %7, align 4, !tbaa !10
  br label %60

60:                                               ; preds = %54, %54, %59
  %61 = phi i32 [ %.pre74, %59 ], [ %37, %54 ], [ %37, %54 ]
  %62 = phi i32 [ %.pre, %59 ], [ %49, %54 ], [ %49, %54 ]
  %63 = phi i32 [ %.ph, %59 ], [ 0, %54 ], [ 0, %54 ]
  %64 = call noundef ptr @_Z18get_compact_vectorIKdEPT_S2_ii(ptr noundef %6, i32 noundef %62, i32 noundef %61)
  %65 = load i32, ptr %15, align 4, !tbaa !10
  %66 = load i32, ptr %10, align 4, !tbaa !10
  %67 = call noundef ptr @_Z18get_compact_vectorIdEPT_S1_ii(ptr noundef %9, i32 noundef %65, i32 noundef %66)
  %68 = fcmp une double %20, 1.000000e+00
  br i1 %68, label %69, label %77

69:                                               ; preds = %60
  %70 = fcmp oeq double %20, 0.000000e+00
  br i1 %70, label %71, label %74

71:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #6
  %72 = load i32, ptr %15, align 4, !tbaa !10
  call void @_Z11make_vectorIdEN5Eigen3MapINS0_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS0_6StrideILi0ELi0EEEEEPS3_i(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.9") align 8 %17, ptr noundef %67, i32 noundef %72)
  %73 = call noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEE7setZeroEv(ptr noundef nonnull align 1 dereferenceable(1) %17)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #6
  br label %77

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #6
  %75 = load i32, ptr %15, align 4, !tbaa !10
  call void @_Z11make_vectorIdEN5Eigen3MapINS0_6MatrixIT_Lin1ELi1ELi0ELin1ELi1EEELi0ENS0_6StrideILi0ELi0EEEEEPS3_i(ptr dead_on_unwind nonnull writable sret(%"class.Eigen::Map.9") align 8 %18, ptr noundef %67, i32 noundef %75)
  %76 = call noundef nonnull align 8 dereferenceable(19) ptr @_ZN5Eigen9DenseBaseINS_3MapINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEELi0ENS_6StrideILi0ELi0EEEEEEmLERKd(ptr noundef nonnull align 1 dereferenceable(1) %18, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  br label %77

77:                                               ; preds = %71, %74, %60
  %78 = icmp ugt i32 %63, 3
  br i1 %78, label %97, label %79

79:                                               ; preds = %77
  %80 = zext nneg i32 %63 to i64
  %81 = getelementptr inbounds [4 x ptr], ptr @_ZZ6dgemv_E4func, i64 0, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !12
  %83 = icmp eq ptr %82, null
  br i1 %83, label %97, label %84

84:                                               ; preds = %79
  %85 = load i32, ptr %15, align 4, !tbaa !10
  %86 = load i32, ptr %16, align 4, !tbaa !10
  %87 = load i32, ptr %5, align 4, !tbaa !10
  call void %82(i32 noundef %85, i32 noundef %86, ptr noundef %4, i32 noundef %87, ptr noundef %64, i32 noundef 1, ptr noundef %67, i32 noundef 1, double noundef %19)
  %.not62 = icmp eq ptr %64, %6
  %88 = icmp eq ptr %64, null
  %or.cond67 = or i1 %.not62, %88
  br i1 %or.cond67, label %90, label %89

89:                                               ; preds = %84
  call void @_ZdaPv(ptr noundef nonnull %64) #7
  br label %90

90:                                               ; preds = %89, %84
  %.not63 = icmp eq ptr %67, %9
  br i1 %.not63, label %97, label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %15, align 4, !tbaa !10
  %93 = load i32, ptr %10, align 4, !tbaa !10
  %94 = call noundef ptr @_Z9copy_backIdEPT_S1_S1_ii(ptr noundef %67, ptr noundef %9, i32 noundef %92, i32 noundef %93)
  %95 = icmp eq ptr %94, null
  br i1 %95, label %97, label %96

96:                                               ; preds = %91
  call void @_ZdaPv(ptr noundef nonnull %94) #7
  br label %97

97:                                               ; preds = %90, %96, %91, %77, %79
  %.0 = phi i32 [ 0, %79 ], [ 0, %77 ], [ 1, %91 ], [ 1, %96 ], [ 1, %90 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  br label %98

98:                                               ; preds = %45, %48, %51, %97, %.thread69
  %.1 = phi i32 [ %44, %.thread69 ], [ %.0, %97 ], [ 0, %51 ], [ 0, %48 ], [ 0, %45 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  ret i32 %.1
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z18get_compact_vectorIKdEPT_S2_ii(ptr noundef, i32 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 #1

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { "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 = { 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}


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