Exemplo n.º 1
0
 public void remove(int index, int num)
 {
     if (index + num > instructions.Count)
     {
         throw new ApplicationException("Overflow");
     }
     if (num > 0 && index + num == instructions.Count && LastInstr.isConditionalBranch())
     {
         disconnectFromFallThroughAndTargets();
     }
     instructions.RemoveRange(index, num);
 }
Exemplo n.º 2
0
 // Returns true if it's a conditional branch
 public bool isConditionalBranch()
 {
     return(LastInstr.isConditionalBranch());
 }