2017 · 25 citations · 13 references
ComputingComputer ScienceAlgorithmsProgramming LanguagesTheory Of ComputationData-flow AnalysisFunctional ProgrammingAutomated Program SynthesisEncodersFinite-state TransducersProgram SynthesisSymbolic Finite-state MachinesTransducers
We propose a fully-automated technique for inverting functional programs that operate over lists such as string encoders and decoders. We consider programs that can be modeled using symbolic extended finite transducers (), an expressive model that can describe complex list-manipulating programs while retaining several decidable properties. Concretely, given a program P expressed as an , we propose techniques for: (1) checking whether P is injective and, if that is the case, (2) building an P-1 describing its inverse. We first show that it is undecidable to check whether an is injective and propose an algorithm for checking injectivity for a restricted, but a practical class of . We then propose an algorithm for inverting based on the following idea: if an is injective, inverting it amounts to inverting all its individual transitions. We leverage recent advances program synthesis and show that the transition inversion problem can be expressed as an instance of the syntax-guided synthesis framework. Finally, we implement the proposed techniques in a tool called and show that can invert 13 out 14 real complex string encoders and decoders, producing inverse programs that are substantially identical to manually written ones.
13
Rajeev Alur, Rastislav Bodík, Garvit Juniwal et al. · 2013 · 523 citations
Proceedings of the 19th USENIX conference on Security
Ian Goldberg · 2010 · 173 citations
Fast and precise sanitizer analysis with BEK
Pieter Hooimeijer, Benjamin Livshits, Dávid Molnár et al. · 2011 · 129 citations
Path-based inductive synthesis for program inversion
Saurabh Srivastava, Sumit Gulwani, Swarat Chaudhuri et al. · ACM SIGPLAN Notices · 2011 · 55 citations
Program inversion: More than fun!
Wei Chen, Jan Tijmen Udding · Science of Computer Programming · 1990 · 40 citations