~tmpod/brainfucc

5dad431b4bf99ec64dacae277b218a90ccc8f0ab — jpl 1 year, 1 month ago 79c586a
Remove small optimization when parsing the input instruction.

Any instructions following INP were being ignored.
1 files changed, 0 insertions(+), 5 deletions(-)

M src/ir.rs
M src/ir.rs => src/ir.rs +0 -5
@@ 57,11 57,6 @@ impl BrainfuckIR {
                }
            };

            // Tiny optimization I suppose
            if let Some(BrainfuckInstruction::INP) = instructions.last() {
                continue;
            }

            instructions.push(inst);
        }