def METHOD_NAME(alignment, size, consts):
    primfunc = primfunc_global_allocates
    assert tvm.tir.analysis.calculate_constant_bytes(primfunc, alignment) == consts
    assert tvm.tir.analysis.calculate_workspace_bytes(primfunc, alignment) == size