Programming-by-Example with Nested Examples

被引:0
|
作者
Katz, Tomer [1 ]
Peleg, Hila [1 ]
机构
[1] Technion, Haifa, Israel
关键词
D O I
10.1109/VL-HCC57772.2023.00053
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
As program synthesizers become integrated into IDEs, programmers combine synthesized code and manuallywritten code within the same project. When documenting the provenance of synthesized code, this can result in a larger segment of example-specified code encompassing a smaller one. In this state, the programmer can decide to re-run the synthesizer, either to refactor the code or to automatically correct manuallywritten code. State of the art Programming by Example synthesizers cannot handle this nested specification: synthesis will only consider the outer-most block, discarding any code or additional specification inside. Moreover, the outer-most scope contains less specifications, but describes more functionality, which can easily result in the synthesizer either timing out or overfitting. To address this information loss we propose a technique that can be used to re-synthesize code from previously documented nested specifications, preserving the information that the internal specifications contain. We then evaluated our implementation on 12 benchmarks based on SyGus competition benchmarks, and show that the technique allows the user to re-synthesize larger code segments while adding fewer examples compared to just using the specification from the outer-most block.
引用
收藏
页码:280 / 282
页数:3
相关论文
共 50 条
  • [41] A principled approach to programming with nested types in Haskell
    Johann, Patricia
    Ghani, Neil
    Higher-Order and Symbolic Computation, 2009, 22 (02) : 155 - 189
  • [42] More types for nested data parallel programming
    Chakravarty, MMT
    Keller, G
    ACM SIGPLAN NOTICES, 2000, 35 (09) : 94 - 105
  • [43] Trasgo: a nested-parallel programming system
    Arturo González-Escribano
    Diego R. Llanos
    The Journal of Supercomputing, 2011, 58 : 226 - 234
  • [44] Trasgo: a nested-parallel programming system
    Gonzalez-Escribano, Arturo
    Llanos, Diego R.
    JOURNAL OF SUPERCOMPUTING, 2011, 58 (02): : 226 - 234
  • [45] Programming by Example Made Easy
    Wu, Jiarong
    Wei, Lili
    Jiang, Yanyan
    Cheung, Shing-Chi
    Ren, Luyao
    Xu, Chang
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2024, 33 (01)
  • [46] For Example: How to Use Examples in Political Science
    Dryzek, John S.
    AMERICAN POLITICAL SCIENCE REVIEW, 2025, 119 (01) : 449 - 461
  • [47] For example: On the rhetorical, epistemological and practical sense of examples
    De Requena Farre, Juan A. Gonzalez
    ALPHA-REVISTA DE ARTES LETRAS Y FILOSOFIA, 2008, (27): : 29 - 50
  • [48] A Frankfurt Example to End All Frankfurt Examples
    Cain, James
    PHILOSOPHIA, 2014, 42 (01) : 83 - 93
  • [49] A Frankfurt Example to End All Frankfurt Examples
    James Cain
    Philosophia, 2014, 42 : 83 - 93
  • [50] The Example of History and the History of Examples in Political Theory
    Dienstag, Joshua Foa
    NEW LITERARY HISTORY, 2017, 48 (03) : 483 - 502