In this paper, we present a technique to synthesize machine-code instructions from a semantic specification, given as a Quantifier-Free Bit-Vector (QFBV) logic formula. Our technique uses an instantiation of the Counter-Example Guided Inductive Synthesis (CEGIS) framework, in combination with search-space pruning heuristics to synthesize instruction-sequences. To counter the exponential cost inherent in enumerative synthesis, our technique uses a divide-and-conquer strategy to break the input QFBV formula into independent sub-formulas, and synthesize instructions for the sub-formulas. Synthesizers created by our technique could be used to create semantics-based binary rewriting tools such as optimizers, partial evaluators, program obfuscators/de-obfuscators, etc. Our experiments for Intel’s IA-32 instruction set show that, in comparison to our baseline algorithm, our search-space pruning heuristics reduce the synthesis time by a factor of 473, and our divide-and-conquer strategy reduces the synthesis time by a further 3 to 5 orders of magnitude.
Wed 17 JunDisplayed time zone: Tijuana, Baja California change
16:00 - 17:40 | Synthesis IIResearch Papers at PLDI Main BLUE (Portland 254-255) Chair(s): Işıl Dillig University of Texas, Austin | ||
16:00 25mTalk | Concurrency Debugging with Differential Schedule Projections Research Papers Nuno Machado INESC-ID / Instituto Superior Técnico, Universidade de Lisboa, Brandon Lucia Carnegie Mellon University, Luís Rodrigues Universidade de Lisboa, Instituto Superior Técnico, INESC-ID Media Attached | ||
16:25 25mTalk | Synthesis of Machine Code from Semantics Research Papers Venkatesh Srinivasan University of Wisconsin - Madison, Thomas Reps University of Wisconsin - Madison and Grammatech Inc. Media Attached | ||
16:50 25mTalk | Synthesis of ranking functions using extremal counterexamples Research Papers Laure Gonnord University of Lyon & LIP, France, David Monniaux CNRS, VERIMAG, Gabriel Radanne Université Denis Diderot Paris 7, PPS Media Attached | ||
17:15 25mTalk | Type-and-Example-Directed Program Synthesis Research Papers Media Attached |