From 5dad431b4bf99ec64dacae277b218a90ccc8f0ab Mon Sep 17 00:00:00 2001 From: jpl Date: Mon, 1 Aug 2022 16:14:04 +0100 Subject: [PATCH] Remove small optimization when parsing the input instruction. Any instructions following INP were being ignored. --- src/ir.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ir.rs b/src/ir.rs index 4ae3518..6c49f73 100644 --- a/src/ir.rs +++ b/src/ir.rs @@ -57,11 +57,6 @@ impl BrainfuckIR { } }; - // Tiny optimization I suppose - if let Some(BrainfuckInstruction::INP) = instructions.last() { - continue; - } - instructions.push(inst); } -- 2.45.2