Use an OrderedTable in the flattenbranches pass rather than a plain Table
Use an OrderedTable in the flattenbranches pass rather than a plain Table

This means that the assignment statements in the output are generally in the same order as they were in the input.

k12a-cpu/kaldwin,k12a-cpu/kaldwin