bool ReplaceInstructionWithNopCanExecute(InstructionVM[] instrs) { return instrs.Any(a => a.Code != Code.Nop); }
bool InvertBranchCanExecute(InstructionVM[] instrs) { return instrs.Any(a => InvertBcc(a.Code) != null); }
bool RemoveInstructionAndAddPopsCanExecute(InstructionVM[] instrs) { return instrs.Any(a => GetInstructionPops(a) != null); }
bool ConvertBranchToUnconditionalBranchCanExecute(InstructionVM[] instrs) { return instrs.Any(a => GetBccPopCount(a.Code) > 0); }