In a paper named Fixed it for you. Protocol repair using lineage graphs it is described how machine can autocorrect programming error.
See All 282 Episodes of "Programmers Quickie"