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