Type-based amortized resource analysis with integers and arrays*. (2015)