Iterative Delta Debugging (IDD) is a technique for locating software bugs by isolating the differences between inputs. It can be applied to both program source code and test cases.
This document is a set of presentation slides titled "Iterative Delta Debugging (IDD)" by Cyrille Artho of the Research Center for Information Security (RCIS), National Institute of Advanced Industrial Science and Technology (AIST), Tokyo, dated 10/28/2008. It explains Delta Debugging (DD), a technique that isolates the difference between a working ("good") input or program version and a failing ("bad") one, treating that minimal difference as the reason for the failure.
The slides describe how DD's state space bisection works, how the technique can be applied to program source code by minimizing the patch between good and bad versions, and how DD can be iterated to find an older "good" version when none is known, including back-porting tests to older versions and forward-porting patches to the current one. It also covers problems with applying DD to programs (line-based diff/patch tools, code not being a tree structure), experiments with the Uncrustify source code formatter, tool-chain inefficiencies, and conclusions.
Delta Debugging isolates the difference between inputs (or program versions) that causes a failure, based on the idea that the minimal difference between inputs is the reason of the failure.
IDD is used when no "good" version is known: the current change set (patch) is back-ported to older versions, and if a new problem is encountered, DD is used again, repeating the process until the test passes.
Because changes are usually not line-based, so the DD tool needs a different platform than diff/patch, and program code is not a tree structure, which bisection search does not address.
The tool chain freshly obtains source each time (10-20 seconds wasted) and does a fresh build each time (almost one minute wasted), with many syntactically invalid versions generated and 90-98% waste.