NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MintHint: Automated Synthesis of Repair Hints

Shalini Kaleeswaran, Varun Tulsian, Aditya Kanade, Alessandro Orso

Introduction

Automated Program Repair (APR) has long been considered a "holy grail" of software engineering. However, traditional APR tools face three significant hurdles: the specification gap (lack of formal logic for what code should do), overfitting (generating fixes that pass tests but break logic), and the search space explosion (the difficulty of finding multi-line fixes in an infinite space of possibilities).

MintHint shifts this paradigm by moving from "fixing the code for you" to "helping you fix the code." Instead of attempting to synthesize a perfect, complete patch, MintHint identifies the "building blocks" of a repair and presents them as actionable hints to the developer.

The MintHint Pipeline

MintHint operates through a four-step pipeline designed to transform failing test cases into developer guidance.

The MintHint system architecture pipeline, illustrating the flow from fault localization to the delivery of repair hints to developers.
  1. Fault Localization: Using spectrum-based techniques like the Ochiai algorithm, the tool ranks lines of code most likely to contain bugs based on test failures.
  2. Derivation of State Transformers: For suspicious lines, MintHint employs dynamic symbolic execution (via KLEE) to determine what variable values would have allowed failing tests to pass, creating an "operational specification."
  3. Statistical Correlation Analysis: This is the core innovation. Rather than searching for an exact match for the desired state, MintHint uses Spearman correlation to find expressions statistically likely to be part of the fix. This approach is robust against noisy data and incomplete test suites.
  4. Hint Synthesis: Highly correlated expressions are pattern-matched against the original code to suggest specific repair actions.

Actionable Repair Hints

MintHint categorizes its suggestions into several distinct types, allowing developers to quickly understand the nature of the required change.

Classification of repair hints generated by MintHint and the specific types of faults they are designed to address.

These hints include Insert (for missing expressions), Replace (for incorrect operators or variables), and Remove (for spurious code). Notably, MintHint also provides Retain hints, which help developers identify false positives from fault localization tools, allowing them to ignore "noise" and focus on the actual bug.

Key Results and Evaluation

The effectiveness of MintHint was evaluated using the Siemens Benchmark Suite and the Unix sed utility. Key findings include:

  • Productivity Boost: In a user study, developers using MintHint were 5.8x faster at fixing bugs than those using standard localization tools.
  • Higher Success Rate: While a control group fixed only 60% of tasks within a two-hour window, the MintHint group achieved a 100% success rate.
  • Scalability and Robustness: On the sed codebase (over 14,000 lines), MintHint successfully eliminated 45% of false-positive suspicious statements by correctly identifying them as "Retain" candidates. It also generated useful hints even when the perfect repair was outside its initial search space.

Conclusion and Future Work

MintHint demonstrates that human-in-the-loop synthesis is significantly more efficient than fully automated search for complex repairs. While currently focused on single-statement faults, future work aims to extend this logic to multi-statement bugs and optimize the symbolic execution bottlenecks inherent in complex code paths.

Summary updated

BibTeX
@inproceedings{kaleeswaran2014minthint,
  author = {Shalini Kaleeswaran and Varun Tulsian and Aditya Kanade and Alessandro Orso},
  title = {{MintHint: Automated Synthesis of Repair Hints}},
  booktitle = {ICSE},
  year = {2014},
  doi = {10.1145/2568225.2568258},
}
Figure