yegord / snowman

Snowman decompiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should output a proper for loop

rfalke opened this issue · comments

Exe: https://github.com/rfalke/decompiler-subjects/blob/master/from_holdec/dmi/cfg/ia32_elf/subject.exe
Snowman: d7dee56

Output:

int32_t basic_7_for_loop(uint32_t a1) {
    int32_t ebx2;
    int32_t v3;

    ebx2 = 48;
    do {
        v3 = ebx2;
        ++ebx2;
        fun_8048370(v3);
    } while (ebx2 != 58);
    return 0;
}

Snowman should output a regular for loop.