; LLVM IR from huawei-noah/bolt :: compute/blas_enhance/src (mmm)

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

%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) #3

declare i32 @printf(ptr noundef, ...) #4

declare i32 @fflush(ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @ee2str(i32 noundef) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; 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 void @_ZSt4swapIjENSt9enable_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)) #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @matrix_matrix_multiply_rhs_format(i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local i32 @matrix_matrix_multiply_transform_rhs_bytes(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @matrix_matrix_multiply_transform_rhs(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #7

; Function Attrs: mustprogress uwtable
define dso_local i32 @matrix_matrix_multiply(ptr noundef byval(%struct.TensorDesc) align 8 %0, ptr noundef %1, ptr noundef byval(%struct.TensorDesc) align 8 %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef byval(%struct.TensorDesc) align 8 %6, ptr noundef %7, ptr noundef %8, i32 noundef %9) #6 {
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %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 i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.TensorDesc, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %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 i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %struct.TensorDesc, align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca %struct.TensorDesc, align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca %struct.TensorDesc, align 8
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i8, align 1
  %48 = alloca i8, align 1
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca ptr, align 8
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca %struct.TensorDesc, align 8
  %56 = alloca i32, align 4
  %57 = alloca %struct.TensorDesc, align 8
  %58 = alloca i32, align 4
  %59 = alloca %struct.TensorDesc, align 4
  %60 = alloca i32, align 4
  %61 = alloca %struct.TensorDesc, align 8
  %62 = alloca i32, align 4
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i32 %4, ptr %14, align 4, !tbaa !9
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  store ptr %8, ptr %17, align 8, !tbaa !5
  store i32 %9, ptr %18, align 4, !tbaa !11
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %84

65:                                               ; preds = %10
  %66 = load ptr, ptr %15, align 8, !tbaa !5
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %84

68:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 1, ptr %19, align 4, !tbaa !13
  %69 = load i32, ptr %19, align 4, !tbaa !13
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %83

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %72 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %73 = trunc i64 %72 to i32
  store i32 %73, ptr %20, align 4, !tbaa !9
  %74 = load i32, ptr %20, align 4, !tbaa !9
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %74)
  %76 = load ptr, ptr @stdout, align 8, !tbaa !5
  %77 = call i32 @fflush(ptr noundef %76)
  %78 = load i32, ptr %19, align 4, !tbaa !13
  %79 = call ptr @ee2str(i32 noundef %78)
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %79)
  %81 = load ptr, ptr @stdout, align 8, !tbaa !5
  %82 = call i32 @fflush(ptr noundef %81)
  call void @exit(i32 noundef 1) #10
  unreachable

83:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %84

84:                                               ; preds = %83, %65, %10
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = icmp eq ptr null, %85
  br i1 %86, label %93, label %87

87:                                               ; preds = %84
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = icmp eq ptr null, %88
  br i1 %89, label %93, label %90

90:                                               ; preds = %87
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  %92 = icmp eq ptr null, %91
  br i1 %92, label %93, label %109

93:                                               ; preds = %90, %87, %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 1, ptr %21, align 4, !tbaa !13
  %94 = load i32, ptr %21, align 4, !tbaa !13
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %108

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  %97 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %98 = trunc i64 %97 to i32
  store i32 %98, ptr %22, align 4, !tbaa !9
  %99 = load i32, ptr %22, align 4, !tbaa !9
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %99)
  %101 = load ptr, ptr @stdout, align 8, !tbaa !5
  %102 = call i32 @fflush(ptr noundef %101)
  %103 = load i32, ptr %21, align 4, !tbaa !13
  %104 = call ptr @ee2str(i32 noundef %103)
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %104)
  %106 = load ptr, ptr @stdout, align 8, !tbaa !5
  %107 = call i32 @fflush(ptr noundef %106)
  call void @exit(i32 noundef 1) #10
  unreachable

108:                                              ; preds = %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %109

109:                                              ; preds = %108, %90
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %6, i64 92, i1 false), !tbaa.struct !15
  %110 = call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %23)
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %109
  store i32 0, ptr %11, align 4
  br label %328

113:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %114 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef byval(%struct.TensorDesc) align 8 %37, ptr noundef %24, ptr noundef %27, ptr noundef %30, ptr noundef %31)
  store i32 %114, ptr %36, align 4, !tbaa !13
  %115 = load i32, ptr %36, align 4, !tbaa !13
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %129

117:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  %118 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %119 = trunc i64 %118 to i32
  store i32 %119, ptr %38, align 4, !tbaa !9
  %120 = load i32, ptr %38, align 4, !tbaa !9
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %120)
  %122 = load ptr, ptr @stdout, align 8, !tbaa !5
  %123 = call i32 @fflush(ptr noundef %122)
  %124 = load i32, ptr %36, align 4, !tbaa !13
  %125 = call ptr @ee2str(i32 noundef %124)
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %125)
  %127 = load ptr, ptr @stdout, align 8, !tbaa !5
  %128 = call i32 @fflush(ptr noundef %127)
  call void @exit(i32 noundef 1) #10
  unreachable

129:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %130 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef byval(%struct.TensorDesc) align 8 %40, ptr noundef %25, ptr noundef %28, ptr noundef %32, ptr noundef %33)
  store i32 %130, ptr %39, align 4, !tbaa !13
  %131 = load i32, ptr %39, align 4, !tbaa !13
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %145

133:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  %134 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %135 = trunc i64 %134 to i32
  store i32 %135, ptr %41, align 4, !tbaa !9
  %136 = load i32, ptr %41, align 4, !tbaa !9
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %136)
  %138 = load ptr, ptr @stdout, align 8, !tbaa !5
  %139 = call i32 @fflush(ptr noundef %138)
  %140 = load i32, ptr %39, align 4, !tbaa !13
  %141 = call ptr @ee2str(i32 noundef %140)
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %141)
  %143 = load ptr, ptr @stdout, align 8, !tbaa !5
  %144 = call i32 @fflush(ptr noundef %143)
  call void @exit(i32 noundef 1) #10
  unreachable

145:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 8 %6, i64 92, i1 false), !tbaa.struct !15
  %146 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef byval(%struct.TensorDesc) align 8 %43, ptr noundef %26, ptr noundef %29, ptr noundef %34, ptr noundef %35)
  store i32 %146, ptr %42, align 4, !tbaa !13
  %147 = load i32, ptr %42, align 4, !tbaa !13
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %161

149:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #9
  %150 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %151 = trunc i64 %150 to i32
  store i32 %151, ptr %44, align 4, !tbaa !9
  %152 = load i32, ptr %44, align 4, !tbaa !9
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %152)
  %154 = load ptr, ptr @stdout, align 8, !tbaa !5
  %155 = call i32 @fflush(ptr noundef %154)
  %156 = load i32, ptr %42, align 4, !tbaa !13
  %157 = call ptr @ee2str(i32 noundef %156)
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %157)
  %159 = load ptr, ptr @stdout, align 8, !tbaa !5
  %160 = call i32 @fflush(ptr noundef %159)
  call void @exit(i32 noundef 1) #10
  unreachable

161:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  %162 = load i32, ptr %24, align 4, !tbaa !16
  %163 = load i32, ptr %25, align 4, !tbaa !16
  %164 = icmp ne i32 %162, %163
  br i1 %164, label %165, label %188

165:                                              ; preds = %161
  %166 = load i32, ptr %24, align 4, !tbaa !16
  %167 = icmp eq i32 %166, 10
  br i1 %167, label %168, label %171

168:                                              ; preds = %165
  %169 = load i32, ptr %25, align 4, !tbaa !16
  %170 = icmp eq i32 %169, 1
  br i1 %170, label %187, label %171

171:                                              ; preds = %168, %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #9
  store i32 2, ptr %45, align 4, !tbaa !13
  %172 = load i32, ptr %45, align 4, !tbaa !13
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %186

174:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  %175 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %176 = trunc i64 %175 to i32
  store i32 %176, ptr %46, align 4, !tbaa !9
  %177 = load i32, ptr %46, align 4, !tbaa !9
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %177)
  %179 = load ptr, ptr @stdout, align 8, !tbaa !5
  %180 = call i32 @fflush(ptr noundef %179)
  %181 = load i32, ptr %45, align 4, !tbaa !13
  %182 = call ptr @ee2str(i32 noundef %181)
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %182)
  %184 = load ptr, ptr @stdout, align 8, !tbaa !5
  %185 = call i32 @fflush(ptr noundef %184)
  call void @exit(i32 noundef 1) #10
  unreachable

186:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  br label %187

187:                                              ; preds = %186, %168
  br label %188

188:                                              ; preds = %187, %161
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #9
  store i8 0, ptr %47, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #9
  store i8 0, ptr %48, align 1, !tbaa !21
  %189 = load i32, ptr %27, align 4, !tbaa !18
  %190 = icmp eq i32 %189, 13
  br i1 %190, label %191, label %192

191:                                              ; preds = %188
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %31) #9
  store i8 1, ptr %47, align 1, !tbaa !21
  br label %192

192:                                              ; preds = %191, %188
  %193 = load i32, ptr %28, align 4, !tbaa !18
  %194 = icmp eq i32 %193, 13
  br i1 %194, label %195, label %196

195:                                              ; preds = %192
  call void @_ZSt4swapIjENSt9enable_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) #9
  store i8 1, ptr %48, align 1, !tbaa !21
  br label %196

196:                                              ; preds = %195, %192
  %197 = load i32, ptr %30, align 4, !tbaa !9
  %198 = load i32, ptr %34, align 4, !tbaa !9
  %199 = icmp ne i32 %197, %198
  br i1 %199, label %208, label %200

200:                                              ; preds = %196
  %201 = load i32, ptr %33, align 4, !tbaa !9
  %202 = load i32, ptr %35, align 4, !tbaa !9
  %203 = icmp ne i32 %201, %202
  br i1 %203, label %208, label %204

204:                                              ; preds = %200
  %205 = load i32, ptr %31, align 4, !tbaa !9
  %206 = load i32, ptr %32, align 4, !tbaa !9
  %207 = icmp ne i32 %205, %206
  br i1 %207, label %208, label %224

208:                                              ; preds = %204, %200, %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #9
  store i32 2, ptr %49, align 4, !tbaa !13
  %209 = load i32, ptr %49, align 4, !tbaa !13
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %223

211:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #9
  %212 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %213 = trunc i64 %212 to i32
  store i32 %213, ptr %50, align 4, !tbaa !9
  %214 = load i32, ptr %50, align 4, !tbaa !9
  %215 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %214)
  %216 = load ptr, ptr @stdout, align 8, !tbaa !5
  %217 = call i32 @fflush(ptr noundef %216)
  %218 = load i32, ptr %49, align 4, !tbaa !13
  %219 = call ptr @ee2str(i32 noundef %218)
  %220 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %219)
  %221 = load ptr, ptr @stdout, align 8, !tbaa !5
  %222 = call i32 @fflush(ptr noundef %221)
  call void @exit(i32 noundef 1) #10
  unreachable

223:                                              ; preds = %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #9
  br label %224

224:                                              ; preds = %223, %204
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #9
  store i32 51, ptr %51, align 4, !tbaa !13
  %225 = load i32, ptr %18, align 4, !tbaa !11
  %226 = icmp eq i32 %225, 1
  br i1 %226, label %254, label %227

227:                                              ; preds = %224
  %228 = load i32, ptr %18, align 4, !tbaa !11
  %229 = icmp eq i32 %228, 8
  br i1 %229, label %254, label %230

230:                                              ; preds = %227
  %231 = load i32, ptr %18, align 4, !tbaa !11
  %232 = icmp eq i32 %231, 9
  br i1 %232, label %254, label %233

233:                                              ; preds = %230
  %234 = load i32, ptr %18, align 4, !tbaa !11
  %235 = icmp eq i32 %234, 10
  br i1 %235, label %254, label %236

236:                                              ; preds = %233
  %237 = load i32, ptr %18, align 4, !tbaa !11
  %238 = icmp eq i32 %237, 9
  br i1 %238, label %254, label %239

239:                                              ; preds = %236
  %240 = load i32, ptr %18, align 4, !tbaa !11
  %241 = icmp eq i32 %240, 10
  br i1 %241, label %254, label %242

242:                                              ; preds = %239
  %243 = load i32, ptr %18, align 4, !tbaa !11
  %244 = icmp eq i32 %243, 5
  br i1 %244, label %254, label %245

245:                                              ; preds = %242
  %246 = load i32, ptr %18, align 4, !tbaa !11
  %247 = icmp eq i32 %246, 6
  br i1 %247, label %254, label %248

248:                                              ; preds = %245
  %249 = load i32, ptr %18, align 4, !tbaa !11
  %250 = icmp eq i32 %249, 4
  br i1 %250, label %254, label %251

251:                                              ; preds = %248
  %252 = load i32, ptr %18, align 4, !tbaa !11
  %253 = icmp eq i32 %252, 3
  br i1 %253, label %254, label %326

254:                                              ; preds = %251, %248, %245, %242, %239, %236, %233, %230, %227, %224
  %255 = load i32, ptr %18, align 4, !tbaa !11
  %256 = icmp eq i32 %255, 1
  br i1 %256, label %257, label %258

257:                                              ; preds = %254
  br label %325

258:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #9
  %259 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %259, ptr %52, align 8, !tbaa !5
  %260 = load i32, ptr %28, align 4, !tbaa !18
  %261 = load i32, ptr %25, align 4, !tbaa !16
  %262 = call i32 @matrix_matrix_multiply_rhs_format(i32 noundef %261)
  %263 = icmp ne i32 %260, %262
  br i1 %263, label %264, label %324

264:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #9
  store i32 0, ptr %53, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %265 = load i32, ptr %18, align 4, !tbaa !11
  %266 = call i32 @matrix_matrix_multiply_transform_rhs_bytes(ptr noundef byval(%struct.TensorDesc) align 8 %55, ptr noundef null, ptr noundef %53, i32 noundef %265)
  store i32 %266, ptr %54, align 4, !tbaa !13
  %267 = load i32, ptr %54, align 4, !tbaa !13
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %269, label %281

269:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #9
  %270 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %271 = trunc i64 %270 to i32
  store i32 %271, ptr %56, align 4, !tbaa !9
  %272 = load i32, ptr %56, align 4, !tbaa !9
  %273 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %272)
  %274 = load ptr, ptr @stdout, align 8, !tbaa !5
  %275 = call i32 @fflush(ptr noundef %274)
  %276 = load i32, ptr %54, align 4, !tbaa !13
  %277 = call ptr @ee2str(i32 noundef %276)
  %278 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %277)
  %279 = load ptr, ptr @stdout, align 8, !tbaa !5
  %280 = call i32 @fflush(ptr noundef %279)
  call void @exit(i32 noundef 1) #10
  unreachable

281:                                              ; preds = %264
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #9
  %282 = load i32, ptr %53, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %283 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %57)
  %284 = icmp uge i32 %282, %283
  br i1 %284, label %285, label %289

285:                                              ; preds = %281
  %286 = load i32, ptr %14, align 4, !tbaa !9
  %287 = load i32, ptr %53, align 4, !tbaa !9
  %288 = icmp uge i32 %286, %287
  br i1 %288, label %299, label %289

289:                                              ; preds = %285, %281
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #9
  %290 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %291 = trunc i64 %290 to i32
  store i32 %291, ptr %58, align 4, !tbaa !9
  %292 = load i32, ptr %58, align 4, !tbaa !9
  %293 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %292)
  %294 = load ptr, ptr @stdout, align 8, !tbaa !5
  %295 = call i32 @fflush(ptr noundef %294)
  %296 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %297 = load ptr, ptr @stdout, align 8, !tbaa !5
  %298 = call i32 @fflush(ptr noundef %297)
  call void @exit(i32 noundef 1) #10
  unreachable

299:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 92, ptr %59) #9
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %59) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %300 = load ptr, ptr %13, align 8, !tbaa !5
  %301 = load ptr, ptr %15, align 8, !tbaa !5
  %302 = load i32, ptr %18, align 4, !tbaa !11
  %303 = call i32 @matrix_matrix_multiply_transform_rhs(ptr noundef byval(%struct.TensorDesc) align 8 %61, ptr noundef %300, ptr noundef %59, ptr noundef %301, i32 noundef %302)
  store i32 %303, ptr %60, align 4, !tbaa !13
  %304 = load i32, ptr %60, align 4, !tbaa !13
  %305 = icmp ne i32 %304, 0
  br i1 %305, label %306, label %318

306:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #9
  %307 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %308 = trunc i64 %307 to i32
  store i32 %308, ptr %62, align 4, !tbaa !9
  %309 = load i32, ptr %62, align 4, !tbaa !9
  %310 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %309)
  %311 = load ptr, ptr @stdout, align 8, !tbaa !5
  %312 = call i32 @fflush(ptr noundef %311)
  %313 = load i32, ptr %60, align 4, !tbaa !13
  %314 = call ptr @ee2str(i32 noundef %313)
  %315 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %314)
  %316 = load ptr, ptr @stdout, align 8, !tbaa !5
  %317 = call i32 @fflush(ptr noundef %316)
  call void @exit(i32 noundef 1) #10
  unreachable

318:                                              ; preds = %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #9
  %319 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %319, ptr %52, align 8, !tbaa !5
  %320 = load ptr, ptr %15, align 8, !tbaa !5
  %321 = load i32, ptr %53, align 4, !tbaa !9
  %322 = zext i32 %321 to i64
  %323 = getelementptr inbounds i8, ptr %320, i64 %322
  store ptr %323, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 92, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #9
  br label %324

324:                                              ; preds = %318, %258
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  br label %325

325:                                              ; preds = %324, %257
  br label %326

326:                                              ; preds = %325, %251
  %327 = load i32, ptr %51, align 4, !tbaa !13
  store i32 %327, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %328

328:                                              ; preds = %326, %112
  %329 = load i32, ptr %11, align 4
  ret i32 %329
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92)) 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { "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 = { noreturn 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 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn 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 = !{!12, !12, i64 0}
!12 = !{!"_ZTS4Arch", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS2EE", !7, i64 0}
!15 = !{i64 0, i64 4, !16, i64 4, i64 4, !18, i64 8, i64 4, !9, i64 12, i64 80, !20}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS8DataType", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS10DataFormat", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !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"

%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @ee2str(i32 noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

; 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 void @_ZSt4swapIjENSt9enable_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 #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @matrix_matrix_multiply_rhs_format(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local i32 @matrix_matrix_multiply_transform_rhs_bytes(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @matrix_matrix_multiply_transform_rhs(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local range(i32 0, 52) i32 @matrix_matrix_multiply(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr noundef readnone %1, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %6, ptr noundef readnone %7, ptr nocapture noundef readnone %8, i32 noundef %9) local_unnamed_addr #5 {
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.TensorDesc, align 4
  %25 = icmp ne i32 %4, 0
  %26 = icmp eq ptr %5, null
  %or.cond = and i1 %25, %26
  br i1 %or.cond, label %27, label %37

27:                                               ; preds = %10
  %28 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %29 = trunc i64 %28 to i32
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %29)
  %31 = load ptr, ptr @stdout, align 8, !tbaa !5
  %32 = tail call i32 @fflush(ptr noundef %31)
  %33 = tail call ptr @ee2str(i32 noundef 1)
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %33)
  %35 = load ptr, ptr @stdout, align 8, !tbaa !5
  %36 = tail call i32 @fflush(ptr noundef %35)
  tail call void @exit(i32 noundef 1) #9
  unreachable

37:                                               ; preds = %10
  %38 = icmp eq ptr %1, null
  %39 = icmp eq ptr %3, null
  %or.cond3 = or i1 %38, %39
  %40 = icmp eq ptr %7, null
  %or.cond5 = or i1 %or.cond3, %40
  br i1 %or.cond5, label %41, label %51

41:                                               ; preds = %37
  %42 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %43 = trunc i64 %42 to i32
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %43)
  %45 = load ptr, ptr @stdout, align 8, !tbaa !5
  %46 = tail call i32 @fflush(ptr noundef %45)
  %47 = tail call ptr @ee2str(i32 noundef 1)
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %47)
  %49 = load ptr, ptr @stdout, align 8, !tbaa !5
  %50 = tail call i32 @fflush(ptr noundef %49)
  tail call void @exit(i32 noundef 1) #9
  unreachable

51:                                               ; preds = %37
  %52 = tail call noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6)
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %177, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #8
  %55 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %11, ptr noundef nonnull %14, ptr noundef nonnull %17, ptr noundef nonnull %18)
  %.not = icmp eq i32 %55, 0
  br i1 %.not, label %66, label %56

56:                                               ; preds = %54
  %57 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %58 = trunc i64 %57 to i32
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %58)
  %60 = load ptr, ptr @stdout, align 8, !tbaa !5
  %61 = call i32 @fflush(ptr noundef %60)
  %62 = call ptr @ee2str(i32 noundef %55)
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %62)
  %64 = load ptr, ptr @stdout, align 8, !tbaa !5
  %65 = call i32 @fflush(ptr noundef %64)
  call void @exit(i32 noundef 1) #9
  unreachable

66:                                               ; preds = %54
  %67 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %2, ptr noundef nonnull %12, ptr noundef nonnull %15, ptr noundef nonnull %19, ptr noundef nonnull %20)
  %.not88 = icmp eq i32 %67, 0
  br i1 %.not88, label %78, label %68

68:                                               ; preds = %66
  %69 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %70 = trunc i64 %69 to i32
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %70)
  %72 = load ptr, ptr @stdout, align 8, !tbaa !5
  %73 = call i32 @fflush(ptr noundef %72)
  %74 = call ptr @ee2str(i32 noundef %67)
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %74)
  %76 = load ptr, ptr @stdout, align 8, !tbaa !5
  %77 = call i32 @fflush(ptr noundef %76)
  call void @exit(i32 noundef 1) #9
  unreachable

78:                                               ; preds = %66
  %79 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6, ptr noundef nonnull %13, ptr noundef nonnull %16, ptr noundef nonnull %21, ptr noundef nonnull %22)
  %.not89 = icmp eq i32 %79, 0
  br i1 %.not89, label %90, label %80

80:                                               ; preds = %78
  %81 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %82 = trunc i64 %81 to i32
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %82)
  %84 = load ptr, ptr @stdout, align 8, !tbaa !5
  %85 = call i32 @fflush(ptr noundef %84)
  %86 = call ptr @ee2str(i32 noundef %79)
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %86)
  %88 = load ptr, ptr @stdout, align 8, !tbaa !5
  %89 = call i32 @fflush(ptr noundef %88)
  call void @exit(i32 noundef 1) #9
  unreachable

90:                                               ; preds = %78
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = load i32, ptr %12, align 4
  %.not90 = icmp eq i32 %91, %92
  br i1 %.not90, label %106, label %93

93:                                               ; preds = %90
  %94 = icmp eq i32 %91, 10
  %95 = icmp eq i32 %92, 1
  %or.cond7 = and i1 %94, %95
  br i1 %or.cond7, label %106, label %96

96:                                               ; preds = %93
  %97 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %98 = trunc i64 %97 to i32
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %98)
  %100 = load ptr, ptr @stdout, align 8, !tbaa !5
  %101 = call i32 @fflush(ptr noundef %100)
  %102 = call ptr @ee2str(i32 noundef 2)
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %102)
  %104 = load ptr, ptr @stdout, align 8, !tbaa !5
  %105 = call i32 @fflush(ptr noundef %104)
  call void @exit(i32 noundef 1) #9
  unreachable

106:                                              ; preds = %93, %90
  %107 = load i32, ptr %14, align 4, !tbaa !11
  %108 = icmp eq i32 %107, 13
  br i1 %108, label %109, label %110

109:                                              ; preds = %106
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18) #8
  br label %110

110:                                              ; preds = %109, %106
  %111 = load i32, ptr %15, align 4, !tbaa !11
  %112 = icmp eq i32 %111, 13
  br i1 %112, label %113, label %114

113:                                              ; preds = %110
  call void @_ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20) #8
  br label %114

114:                                              ; preds = %113, %110
  %115 = load i32, ptr %17, align 4, !tbaa !13
  %116 = load i32, ptr %21, align 4, !tbaa !13
  %.not91 = icmp eq i32 %115, %116
  br i1 %.not91, label %117, label %123

117:                                              ; preds = %114
  %118 = load i32, ptr %20, align 4, !tbaa !13
  %119 = load i32, ptr %22, align 4, !tbaa !13
  %.not92 = icmp eq i32 %118, %119
  br i1 %.not92, label %120, label %123

120:                                              ; preds = %117
  %121 = load i32, ptr %18, align 4, !tbaa !13
  %122 = load i32, ptr %19, align 4, !tbaa !13
  %.not93 = icmp eq i32 %121, %122
  br i1 %.not93, label %133, label %123

123:                                              ; preds = %114, %117, %120
  %124 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %125 = trunc i64 %124 to i32
  %126 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %125)
  %127 = load ptr, ptr @stdout, align 8, !tbaa !5
  %128 = call i32 @fflush(ptr noundef %127)
  %129 = call ptr @ee2str(i32 noundef 2)
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %129)
  %131 = load ptr, ptr @stdout, align 8, !tbaa !5
  %132 = call i32 @fflush(ptr noundef %131)
  call void @exit(i32 noundef 1) #9
  unreachable

133:                                              ; preds = %120
  switch i32 %9, label %176 [
    i32 10, label %134
    i32 9, label %134
    i32 8, label %134
    i32 6, label %134
    i32 5, label %134
    i32 4, label %134
    i32 3, label %134
  ]

134:                                              ; preds = %133, %133, %133, %133, %133, %133, %133
  %135 = load i32, ptr %15, align 4, !tbaa !11
  %136 = load i32, ptr %12, align 4, !tbaa !9
  %137 = call i32 @matrix_matrix_multiply_rhs_format(i32 noundef %136)
  %.not100 = icmp eq i32 %135, %137
  br i1 %.not100, label %176, label %138

138:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #8
  store i32 0, ptr %23, align 4, !tbaa !13
  %139 = call i32 @matrix_matrix_multiply_transform_rhs_bytes(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %2, ptr noundef null, ptr noundef nonnull %23, i32 noundef %9)
  %.not101 = icmp eq i32 %139, 0
  br i1 %.not101, label %150, label %140

140:                                              ; preds = %138
  %141 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %142 = trunc i64 %141 to i32
  %143 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %142)
  %144 = load ptr, ptr @stdout, align 8, !tbaa !5
  %145 = call i32 @fflush(ptr noundef %144)
  %146 = call ptr @ee2str(i32 noundef %139)
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %146)
  %148 = load ptr, ptr @stdout, align 8, !tbaa !5
  %149 = call i32 @fflush(ptr noundef %148)
  call void @exit(i32 noundef 1) #9
  unreachable

150:                                              ; preds = %138
  %151 = load i32, ptr %23, align 4, !tbaa !13
  %152 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %2)
  %.not102 = icmp ult i32 %151, %152
  %153 = load i32, ptr %23, align 4
  %.not103 = icmp ugt i32 %153, %4
  %or.cond105 = select i1 %.not102, i1 true, i1 %.not103
  br i1 %or.cond105, label %154, label %163

154:                                              ; preds = %150
  %155 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %156 = trunc i64 %155 to i32
  %157 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %156)
  %158 = load ptr, ptr @stdout, align 8, !tbaa !5
  %159 = call i32 @fflush(ptr noundef %158)
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %161 = load ptr, ptr @stdout, align 8, !tbaa !5
  %162 = call i32 @fflush(ptr noundef %161)
  call void @exit(i32 noundef 1) #9
  unreachable

163:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %24) #8
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %24) #8
  %164 = call i32 @matrix_matrix_multiply_transform_rhs(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %2, ptr noundef nonnull %3, ptr noundef nonnull %24, ptr noundef %5, i32 noundef %9)
  %.not104 = icmp eq i32 %164, 0
  br i1 %.not104, label %175, label %165

165:                                              ; preds = %163
  %166 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %167 = trunc i64 %166 to i32
  %168 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %167)
  %169 = load ptr, ptr @stdout, align 8, !tbaa !5
  %170 = call i32 @fflush(ptr noundef %169)
  %171 = call ptr @ee2str(i32 noundef %164)
  %172 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %171)
  %173 = load ptr, ptr @stdout, align 8, !tbaa !5
  %174 = call i32 @fflush(ptr noundef %173)
  call void @exit(i32 noundef 1) #9
  unreachable

175:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  br label %176

176:                                              ; preds = %134, %175, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  br label %177

177:                                              ; preds = %51, %176
  %.0 = phi i32 [ 51, %176 ], [ 0, %51 ]
  ret i32 %.0
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z17tensorNumElements10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92)) 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 = { 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 #3 = { nofree 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 = { noreturn 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 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"_ZTS8DataType", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS10DataFormat", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass