Logo des Repositoriums
 

Finding minimum type error sources

dc.contributor.authorPavlinovic, Zvonimir
dc.contributor.authorKing, Tim
dc.contributor.authorWies, Thomas
dc.contributor.editorAßmann, Uwe
dc.contributor.editorDemuth, Birgit
dc.contributor.editorSpitta, Thorsten
dc.contributor.editorPüschel, Georg
dc.contributor.editorKaiser, Ronny
dc.date.accessioned2017-06-30T20:56:20Z
dc.date.available2017-06-30T20:56:20Z
dc.date.issued2015
dc.description.abstractAutomatic type inference is a popular feature of functional programming languages. If a program cannot be typed, the compiler reports the first location with a type conflict as the source of the error. However, this is often not the true error source. We present a general algorithm that helps to produce more meaningful type error reports. The algorithm finds all minimum error sources, where the definition of minimum is given by a compiler-specific ranking criterion (e.g. minimizing the program changes needed to fix the error). The approach works by reducing the search for minimum error sources to an optimization problem that we formulate in terms of weighted maximum satisfiability modulo theories (MaxSMT). This formulation allows us to build on SMT solvers to support rich type systems and, at the same time, abstract from the concrete ranking criterion. We have implemented an instance of our algorithm targeted at OCaml programs. Our evaluation shows that our approach significantly improves upon the quality of type error reports produced by state of the art compilers. This work appeared at OOPSLA 2014 where it won a Best Paper Award.en
dc.identifier.isbn978-3-88579-633-6
dc.identifier.pissn1617-5468
dc.language.isoen
dc.publisherGesellschaft für Informatik e.V.
dc.relation.ispartofSoftware-engineering and management 2015
dc.relation.ispartofseriesLecture Notes in Informatics (LNI) - Proceedings, Volume P-239
dc.titleFinding minimum type error sourcesen
dc.typeText/Conference Paper
gi.citation.endPage44
gi.citation.publisherPlaceBonn
gi.citation.startPage43
gi.conference.date17.-20. März 2015
gi.conference.locationDresden

Dateien

Originalbündel
1 - 1 von 1
Lade...
Vorschaubild
Name:
43.pdf
Größe:
26.73 KB
Format:
Adobe Portable Document Format