Abstract

• We generalise amortised resource analysis to standard rewriting without presupposing termination due to the small step-semantics. • We overcome earlier restrictions to completely defined, orthogonal, constructor TRSs. • The analysis has been implemented, integrated into TCT and its viability assessed. • It is coupled with the HOCA transformation for an automated analysis of pure OCaml. In this paper we establish an automated amortised resource analysis for term rewrite systems. The method is presented in an inference system akin to a type-and-effect system and gives rise to polynomial bounds on the innermost runtime complexity of the analysed term rewrite system. Our analysis does not restrict the input rewrite system in any way so that rewrite systems may serve as abstractions of first-order, eagerly evaluated functional programs over user-defined inductive data-types. This facilitates integration in a general framework for resource analysis of programs. In particular, we have implemented the method and integrated it into our analysis tool . Furthermore, we have coupled the established analysis with a complexity reflecting transformation from pure OCaml programs. This extends the provided analysis to a fully automated resource analysis of realistic functional programs.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call