; LLVM IR from apache/mxnet :: example/extensions/lib_custom_op (gemm_lib)

; 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.mxnet::ext::MXTensor" = type <{ ptr, %"class.std::vector.0", i32, [4 x i8], i64, %"struct.mxnet::ext::MXContext", %struct.DLTensor, i32, [4 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.mxnet::ext::MXContext" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.DLTensor = type { ptr, %struct.DLContext, i32, %struct.DLDataType, ptr, ptr, i64 }
%struct.DLContext = type { i32, i32 }
%struct.DLDataType = type { i8, i8, i16 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4gemmPKfS0_Pfjjj(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9transposePKfPfjj(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8backwardRKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEEPSt6vectorIN5mxnet3ext8MXTensorESaISK_EESN_RKNSJ_10OpResourceE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(72) %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0)
  %22 = call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %21)
  store ptr %22, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 1)
  %25 = call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %24)
  store ptr %25, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 2)
  %28 = call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %27)
  store ptr %28, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef 0)
  %31 = call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %30)
  store ptr %31, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef 1)
  %34 = call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %33)
  store ptr %34, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef 1)
  %37 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %36, i32 0, i32 1
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef 0) #5
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = trunc i64 %39 to i32
  store i32 %40, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef 1)
  %43 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %42, i32 0, i32 1
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef 1) #5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef 2)
  %49 = getelementptr inbounds %"struct.mxnet::ext::MXTensor", ptr %48, i32 0, i32 1
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef 1) #5
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = trunc i64 %51 to i32
  store i32 %52, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load i32, ptr %15, align 4, !tbaa !11
  %55 = load i32, ptr %14, align 4, !tbaa !11
  %56 = mul i32 %54, %55
  %57 = load i32, ptr %16, align 4, !tbaa !11
  %58 = load i32, ptr %15, align 4, !tbaa !11
  %59 = mul i32 %57, %58
  %60 = add i32 %56, %59
  %61 = zext i32 %60 to i64
  %62 = mul i64 %61, 4
  %63 = trunc i64 %62 to i32
  %64 = call noundef ptr @_ZNK5mxnet3ext10OpResource9alloc_cpuEi(ptr noundef nonnull align 8 dereferenceable(72) %53, i32 noundef %63)
  store ptr %64, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %65 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %65, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %66 = load ptr, ptr %17, align 8, !tbaa !5
  %67 = load i32, ptr %15, align 4, !tbaa !11
  %68 = load i32, ptr %14, align 4, !tbaa !11
  %69 = mul i32 %67, %68
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %66, i64 %70
  store ptr %71, ptr %19, align 8, !tbaa !5
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = load ptr, ptr %18, align 8, !tbaa !5
  %74 = load i32, ptr %15, align 4, !tbaa !11
  %75 = load i32, ptr %14, align 4, !tbaa !11
  call void @_Z9transposePKfPfjj(ptr noundef %72, ptr noundef %73, i32 noundef %74, i32 noundef %75)
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = load i32, ptr %16, align 4, !tbaa !11
  %79 = load i32, ptr %15, align 4, !tbaa !11
  call void @_Z9transposePKfPfjj(ptr noundef %76, ptr noundef %77, i32 noundef %78, i32 noundef %79)
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = load i32, ptr %14, align 4, !tbaa !11
  %84 = load i32, ptr %16, align 4, !tbaa !11
  %85 = load i32, ptr %15, align 4, !tbaa !11
  call void @_Z4gemmPKfS0_Pfjjj(ptr noundef %80, ptr noundef %81, ptr noundef %82, i32 noundef %83, i32 noundef %84, i32 noundef %85)
  %86 = load ptr, ptr %18, align 8, !tbaa !5
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = load i32, ptr %15, align 4, !tbaa !11
  %90 = load i32, ptr %14, align 4, !tbaa !11
  %91 = load i32, ptr %16, align 4, !tbaa !11
  call void @_Z4gemmPKfS0_Pfjjj(ptr noundef %86, ptr noundef %87, ptr noundef %88, i32 noundef %89, i32 noundef %90, i32 noundef %91)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret i32 1
}

declare noundef ptr @_ZNK5mxnet3ext10OpResource9alloc_cpuEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4gemmPKfS0_Pfjjj(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9transposePKfPfjj(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8backwardRKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEEPSt6vectorIN5mxnet3ext8MXTensorESaISK_EESN_RKNSJ_10OpResourceE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(56) %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(72) %3) local_unnamed_addr #1 {
  %5 = tail call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0)
  %6 = tail call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %5)
  %7 = tail call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1)
  %8 = tail call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %7)
  %9 = tail call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2)
  %10 = tail call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %9)
  %11 = tail call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0)
  %12 = tail call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %11)
  %13 = tail call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1)
  %14 = tail call noundef ptr @_ZN5mxnet3ext8MXTensor4dataIfEEPT_v(ptr noundef nonnull align 8 dereferenceable(140) %13)
  %15 = tail call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1)
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #4
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = trunc i64 %18 to i32
  %20 = tail call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1)
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 1) #4
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = trunc i64 %23 to i32
  %25 = tail call noundef nonnull align 8 dereferenceable(140) ptr @_ZNSt6vectorIN5mxnet3ext8MXTensorESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 2)
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 1) #4
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = trunc i64 %28 to i32
  %30 = mul i64 %23, %18
  %31 = add i64 %28, %18
  %32 = mul i64 %31, %23
  %.tr = trunc i64 %32 to i32
  %33 = shl i32 %.tr, 2
  %34 = tail call noundef ptr @_ZNK5mxnet3ext10OpResource9alloc_cpuEi(ptr noundef nonnull align 8 dereferenceable(72) %3, i32 noundef %33)
  %35 = and i64 %30, 4294967295
  %36 = getelementptr inbounds float, ptr %34, i64 %35
  tail call void @_Z9transposePKfPfjj(ptr noundef %8, ptr noundef %34, i32 noundef %24, i32 noundef %19)
  tail call void @_Z9transposePKfPfjj(ptr noundef %10, ptr noundef %36, i32 noundef %29, i32 noundef %24)
  tail call void @_Z4gemmPKfS0_Pfjjj(ptr noundef %6, ptr noundef %36, ptr noundef %12, i32 noundef %19, i32 noundef %29, i32 noundef %24)
  tail call void @_Z4gemmPKfS0_Pfjjj(ptr noundef %34, ptr noundef %6, ptr noundef %14, i32 noundef %24, i32 noundef %19, i32 noundef %29)
  ret i32 1
}

declare noundef ptr @_ZNK5mxnet3ext10OpResource9alloc_cpuEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_unnamed_addr #3

attributes #0 = { 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 #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 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 #3 = { "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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,TailCallElimPass