Abstracted line-iteration