Abstract
Symbolic execution is a technique for automatic software validation and verification. New symbolic executors regularly appear for both existing and new languages and such symbolic executors are generally manually (re)implemented each time we want to support a new language. We propose to automatically generate symbolic executors from language definitions, and present a technique for mechanically (but as yet, manually) deriving a symbolic executor from a definitional interpreter. The idea is that language designers define their language as a monadic definitional interpreter, where the monad of the interpreter defines the meaning of branch points. Developing a symbolic executor for a language is a matter of changing the monadic interpretation of branch points. In this paper, we illustrate the technique on a language with recursive functions and pattern matching, and use the derived symbolic executor to automatically generate test cases for definitional interpreters implemented in our defined language.
Original language | English |
---|---|
Title of host publication | META 2019 - Proceedings of the 4th ACM SIGPLAN International Workshop on Meta-Programming Techniques and Reflection, co-located with SPLASH 2019 |
Editors | Christophe Scholliers, Guido Chari |
Publisher | Association for Computing Machinery (ACM) |
Pages | 11-20 |
Number of pages | 10 |
ISBN (Electronic) | 9781450369855 |
DOIs | |
Publication status | Published - 20 Oct 2019 |
Event | 4th ACM SIGPLAN International Workshop on Meta-Programming Techniques and Reflection, META 2019, co-located with SPLASH 2019 - Athens, Greece Duration: 20 Oct 2019 → … |
Conference
Conference | 4th ACM SIGPLAN International Workshop on Meta-Programming Techniques and Reflection, META 2019, co-located with SPLASH 2019 |
---|---|
Country/Territory | Greece |
City | Athens |
Period | 20/10/19 → … |
Keywords
- Definitional Interpreter
- Haskell
- Monads
- Symbolic Execution