static void perf_nesting(void)

{

    unsigned int i, maxcycles, maxnesting;

    double duration;



    maxcycles = 10000;

    maxnesting = 1000;

    Coroutine *root;



    g_test_timer_start();

    for (i = 0; i < maxcycles; i++) {

        NestData nd = {

            .n_enter  = 0,

            .n_return = 0,

            .max      = maxnesting,

        };

        root = qemu_coroutine_create(nest);

        qemu_coroutine_enter(root, &nd);

    }

    duration = g_test_timer_elapsed();



    g_test_message("Nesting %u iterations of %u depth each: %f s\n",

        maxcycles, maxnesting, duration);

}

static void perf_nesting(void)

{

    unsigned int i, maxcycles, maxnesting;

    double duration;



    maxcycles = 10000;

    maxnesting = 1000;

    Coroutine *root;



    g_test_timer_start();

    for (i = 0; i < maxcycles; i++) {

        NestData nd = {

            .n_enter  = 0,

            .n_return = 0,

            .max      = maxnesting,

        };

        root = qemu_coroutine_create(nest);

        qemu_coroutine_enter(root, &nd);

    }

    duration = g_test_timer_elapsed();



    g_test_message("Nesting %u iterations of %u depth each: %f s\n",

        maxcycles, maxnesting, duration);

}

        root = qemu_coroutine_create(nest);         qemu_coroutine_enter(root, &nd);
static void FUNC_0(void)

{

    unsigned int VAR_0, VAR_1, VAR_2;

    double VAR_3;



    VAR_1 = 10000;

    VAR_2 = 1000;

    Coroutine *root;



    g_test_timer_start();

    for (VAR_0 = 0; VAR_0 < VAR_1; VAR_0++) {

        NestData nd = {

            .n_enter  = 0,

            .n_return = 0,

            .max      = VAR_2,

        };

        root = qemu_coroutine_create(nest);

        qemu_coroutine_enter(root, &nd);

    }

    VAR_3 = g_test_timer_elapsed();



    g_test_message("Nesting %u iterations of %u depth each: %f s\n",

        VAR_1, VAR_2, VAR_3);

}

static void FUNC_0(void)
{ unsigned int VAR_0, VAR_1, VAR_2; double VAR_3; VAR_1 = 10000; VAR_2 = 1000; Coroutine *root; g_test_timer_start(); for (VAR_0 = 0; VAR_0 < VAR_1; VAR_0++) { NestData nd = { .n_enter  = 0,
.n_return = 0,
.max      = VAR_2,
}; root = qemu_coroutine_create(nest); qemu_coroutine_enter(root, &nd); } VAR_3 = g_test_timer_elapsed(); g_test_message("Nesting %u iterations of %u depth each: %f s\n",
VAR_1, VAR_2, VAR_3); }