51. Learning the Language of Error
- Author
-
Ofer Strichman, Martin Chapman, Pascal Kesseli, Daniel Kroening, Hana Chockler, and Michael Tautschnig
- Subjects
TheoryofComputation_COMPUTATIONBYABSTRACTDEVICES ,Theoretical computer science ,Powerset construction ,Deterministic automaton ,Computer science ,Continuous automaton ,Probabilistic automaton ,Pushdown automaton ,Timed automaton ,Büchi automaton ,Two-way deterministic finite automaton ,Algorithm ,Computer Science::Formal Languages and Automata Theory - Abstract
We propose to harness Angluin’s \(L^*\) algorithm for learning a deterministic finite automaton that describes the possible scenarios under which a given program error occurs. The alphabet of this automaton is given by the user (for instance, a subset of the function call sites or branches), and hence the automaton describes a user-defined abstraction of those scenarios. More generally, the same technique can be used for visualising the behavior of a program or parts thereof. This can be used, for example, for visually comparing different versions of a program, by presenting an automaton for the behavior in the symmetric difference between them, or for assisting in merging several development branches. We present initial experiments that demonstrate the power of an abstract visual representation of errors and of program segments.
- Published
- 2015