static void test_qemu_strtosz_invalid(void)

{

    const char *str;

    char *endptr = NULL;

    int64_t res;



    str = "";

    res = qemu_strtosz(str, &endptr);

    g_assert_cmpint(res, ==, -EINVAL);

    g_assert(endptr == str);



    str = " \t ";

    res = qemu_strtosz(str, &endptr);

    g_assert_cmpint(res, ==, -EINVAL);

    g_assert(endptr == str);



    str = "crap";

    res = qemu_strtosz(str, &endptr);

    g_assert_cmpint(res, ==, -EINVAL);

    g_assert(endptr == str);

}

static void test_qemu_strtosz_invalid(void)

{

    const char *str;

    char *endptr = NULL;

    int64_t res;



    str = "";

    res = qemu_strtosz(str, &endptr);

    g_assert_cmpint(res, ==, -EINVAL);

    g_assert(endptr == str);



    str = " \t ";

    res = qemu_strtosz(str, &endptr);

    g_assert_cmpint(res, ==, -EINVAL);

    g_assert(endptr == str);



    str = "crap";

    res = qemu_strtosz(str, &endptr);

    g_assert_cmpint(res, ==, -EINVAL);

    g_assert(endptr == str);

}

static void FUNC_0(void)

{

    const char *VAR_0;

    char *VAR_1 = NULL;

    int64_t res;



    VAR_0 = "";

    res = qemu_strtosz(VAR_0, &VAR_1);

    g_assert_cmpint(res, ==, -EINVAL);

    g_assert(VAR_1 == VAR_0);



    VAR_0 = " \t ";

    res = qemu_strtosz(VAR_0, &VAR_1);

    g_assert_cmpint(res, ==, -EINVAL);

    g_assert(VAR_1 == VAR_0);



    VAR_0 = "crap";

    res = qemu_strtosz(VAR_0, &VAR_1);

    g_assert_cmpint(res, ==, -EINVAL);

    g_assert(VAR_1 == VAR_0);

}

static void FUNC_0(void)
{ const char *VAR_0; char *VAR_1 = NULL; int64_t res; VAR_0 = ""; res = qemu_strtosz(VAR_0, &VAR_1); g_assert_cmpint(res, ==, -EINVAL); g_assert(VAR_1 == VAR_0); VAR_0 = " \t "; res = qemu_strtosz(VAR_0, &VAR_1); g_assert_cmpint(res, ==, -EINVAL); g_assert(VAR_1 == VAR_0); VAR_0 = "crap"; res = qemu_strtosz(VAR_0, &VAR_1); g_assert_cmpint(res, ==, -EINVAL); g_assert(VAR_1 == VAR_0); }