Skip to main content
Erschienen in:
Buchtitelbild

Open Access 2020 | OriginalPaper | Buchkapitel

Solving Program Sketches with Large Integer Values

verfasst von : Rong Pan, Qinheping Hu, Rishabh Singh, Loris D’Antoni

Erschienen in: Programming Languages and Systems

Verlag: Springer International Publishing

loading …

Program sketching is a program synthesis paradigm in which the programmer provides a partial program with holes and assertions. The goal of the synthesizer is to automatically find integer values for the holes so that the resulting program satisfies the assertions. The most popular sketching tool, Sketch, can efficiently solve complex program sketches, but uses an integer encoding that often performs poorly if the sketched program manipulates large integer values. In this paper, we propose a new solving technique that allows Sketch to handle large integer values while retaining its integer encoding. Our technique uses a result from number theory, the Chinese Remainder Theorem, to rewrite program sketches to only track the remainders of certain variable values with respect to several prime numbers. We prove that our transformation is sound and the encoding of the resulting programs are exponentially more succinct than existing Sketch encodings. We evaluate our technique on a variety of benchmarks manipulating large integer values. Our technique provides speedups against both existing Sketch solvers and can solve benchmarks that existing Sketch solvers cannot handle.

download
DOWNLOAD
print
DRUCKEN
Metadaten
Titel
Solving Program Sketches with Large Integer Values
verfasst von
Rong Pan
Qinheping Hu
Rishabh Singh
Loris D’Antoni
Copyright-Jahr
2020
DOI
https://doi.org/10.1007/978-3-030-44914-8_21