static void test_smbios_ep_table(test_data *data)

{

    struct smbios_entry_point *ep_table = &data->smbios_ep_table;

    uint32_t addr = data->smbios_ep_addr;



    ACPI_READ_ARRAY(ep_table->anchor_string, addr);

    g_assert(!memcmp(ep_table->anchor_string, "_SM_", 4));

    ACPI_READ_FIELD(ep_table->checksum, addr);

    ACPI_READ_FIELD(ep_table->length, addr);

    ACPI_READ_FIELD(ep_table->smbios_major_version, addr);

    ACPI_READ_FIELD(ep_table->smbios_minor_version, addr);

    ACPI_READ_FIELD(ep_table->max_structure_size, addr);

    ACPI_READ_FIELD(ep_table->entry_point_revision, addr);

    ACPI_READ_ARRAY(ep_table->formatted_area, addr);

    ACPI_READ_ARRAY(ep_table->intermediate_anchor_string, addr);

    g_assert(!memcmp(ep_table->intermediate_anchor_string, "_DMI_", 5));

    ACPI_READ_FIELD(ep_table->intermediate_checksum, addr);

    ACPI_READ_FIELD(ep_table->structure_table_length, addr);

    g_assert_cmpuint(ep_table->structure_table_length, >, 0);

    ACPI_READ_FIELD(ep_table->structure_table_address, addr);

    ACPI_READ_FIELD(ep_table->number_of_structures, addr);

    g_assert_cmpuint(ep_table->number_of_structures, >, 0);

    ACPI_READ_FIELD(ep_table->smbios_bcd_revision, addr);

    g_assert(!acpi_checksum((uint8_t *)ep_table, sizeof *ep_table));

    g_assert(!acpi_checksum((uint8_t *)ep_table + 0x10,

                            sizeof *ep_table - 0x10));

}

static void test_smbios_ep_table(test_data *data)

{

    struct smbios_entry_point *ep_table = &data->smbios_ep_table;

    uint32_t addr = data->smbios_ep_addr;



    ACPI_READ_ARRAY(ep_table->anchor_string, addr);

    g_assert(!memcmp(ep_table->anchor_string, "_SM_", 4));

    ACPI_READ_FIELD(ep_table->checksum, addr);

    ACPI_READ_FIELD(ep_table->length, addr);

    ACPI_READ_FIELD(ep_table->smbios_major_version, addr);

    ACPI_READ_FIELD(ep_table->smbios_minor_version, addr);

    ACPI_READ_FIELD(ep_table->max_structure_size, addr);

    ACPI_READ_FIELD(ep_table->entry_point_revision, addr);

    ACPI_READ_ARRAY(ep_table->formatted_area, addr);

    ACPI_READ_ARRAY(ep_table->intermediate_anchor_string, addr);

    g_assert(!memcmp(ep_table->intermediate_anchor_string, "_DMI_", 5));

    ACPI_READ_FIELD(ep_table->intermediate_checksum, addr);

    ACPI_READ_FIELD(ep_table->structure_table_length, addr);

    g_assert_cmpuint(ep_table->structure_table_length, >, 0);

    ACPI_READ_FIELD(ep_table->structure_table_address, addr);

    ACPI_READ_FIELD(ep_table->number_of_structures, addr);

    g_assert_cmpuint(ep_table->number_of_structures, >, 0);

    ACPI_READ_FIELD(ep_table->smbios_bcd_revision, addr);

    g_assert(!acpi_checksum((uint8_t *)ep_table, sizeof *ep_table));

    g_assert(!acpi_checksum((uint8_t *)ep_table + 0x10,

                            sizeof *ep_table - 0x10));

}

static void test_smbios_ep_table(test_data *data)     g_assert(!memcmp(ep_table->anchor_string, "_SM_", 4));     g_assert(!memcmp(ep_table->intermediate_anchor_string, "_DMI_", 5));     g_assert_cmpuint(ep_table->structure_table_length, >, 0);     g_assert_cmpuint(ep_table->number_of_structures, >, 0);     g_assert(!acpi_checksum((uint8_t *)ep_table, sizeof *ep_table));     g_assert(!acpi_checksum((uint8_t *)ep_table + 0x10,                             sizeof *ep_table - 0x10));
static void FUNC_0(test_data *VAR_0)

{

    struct smbios_entry_point *VAR_1 = &VAR_0->smbios_ep_table;

    uint32_t addr = VAR_0->smbios_ep_addr;



    ACPI_READ_ARRAY(VAR_1->anchor_string, addr);

    g_assert(!memcmp(VAR_1->anchor_string, "_SM_", 4));

    ACPI_READ_FIELD(VAR_1->checksum, addr);

    ACPI_READ_FIELD(VAR_1->length, addr);

    ACPI_READ_FIELD(VAR_1->smbios_major_version, addr);

    ACPI_READ_FIELD(VAR_1->smbios_minor_version, addr);

    ACPI_READ_FIELD(VAR_1->max_structure_size, addr);

    ACPI_READ_FIELD(VAR_1->entry_point_revision, addr);

    ACPI_READ_ARRAY(VAR_1->formatted_area, addr);

    ACPI_READ_ARRAY(VAR_1->intermediate_anchor_string, addr);

    g_assert(!memcmp(VAR_1->intermediate_anchor_string, "_DMI_", 5));

    ACPI_READ_FIELD(VAR_1->intermediate_checksum, addr);

    ACPI_READ_FIELD(VAR_1->structure_table_length, addr);

    g_assert_cmpuint(VAR_1->structure_table_length, >, 0);

    ACPI_READ_FIELD(VAR_1->structure_table_address, addr);

    ACPI_READ_FIELD(VAR_1->number_of_structures, addr);

    g_assert_cmpuint(VAR_1->number_of_structures, >, 0);

    ACPI_READ_FIELD(VAR_1->smbios_bcd_revision, addr);

    g_assert(!acpi_checksum((uint8_t *)VAR_1, sizeof *VAR_1));

    g_assert(!acpi_checksum((uint8_t *)VAR_1 + 0x10,

                            sizeof *VAR_1 - 0x10));

}

static void FUNC_0(test_data *VAR_0)
{ struct smbios_entry_point *VAR_1 = &VAR_0->smbios_ep_table; uint32_t addr = VAR_0->smbios_ep_addr; ACPI_READ_ARRAY(VAR_1->anchor_string, addr); g_assert(!memcmp(VAR_1->anchor_string, "_SM_", 4)); ACPI_READ_FIELD(VAR_1->checksum, addr); ACPI_READ_FIELD(VAR_1->length, addr); ACPI_READ_FIELD(VAR_1->smbios_major_version, addr); ACPI_READ_FIELD(VAR_1->smbios_minor_version, addr); ACPI_READ_FIELD(VAR_1->max_structure_size, addr); ACPI_READ_FIELD(VAR_1->entry_point_revision, addr); ACPI_READ_ARRAY(VAR_1->formatted_area, addr); ACPI_READ_ARRAY(VAR_1->intermediate_anchor_string, addr); g_assert(!memcmp(VAR_1->intermediate_anchor_string, "_DMI_", 5)); ACPI_READ_FIELD(VAR_1->intermediate_checksum, addr); ACPI_READ_FIELD(VAR_1->structure_table_length, addr); g_assert_cmpuint(VAR_1->structure_table_length, >, 0); ACPI_READ_FIELD(VAR_1->structure_table_address, addr); ACPI_READ_FIELD(VAR_1->number_of_structures, addr); g_assert_cmpuint(VAR_1->number_of_structures, >, 0); ACPI_READ_FIELD(VAR_1->smbios_bcd_revision, addr); g_assert(!acpi_checksum((uint8_t *)VAR_1, sizeof *VAR_1)); g_assert(!acpi_checksum((uint8_t *)VAR_1 + 0x10,
sizeof *VAR_1 - 0x10)); }