Program synthesis is the mechanised construction of software. One of the main difficulties is the efficient exploration of the very large solution space, and tools often require a user provided syntactic restriction of the search space. While useful in general, such syntactic restrictions provide little help for the generation of programs that contain non-trivial constants, unless the user is able to provide the constants in advance. This is a fundamentally difficult task for state-of-the-art synthesisers. We propose a new approach to the synthesis of programs with non-trivial constants that combines the strengths of a counterexample-guided inductive synthesiser with those of a theory solver, exploring the solution space more efficiently without relying on user guidance. We call this approach CEGIS(T), where T is a first-order theory. We present two exemplars, one based on Fourier-Motzkin (FM) variable elimination and one based on first-order satisfiability. We demonstrate the practical value of CEGIS(T) by automatically synthesising programs for a set of intricate benchmarks. Additionally, we present a case study where we integrate CEGIS(T) within the mature synthesiser CVC4 and show that CEGIS(T) improves CVC4's results.
机构:
Univ Calif Berkeley, Dept Phys, Berkeley, CA 94720 USAUniv Calif Berkeley, Dept Phys, Berkeley, CA 94720 USA
Tsui, Lokman
Li, Zi-Xiang
论文数: 0引用数: 0
h-index: 0
机构:
Univ Calif Berkeley, Dept Phys, Berkeley, CA 94720 USAUniv Calif Berkeley, Dept Phys, Berkeley, CA 94720 USA
Li, Zi-Xiang
Huang, Yen-Ta
论文数: 0引用数: 0
h-index: 0
机构:
Univ Calif Berkeley, Dept Phys, Berkeley, CA 94720 USAUniv Calif Berkeley, Dept Phys, Berkeley, CA 94720 USA
Huang, Yen-Ta
Louie, Steven G.
论文数: 0引用数: 0
h-index: 0
机构:
Univ Calif Berkeley, Dept Phys, Berkeley, CA 94720 USA
Lawrence Berkeley Natl Lab, Mat Sci Div, Berkeley, CA 94720 USAUniv Calif Berkeley, Dept Phys, Berkeley, CA 94720 USA
Louie, Steven G.
Lee, Dung-Hai
论文数: 0引用数: 0
h-index: 0
机构:
Univ Calif Berkeley, Dept Phys, Berkeley, CA 94720 USA
Lawrence Berkeley Natl Lab, Mat Sci Div, Berkeley, CA 94720 USAUniv Calif Berkeley, Dept Phys, Berkeley, CA 94720 USA
机构:
Department of Physics,University of CaliforniaDepartment of Physics,University of California
Zi-Xiang Li
论文数: 引用数:
h-index:
机构:
Yen-Ta Huang
Steven G. Louie
论文数: 0引用数: 0
h-index: 0
机构:
Department of Physics,University of California
Materials Sciences Division,Lawrence Berkeley National LaboratoryDepartment of Physics,University of California