A type-directed algorithm to generate random well-typed Java 8 programs.

Nenhuma Miniatura disponível
Data
2020
Título da Revista
ISSN da Revista
Título de Volume
Editor
Resumo
Property-based testing of compilers or programming language semantics is difficult to accomplish because it is hard to design a random generator for valid programs. Most compiler test tools do not have a well-specified way for generating type-correct programs, which is a requirement for such testing activities. In this project, we formalize a typedirected procedure to generate random well-typed Java 8 programs in the context of Featherweight Java, extending it with interfaces, λ-expressions and default methods. We implement the approach using the Haskell programming language and verify it against relevant properties using QuickCheck, a library for property-based testing.
Descrição
Palavras-chave
Featherweight Java, Property-based testing, QuickCheck
Citação
FEITOSA, S. da S.; RIBEIRO, R. G.; BOIS, A. R. D. A type-directed algorithm to generate random well-typed Java 8 programs. Science of Computer Programming, v. 196, artigo 102494, 2020. Disponível em: <https://www.sciencedirect.com/science/article/abs/pii/S0167642320301039?via%3Dihub>. Acesso em: 25 ago. 2021.