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 条
  • [31] SOME EXAMPLES OF BAYESIAN ADAPTIVE PROGRAMMING
    SAKAGUCHI, M
    INFORMATION AND CONTROL, 1966, 9 (03): : 230 - +
  • [32] PROGRAMMING BY ALGORITHMS - PRESENTATION AND EXAMPLES OF IMPLANTATION
    JAMY, C
    VANBREUGEL, M
    POTEL, A
    RECHERCHE AEROSPATIALE, 1980, (06): : 445 - 457
  • [33] PROGRAMMING BY EXPRESSION REFINEMENT - A SEQUENCE OF EXAMPLES
    MORRIS, JM
    STRUCTURED PROGRAMMING, 1990, 11 (04): : 189 - 197
  • [34] FlashNormalize: Programming by Examples for Text Normalization
    Kini, Dileep
    Gulwani, Sumit
    PROCEEDINGS OF THE TWENTY-FOURTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE (IJCAI), 2015, : 776 - 783
  • [35] Implementing Babylonian/S by Putting Examples Into Contexts Tracing Instrumentation for Example-based Live Programming as a Use Case
    Rein, Patrick
    Lincke, Jens
    Ramson, Stefan
    Mattis, Toni
    Niephaus, Fabio
    Hirschfeld, Robert
    PROCEEDINGS OF THE WORKSHOP ON CONTEXT-ORIENTED PROGRAMMING (COP'19), 2019, : 17 - 23
  • [36] A convex programming with nested constraints on the amount of resources
    Hohzaki, Ryusuke
    INTERNATIONAL JOURNAL OF COMPUTER MATHEMATICS, 2006, 83 (10) : 703 - 721
  • [37] Visual generalization in programming by example
    St Amant, R
    Lieberman, H
    Potter, R
    Zettlemoyer, L
    COMMUNICATIONS OF THE ACM, 2000, 43 (03) : 107 - 114
  • [38] Correctness in programming. An example
    Alderighi, M.
    Sechi, G.R.
    Vaccaro, R.
    Valsecchi, M.
    Verdoscia, L.
    Proceedings of the IASTED International Symposium on Applied Informatics, 1990,
  • [39] RECREATION MANAGEMENT - PROGRAMMING EXAMPLE
    WALTER, GR
    SCHOFIELD, JA
    LAND ECONOMICS, 1977, 53 (02) : 212 - 225
  • [40] Dynamic programming: An introduction by example
    Zietz, Joachim
    JOURNAL OF ECONOMIC EDUCATION, 2007, 38 (02): : 165 - 186