static void test_qemu_strtoull_max(void)

{

    char *str = g_strdup_printf("%llu", ULLONG_MAX);

    char f = 'X';

    const char *endptr = &f;

    uint64_t res = 999;

    int err;



    err = qemu_strtoull(str, &endptr, 0, &res);



    g_assert_cmpint(err, ==, 0);

    g_assert_cmpint(res, ==, ULLONG_MAX);

    g_assert(endptr == str + strlen(str));

    g_free(str);

}

static void test_qemu_strtoull_max(void)

{

    char *str = g_strdup_printf("%llu", ULLONG_MAX);

    char f = 'X';

    const char *endptr = &f;

    uint64_t res = 999;

    int err;



    err = qemu_strtoull(str, &endptr, 0, &res);



    g_assert_cmpint(err, ==, 0);

    g_assert_cmpint(res, ==, ULLONG_MAX);

    g_assert(endptr == str + strlen(str));

    g_free(str);

}

static void FUNC_0(void)

{

    char *VAR_0 = g_strdup_printf("%llu", ULLONG_MAX);

    char VAR_1 = 'X';

    const char *VAR_2 = &VAR_1;

    uint64_t res = 999;

    int VAR_3;



    VAR_3 = qemu_strtoull(VAR_0, &VAR_2, 0, &res);



    g_assert_cmpint(VAR_3, ==, 0);

    g_assert_cmpint(res, ==, ULLONG_MAX);

    g_assert(VAR_2 == VAR_0 + strlen(VAR_0));

    g_free(VAR_0);

}

static void FUNC_0(void)
{ char *VAR_0 = g_strdup_printf("%llu", ULLONG_MAX); char VAR_1 = 'X'; const char *VAR_2 = &VAR_1; uint64_t res = 999; int VAR_3; VAR_3 = qemu_strtoull(VAR_0, &VAR_2, 0, &res); g_assert_cmpint(VAR_3, ==, 0); g_assert_cmpint(res, ==, ULLONG_MAX); g_assert(VAR_2 == VAR_0 + strlen(VAR_0)); g_free(VAR_0); }