static void test_yield(void)

{

    Coroutine *coroutine;

    bool done = false;

    int i = -1; /* one extra time to return from coroutine */



    coroutine = qemu_coroutine_create(yield_5_times);

    while (!done) {

        qemu_coroutine_enter(coroutine, &done);

        i++;

    }

    g_assert_cmpint(i, ==, 5); /* coroutine must yield 5 times */

}

static void test_yield(void)

{

    Coroutine *coroutine;

    bool done = false;

    int i = -1; 



    coroutine = qemu_coroutine_create(yield_5_times);

    while (!done) {

        qemu_coroutine_enter(coroutine, &done);

        i++;

    }

    g_assert_cmpint(i, ==, 5); 

}

    coroutine = qemu_coroutine_create(yield_5_times);         qemu_coroutine_enter(coroutine, &done);
static void FUNC_0(void)

{

    Coroutine *coroutine;

    bool done = false;

    int VAR_0 = -1; 



    coroutine = qemu_coroutine_create(yield_5_times);

    while (!done) {

        qemu_coroutine_enter(coroutine, &done);

        VAR_0++;

    }

    g_assert_cmpint(VAR_0, ==, 5); 

}

static void FUNC_0(void)
{ Coroutine *coroutine; bool done = false; int VAR_0 = -1; coroutine = qemu_coroutine_create(yield_5_times); while (!done) { qemu_coroutine_enter(coroutine, &done); VAR_0++; } g_assert_cmpint(VAR_0, ==, 5); }