staticafi/llvm2c

Flatten the structure of outputted program

tomsik68 opened this issue · 0 comments

For example, in this snippet:

if (condition) {
    return;
} else {
    /*
    some
    long
    computation
    */
}

The "positive" branch of if statement always returns, so there is no point in having else there. The program would be a lot more readable if the else wasn't there and the block inside else continued with the same indent level as the if statement.