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); }
// Returns true if it's a conditional branch public bool isConditionalBranch() { return(LastInstr.isConditionalBranch()); }