Generating Well-Typed Terms That Are Not “Useless”
Generating Well-Typed Terms That Are Not “Useless”
复制标题
生成类型正确但并非“无用”的术语
DOI:
10.1145/3632919
复制
发表时间:
2024
影响因子:
--
通讯作者:
Lampropoulos, Leonidas
中科院分区:
文献类型:
--
作者:
Frank, Justin;Quiring, Benjamin;Lampropoulos, Leonidas
Random generation of well-typed terms lies at the core of effective random testing of compilers for functional languages. Existing techniques have had success following a top-down type-oriented approach to generation that makes choices locally, which suffers from an inherent limitation: the type of an expression is often generated independently from the expression itself. Such generation frequently yields functions with argument types that cannot be used to produce a result in a meaningful way, leaving those arguments unused. Such "use-less" functions can hinder both performance, as the argument generation code is dead but still needs to be compiled, and effectiveness, as a lot of interesting optimizations are tested less frequently.In this paper, we introduce a novel algorithm that is significantly more effective at generating functions that use their arguments. We formalize both the "local" and the "nonlocal" algorithms as step-relations in an extension of the simply-typed lambda calculus with type and arguments holes, showing how delaying the generation of types for subexpressions by allowing nonlocal generation steps leads to "useful" functions.
登录
查看更多内容
DOI:
--
发表时间:
2015
期刊:
European Symposium on Programming
影响因子:
--
作者:
B. Fetscher;Koen Claessen;Michal H. Palka;John Hughes;R. Findler
通讯作者:
R. Findler
DOI:
10.1109/csf54842.2022.9919657
发表时间:
2022
期刊:
2022 IEEE 35th Computer Security Foundations Symposium (CSF
影响因子:
--
作者:
Li, Liyi;Liu, Yiyun;Postol, Deena;Lampropoulos, Leonidas;Van Horn, David;Hicks, Michael
通讯作者:
Hicks, Michael
DOI:
10.1016/j.entcs.2019.04.002
发表时间:
2019
期刊:
Drug metabolism and disposition: the biological fate of chemicals
影响因子:
--
作者:
Samuel da Silva Feitosa;R. Ribeiro;A. R. D. Bois
通讯作者:
A. R. D. Bois
DOI:
10.1007/978-3-319-51676-9_8
发表时间:
2017
期刊:
Drug metabolism and disposition: the biological fate of chemicals
影响因子:
--
作者:
Maciej Bendkowski;Katarzyna Grygiel;Paul Tarau
通讯作者:
Paul Tarau
DOI:
--
发表时间:
2017
期刊:
International Workshop/Symposium on Logic-based Program Synthesis and Transformation
影响因子:
--
作者:
Gergö Barany
通讯作者:
Gergö Barany