JCoffee: Using Compiler Feedback to Make Partial Code Snippets Compilable
Authors:
- 1 September 2020
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 810-813
Abstract
Static program analysis tools are often required to work with only a small part of a program’s source code, either due to the unavailability of the entire program or the lack of need to analyze the complete code. This makes it challenging to use static analysis tools that require a complete and typed intermediate representation (IR). We present JCoffee, a tool that leverages compiler feedback to convert partial Java programs into their compilable counterparts by simulating the presence of missing surrounding code. It works with any well-typed code snippet (class, function, or even an unenclosed group of statements) while making minimal changes to the input code fragment. A demo of the tool is available here: https://youtu.be/O4h2gn2QlsKeywords
All Related Versions
This publication has 9 references indexed in Scilit:
- Inference of static semantics for incomplete C programsProceedings of the ACM on Programming Languages, 2017
- Boosting complete-code tool for partial program2017
- Towards a Big Data Curated Benchmark of Inter-project Code Clones2014
- Typestate-based semantic code search over partial programs2012
- Recommending Adaptive Changes for Framework EvolutionACM Transactions on Software Engineering and Methodology, 2011
- Automated dependency resolution for open source software2010
- Enabling static analysis for partial java programs2008
- Parseweb2007
- The program dependence graph and its use in optimizationACM Transactions on Programming Languages and Systems, 1987