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