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