Combinatorial sketching for finite programs

Author:

Solar-Lezama Armando1,Tancau Liviu1,Bodik Rastislav1,Seshia Sanjit1,Saraswat Vijay2

Affiliation:

1. UC Berkeley

2. IBM T.J. Watson Research Center

Abstract

Sketching is a software synthesis approach where the programmer develops a partial implementation - a sketch - and a separate specification of the desired functionality. The synthesizer then completes the sketch to behave like the specification. The correctness of the synthesized implementation is guaranteed by the compiler, which allows, among other benefits, rapid development of highly tuned implementations without the fear of introducing bugs.We develop SKETCH, a language for finite programs with linguistic support for sketching. Finite programs include many highperformance kernels, including cryptocodes. In contrast to prior synthesizers, which had to be equipped with domain-specific rules, SKETCH completes sketches by means of a combinatorial search based on generalized boolean satisfiability. Consequently, our combinatorial synthesizer is complete for the class of finite programs: it is guaranteed to complete any sketch in theory, and in practice has scaled to realistic programming problems.Freed from domain rules, we can now write sketches as simpleto-understand partial programs, which are regular programs in which difficult code fragments are replaced with holes to be filled by the synthesizer. Holes may stand for index expressions, lookup tables, or bitmasks, but the programmer can easily define new kinds of holes using a single versatile synthesis operator.We have used SKETCH to synthesize an efficient implementation of the AES cipher standard. The synthesizer produces the most complex part of the implementation and runs in about an hour.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference17 articles.

1. Programmable reinforcement learning agents;Andre D.;Advances in Neural Information Processing Systems,2001

2. A Transformation System for Developing Recursive Programs

3. Behavioral consistency of C and verilog programs using bounded model checking

4. N. Eézn and N. Sörensson . An extensible SAT-solver. In E. Giunchiglia and A. Tacchella editors SAT volume 2919 of Lecture Notes in Computer Science pages 502 -- 518 . Springer 2003 . N. Eézn and N. Sörensson. An extensible SAT-solver. In E. Giunchiglia and A. Tacchella editors SAT volume 2919 of Lecture Notes in Computer Science pages 502--518. Springer 2003.

5. Advanced encryption standard (AES). U.S. DEPARTMENT OF COMMERCE/National Institute of Standards and Technology November 2001. http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf. Advanced encryption standard (AES). U.S. DEPARTMENT OF COMMERCE/National Institute of Standards and Technology November 2001. http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf.

Cited by 59 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. LLM4TDD: Best Practices for Test Driven Development Using Large Language Models;Proceedings of the 1st International Workshop on Large Language Models for Code;2024-04-20

2. S<sub>YNTH</sub>BX: An Example-guided Synthesizer for Bidirectional Programs on Relations;Journal of Information Processing;2024

3. Bisimulation Learning;Lecture Notes in Computer Science;2024

4. Counterexample Guided Inductive Synthesis Using Large Language Models and Satisfiability Solving;MILCOM 2023 - 2023 IEEE Military Communications Conference (MILCOM);2023-10-30

5. Synthesising Programs with Non-trivial Constants;Journal of Automated Reasoning;2023-05-13

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3