x87 / scout

Scout Decompiler
https://scout.sannybuilder.com/
Other
9 stars 0 forks source link

Conditions are not structured inside a loop #12

Closed x87 closed 4 years ago

x87 commented 6 years ago

Currently the loop structuring algorithm is greedy and feeds all underlying basic blocks from start to finish as the loop body. But the steps must be as follows: 1) the loop header and latching node are marked as such, 2) the inner conditions are structured 3) the loop body is replaced with a single graph node.