VSL 2014: VIENNA SUMMER OF LOGIC 2014

Finding Minimum Type Error Sources

Authors: Zvonimir Pavlinovic, Tim King and Thomas Wies

PapersPapers with AbstractsPrefaceAuthor IndexKeyword IndexAdditional files

Paper Information

Title:Finding Minimum Type Error Sources
Authors:Zvonimir Pavlinovic, Tim King and Thomas Wies
Proceedings:ADDCT 2014 Proceedings
Editors: Viorica Sofronie-Stokkermans, Silvio Ghilardi and Uli Sattler
Keywords:Type systems, Error localization, Maximum satisfiability modulo theories
Abstract:

ABSTRACT. Automatic type inference is a popular feature of functional program- ming languages. If a program cannot be typed, the compiler typically reports a single program location in its error message. This location is the point where the type inference failed, but not necessarily the actual source of the error. Other potential error sources are not even considered. Hence, the compiler often misses the true error source, which increases debugging time for the programmer. In this paper, we present a general framework for automatic localization of type errors. Our algorithm finds all minimum error sources, where the exact definition of minimum is given in terms of a compiler-specific ranking criterion. Compilers can use minimum error sources to produce more meaningful error reports, and for automatic error correction. Our approach works by reducing type inference to constraint satisfaction. We then formulate the problem of computing mini- mum error sources in terms of weighted maximum satisfiability modulo theories (MaxSMT). Ranking criteria are incorporated by assigning weights to typing constraints. The reduction to MaxSMT allows us to build on decision procedures to support rich type systems.

Pages:4
Talk:Jul 18 12:30
Paper:
Disclaimer | Powered by EasyChair Smart Program