QOSState *qtest_vboot(QOSOps *ops, const char *cmdline_fmt, va_list ap)

{

    char *cmdline;



    struct QOSState *qs = g_malloc(sizeof(QOSState));



    cmdline = g_strdup_vprintf(cmdline_fmt, ap);

    qs->qts = qtest_start(cmdline);

    qs->ops = ops;

    qtest_irq_intercept_in(global_qtest, "ioapic");

    if (ops && ops->init_allocator) {

        qs->alloc = ops->init_allocator(ALLOC_NO_FLAGS);

    }



    g_free(cmdline);

    return qs;

}

QOSState *qtest_vboot(QOSOps *ops, const char *cmdline_fmt, va_list ap)

{

    char *cmdline;



    struct QOSState *qs = g_malloc(sizeof(QOSState));



    cmdline = g_strdup_vprintf(cmdline_fmt, ap);

    qs->qts = qtest_start(cmdline);

    qs->ops = ops;

    qtest_irq_intercept_in(global_qtest, "ioapic");

    if (ops && ops->init_allocator) {

        qs->alloc = ops->init_allocator(ALLOC_NO_FLAGS);

    }



    g_free(cmdline);

    return qs;

}

QOSState *FUNC_0(QOSOps *ops, const char *cmdline_fmt, va_list ap)

{

    char *VAR_0;



    struct QOSState *VAR_1 = g_malloc(sizeof(QOSState));



    VAR_0 = g_strdup_vprintf(cmdline_fmt, ap);

    VAR_1->qts = qtest_start(VAR_0);

    VAR_1->ops = ops;

    qtest_irq_intercept_in(global_qtest, "ioapic");

    if (ops && ops->init_allocator) {

        VAR_1->alloc = ops->init_allocator(ALLOC_NO_FLAGS);

    }



    g_free(VAR_0);

    return VAR_1;

}

QOSState *FUNC_0(QOSOps *ops, const char *cmdline_fmt, va_list ap)
{ char *VAR_0; struct QOSState *VAR_1 = g_malloc(sizeof(QOSState)); VAR_0 = g_strdup_vprintf(cmdline_fmt, ap); VAR_1->qts = qtest_start(VAR_0); VAR_1->ops = ops; qtest_irq_intercept_in(global_qtest, "ioapic"); if (ops && ops->init_allocator) { VAR_1->alloc = ops->init_allocator(ALLOC_NO_FLAGS); } g_free(VAR_0); return VAR_1; }