BoomerangDecompiler / boomerang

Boomerang Decompiler - Fighting the code-rot :)
Other
374 stars 59 forks source link

Do not output empty else #91

Closed rfalke closed 6 years ago

rfalke commented 6 years ago

Exe: https://github.com/rfalke/decompiler-subjects/blob/master/from_holdec/dmi/cfg/ia32_elf/subject.exe Boomerang: boomerang-cli v0.3.99-alpha-1757-gd6a5867

Output (see https://github.com/rfalke/decompiler-subjects/blob/master/from_holdec/dmi/cfg/ia32_elf/by_boomerang-ng.c):

void basic_1_if(__size32 param1)
{
    if (param1 == 42) {
        puts("if block");
    }
    else {
    }
    return;
}

There is no reason to output the empty else.