Resource-guided Program Synthesis. Knoth, T., Wang, D., Polikarpova, N., & Hoffmann, J. In Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation, of PLDI 2019, pages 253–268, New York, NY, USA, 2019. ACM. ZSCC: 0000001 event-place: Phoenix, AZ, USA
Resource-guided Program Synthesis [link]Paper  doi  abstract   bibtex   
This article presents resource-guided synthesis, a technique for synthesizing recursive programs that satisfy both a functional specification and a symbolic resource bound. The technique is type-directed and rests upon a novel type system that combines polymorphic refinement types with potential annotations of automatic amortized resource analysis. The type system enables efficient constraint-based type checking and can express precise refinement-based resource bounds. The proof of type soundness shows that synthesized programs are correct by construction. By tightly integrating program exploration and type checking, the synthesizer can leverage the user-provided resource bound to guide the search, eagerly rejecting incomplete programs that consume too many resources. An implementation in the resource-guided synthesizer ReSyn is used to evaluate the technique on a range of recursive data structure manipulations. The experiments show that ReSyn synthesizes programs that are asymptotically more efficient than those generated by a resource-agnostic synthesizer. Moreover, synthesis with ReSyn is faster than a naive combination of synthesis and resource analysis. ReSyn is also able to generate implementations that have a constant resource consumption for fixed input sizes, which can be used to mitigate side-channel attacks.
@inproceedings{knoth_resource-guided_2019,
	address = {New York, NY, USA},
	series = {{PLDI} 2019},
	title = {Resource-guided {Program} {Synthesis}},
	isbn = {978-1-4503-6712-7},
	url = {http://doi.acm.org/10.1145/3314221.3314602},
	doi = {10/ggb9gj},
	abstract = {This article presents resource-guided synthesis, a technique for synthesizing recursive programs that satisfy both a functional specification and a symbolic resource bound. The technique is type-directed and rests upon a novel type system that combines polymorphic refinement types with potential annotations of automatic amortized resource analysis. The type system enables efficient constraint-based type checking and can express precise refinement-based resource bounds. The proof of type soundness shows that synthesized programs are correct by construction. By tightly integrating program exploration and type checking, the synthesizer can leverage the user-provided resource bound to guide the search, eagerly rejecting incomplete programs that consume too many resources. An implementation in the resource-guided synthesizer ReSyn is used to evaluate the technique on a range of recursive data structure manipulations. The experiments show that ReSyn synthesizes programs that are asymptotically more efficient than those generated by a resource-agnostic synthesizer. Moreover, synthesis with ReSyn is faster than a naive combination of synthesis and resource analysis. ReSyn is also able to generate implementations that have a constant resource consumption for fixed input sizes, which can be used to mitigate side-channel attacks.},
	urldate = {2019-11-01},
	booktitle = {Proceedings of the 40th {ACM} {SIGPLAN} {Conference} on {Programming} {Language} {Design} and {Implementation}},
	publisher = {ACM},
	author = {Knoth, Tristan and Wang, Di and Polikarpova, Nadia and Hoffmann, Jan},
	year = {2019},
	note = {ZSCC: 0000001 
event-place: Phoenix, AZ, USA},
	keywords = {Automated Amortized Resource Analysis, Program Synthesis, Refinement Types},
	pages = {253--268}
}

Downloads: 0