ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)

{

    int name_size = 8; /* "CORE" or "QEMU" rounded */

    size_t elf_note_size = 0;

    int note_head_size;

    const NoteFuncDesc *nf;



    assert(class == ELFCLASS64);

    assert(machine == EM_S390);



    note_head_size = sizeof(Elf64_Nhdr);



    for (nf = note_func; nf->note_contents_func; nf++) {

        elf_note_size = elf_note_size + note_head_size + name_size +

                        nf->contents_size;

    }



    return (elf_note_size) * nr_cpus;

}

ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)

{

    int name_size = 8; 

    size_t elf_note_size = 0;

    int note_head_size;

    const NoteFuncDesc *nf;



    assert(class == ELFCLASS64);

    assert(machine == EM_S390);



    note_head_size = sizeof(Elf64_Nhdr);



    for (nf = note_func; nf->note_contents_func; nf++) {

        elf_note_size = elf_note_size + note_head_size + name_size +

                        nf->contents_size;

    }



    return (elf_note_size) * nr_cpus;

}

    for (nf = note_func; nf->note_contents_func; nf++) {     for (nf = note_func; nf->note_contents_func; nf++) {
ssize_t FUNC_0(int class, int machine, int nr_cpus)

{

    int VAR_0 = 8; 

    size_t elf_note_size = 0;

    int VAR_1;

    const NoteFuncDesc *VAR_2;



    assert(class == ELFCLASS64);

    assert(machine == EM_S390);



    VAR_1 = sizeof(Elf64_Nhdr);



    for (VAR_2 = note_func; VAR_2->note_contents_func; VAR_2++) {

        elf_note_size = elf_note_size + VAR_1 + VAR_0 +

                        VAR_2->contents_size;

    }



    return (elf_note_size) * nr_cpus;

}

ssize_t FUNC_0(int class, int machine, int nr_cpus)
{ int VAR_0 = 8; size_t elf_note_size = 0; int VAR_1; const NoteFuncDesc *VAR_2; assert(class == ELFCLASS64); assert(machine == EM_S390); VAR_1 = sizeof(Elf64_Nhdr); for (VAR_2 = note_func; VAR_2->note_contents_func; VAR_2++) { elf_note_size = elf_note_size + VAR_1 + VAR_0 +
VAR_2->contents_size; } return (elf_note_size) * nr_cpus; }