static void test_ide_mbr(bool use_device, MBRcontents mbr)

{

    char *argv[256];

    int argc;

    Backend i;

    const char *dev;



    argc = setup_common(argv, ARRAY_SIZE(argv));

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

        cur_ide[i] = &hd_chst[i][mbr];

        dev = use_device ? (is_hd(cur_ide[i]) ? "ide-hd" : "ide-cd") : NULL;

        argc = setup_ide(argc, argv, ARRAY_SIZE(argv), i, dev, i, mbr, "");

    }

    qtest_start(g_strjoinv(" ", argv));

    test_cmos();

    qtest_end();

}

static void test_ide_mbr(bool use_device, MBRcontents mbr)

{

    char *argv[256];

    int argc;

    Backend i;

    const char *dev;



    argc = setup_common(argv, ARRAY_SIZE(argv));

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

        cur_ide[i] = &hd_chst[i][mbr];

        dev = use_device ? (is_hd(cur_ide[i]) ? "ide-hd" : "ide-cd") : NULL;

        argc = setup_ide(argc, argv, ARRAY_SIZE(argv), i, dev, i, mbr, "");

    }

    qtest_start(g_strjoinv(" ", argv));

    test_cmos();

    qtest_end();

}

    char *argv[256];     qtest_start(g_strjoinv(" ", argv));     char *argv[256];     argc = setup_common(argv, ARRAY_SIZE(argv));         argc = setup_ide(argc, argv, ARRAY_SIZE(argv), i, dev, i, mbr, "");     qtest_start(g_strjoinv(" ", argv));     argc = setup_common(argv, ARRAY_SIZE(argv));     qtest_start(g_strjoinv(" ", argv));     char *argv[256];     argc = setup_common(argv, ARRAY_SIZE(argv));     qtest_start(g_strjoinv(" ", argv));
static void FUNC_0(bool VAR_0, MBRcontents VAR_1)

{

    char *VAR_2[256];

    int VAR_3;

    Backend i;

    const char *VAR_4;



    VAR_3 = setup_common(VAR_2, ARRAY_SIZE(VAR_2));

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

        cur_ide[i] = &hd_chst[i][VAR_1];

        VAR_4 = VAR_0 ? (is_hd(cur_ide[i]) ? "ide-hd" : "ide-cd") : NULL;

        VAR_3 = setup_ide(VAR_3, VAR_2, ARRAY_SIZE(VAR_2), i, VAR_4, i, VAR_1, "");

    }

    qtest_start(g_strjoinv(" ", VAR_2));

    test_cmos();

    qtest_end();

}

static void FUNC_0(bool VAR_0, MBRcontents VAR_1)
{ char *VAR_2[256]; int VAR_3; Backend i; const char *VAR_4; VAR_3 = setup_common(VAR_2, ARRAY_SIZE(VAR_2)); for (i = 0; i < backend_last; i++) { cur_ide[i] = &hd_chst[i][VAR_1]; VAR_4 = VAR_0 ? (is_hd(cur_ide[i]) ? "ide-hd" : "ide-cd") : NULL; VAR_3 = setup_ide(VAR_3, VAR_2, ARRAY_SIZE(VAR_2), i, VAR_4, i, VAR_1, ""); } qtest_start(g_strjoinv(" ", VAR_2)); test_cmos(); qtest_end(); }