Back to results

The University of Texas at Austin

Automated transpilation using program synthesis

Abstract

dc:description.abstract

Transpilation describes the problem of translating a program in one language to an equivalent program in the same or different language. Many critical problems in computer science can be thought of as instances of transpilation. For instance, many code modernization tasks are transpilation problems – whether it be replacing old APIs with equivalent new ones (e.g., [170]) or even converting to whole new programming languages (e.g., [27]). Similarly, automated parallelism often takes the form of transpilation – e.g., replacing imperative looping with equivalent map-reduce operations [81]. Even code optimization [157] can be thought of as a transpilation problem, where the goal is to find an equivalent but more efficient version of the current code. For many transpilation problems, there is a clear mapping from syntactic constructs in one language to equivalent syntactic constructs in the other (e.g., when translating between imperative languages, a while loop in one language is often almost identical to a while loop in another). Thus, many transpilation problems can be solved using hand-crafted syntactic translation rules that codify this mapping. However, this approach fails for problems when no such mapping can be easily discovered/expressed, such as when translating between very different programming paradigms (e.g. imperative to functional) or in adversarial environments where discovery of such a mapping is intentionally difficult (e.g., malware deobfuscation). One promising solution for these challenging transpilation problems is program synthesis, a class of techniques for automatically finding a program that satisfies a specification. Program synthesis techniques "find" a program satisfying a specification via search – in other words, given some "space" of programs L and specification φ, a synthesis procedure will search through the programs in L to find some program which satisfies φ. Because program synthesis techniques rely on search which is quite general, they have seen success across a variety of domains, including regular expression synthesis [34], data visualization [194], spreadsheet manipulation [76], and database query optimization [37] to name a few. However, a major limitation of synthesis-based techniques is scalability: existing techniques often fail to scale to problems where the search space of programs is large. Because many transpilation problems require a large search space, extending synthesis to these problems requires clever techniques for efficiently traversing the space of potential program translations. In this thesis, we explore four different novel techniques for scaling synthesis to a variety of challenging, real-world transpilation problems. Each of these techniques leverages a key insight: we can use information about the source program to intelligently search for its translation. In the first chapter, we explore how a basic read-write analysis of the source program can enable efficient synthesis of loop summaries in smart contracts. In the second chapter, we explore how both the syntax and semantics of expressions in the source program can be used to guide the search for functional translations of imperative loops. In the third chapter, we explore how shared subexpressions can guide the search for optimized database queries. And in the fourth chapter, we explore how runtime traces of an obfuscated program can be used to efficiently discover its deobfuscation.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Level thesis:degree_level
Doctoral
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Sciences
Grantor
The University of Texas at Austin
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Mariano, Benjamin
Advisor dc:contributor.advisor
  • Dillig, Isil
Committee members dc:contributor.committeemember
  • Joydeep Biswas
  • Greg Durrett
  • Osbert Bastani

Subjects

dc:subject × 2

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
University of Texas
Base URL
repositories.lib.utexas.edu/server/oai/request
Last updated
2026-11-20
Source record
OAI-PMH GetRecord
citation

Mariano, Benjamin. Automated transpilation using program synthesis. Doctoral thesis, The University of Texas at Austin, 2024. https://doi.org/10.26153/tsw/58566