static void dump_aml_files(test_data *data)

{

    AcpiSdtTable *sdt;

    GError *error = NULL;

    gint fd;

    ssize_t ret;

    int i;



    for (i = 0; i < data->ssdt_tables->len; ++i) {

        sdt = &g_array_index(data->ssdt_tables, AcpiSdtTable, i);

        g_assert(sdt->aml);



        fd = g_file_open_tmp("aml-XXXXXX", &sdt->aml_file, &error);

        g_assert_no_error(error);



        ret = qemu_write_full(fd, sdt, sizeof(AcpiTableHeader));

        g_assert(ret == sizeof(AcpiTableHeader));

        ret = qemu_write_full(fd, sdt->aml, sdt->aml_len);

        g_assert(ret == sdt->aml_len);



        close(fd);

    }

}

static void dump_aml_files(test_data *data)

{

    AcpiSdtTable *sdt;

    GError *error = NULL;

    gint fd;

    ssize_t ret;

    int i;



    for (i = 0; i < data->ssdt_tables->len; ++i) {

        sdt = &g_array_index(data->ssdt_tables, AcpiSdtTable, i);

        g_assert(sdt->aml);



        fd = g_file_open_tmp("aml-XXXXXX", &sdt->aml_file, &error);

        g_assert_no_error(error);



        ret = qemu_write_full(fd, sdt, sizeof(AcpiTableHeader));

        g_assert(ret == sizeof(AcpiTableHeader));

        ret = qemu_write_full(fd, sdt->aml, sdt->aml_len);

        g_assert(ret == sdt->aml_len);



        close(fd);

    }

}

static void FUNC_0(test_data *VAR_0)

{

    AcpiSdtTable *sdt;

    GError *error = NULL;

    gint fd;

    ssize_t ret;

    int VAR_1;



    for (VAR_1 = 0; VAR_1 < VAR_0->ssdt_tables->len; ++VAR_1) {

        sdt = &g_array_index(VAR_0->ssdt_tables, AcpiSdtTable, VAR_1);

        g_assert(sdt->aml);



        fd = g_file_open_tmp("aml-XXXXXX", &sdt->aml_file, &error);

        g_assert_no_error(error);



        ret = qemu_write_full(fd, sdt, sizeof(AcpiTableHeader));

        g_assert(ret == sizeof(AcpiTableHeader));

        ret = qemu_write_full(fd, sdt->aml, sdt->aml_len);

        g_assert(ret == sdt->aml_len);



        close(fd);

    }

}

static void FUNC_0(test_data *VAR_0)
{ AcpiSdtTable *sdt; GError *error = NULL; gint fd; ssize_t ret; int VAR_1; for (VAR_1 = 0; VAR_1 < VAR_0->ssdt_tables->len; ++VAR_1) { sdt = &g_array_index(VAR_0->ssdt_tables, AcpiSdtTable, VAR_1); g_assert(sdt->aml); fd = g_file_open_tmp("aml-XXXXXX", &sdt->aml_file, &error); g_assert_no_error(error); ret = qemu_write_full(fd, sdt, sizeof(AcpiTableHeader)); g_assert(ret == sizeof(AcpiTableHeader)); ret = qemu_write_full(fd, sdt->aml, sdt->aml_len); g_assert(ret == sdt->aml_len); close(fd); } }