ComplexityParser: An Automatic Tool for Certifying Poly-Time Complexity of Java Programs
Résumé
ComplexityParser is a static complexity analyzer for Java programs providing the first implementation of a tier-based typing discipline. The input is a file containing Java classes. If the main method can be typed and, provided the program terminates, then the program is guaranteed to do so in polynomial time and hence also to have heap and stack sizes polynomially bounded. The application uses antlr to generate a parse tree on which it performs an efficient type inference: linear in the input size, provided that the method arity is bounded by some constant.
Origine | Fichiers produits par l'(les) auteur(s) |
---|