Microsoft Develops Tool To Repair Code
Written by Kay Ewbank   
Monday, 14 August 2017

Researchers from Microsoft, Peking University, and University of Electronic Science and Technology of China have developd a system that will automatically repair defects in software systems without human intervention.

The research follows on from that of Microsoft and Cambridge University who, as we recently reported, announced a DeepCoder algorithm that produces programs from problem inputs/outputs.

DeepCoder is still very limited, but the new research asks whether it would be possible for a computer program to identify and fix bugs in existing programs.

The system invented by Accurate Condition System (ACS), is designed to automatically repair defects in software systems without human intervention.

While there are existing automated tools for program repair, the patches they produce have a low 'precision' level. For most, the precisions of mainstream program repair approaches are less than 10 percent, with even improved approaches reaching less than 40 percent accuracy. The problem is that the tests used to mark a change as 'correct' don't mean that passing the test means the program is actually correct.

debugging

 

This latest approach achieves a rating of 80 percent 'correctness' in the Defects4J benchmark, often used to measure such things.

ACS achieves the improved results by using multiple information sources, especially the “big code” existing on the Internet. The researchers focussed on condition synthesis. Three new types of information sources were added to those in previous tools.Firstly, the information given by knowing what variables in a local context should be used in an “if” condition, and using a sorting method based on the dependency relations between variables.

The second change relies on the observation that the API document can be used to guide the repair process. A document analysis technique was used to further filter the variables based on this. Natural language analysis techniques are used to analyze Javadoc, and the application then uses the information in Javadoc to filter incorrect patches.

Last, and most importantly, ACS performs statistical analysis on the open-source program on the Internet, discovers the conditional probabilities of the operations over the variables and further generates correct patches.

The paper describing the system, ACS “Precise Condition Synthesis for Program Repair” was published at ICSE 2017. The authors include Yingfei Xiong, Jie Wang, Guang Huang and Lu Zhang from Peking University, Runfa Yan from UESTC and Shi Han from Microsoft Research Asia.
 microsoft

 

More Information

Precision Condition Synthesis Program Repair

Related Articles

DeepCoder Learns To Write Programs

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

 

Banner


Random Gifts For Programmers
24/11/2024

Not really random. Not even pseudo random, more stuff that caught my attention and that I, for one, would like to be given. And, yes, if I'm not given them, I'd probably buy some for myself.



Meta Releases OpenSource Podcast Generating Tool
28/11/2024

Meta has released an open source project that can be used to automatically convert a PDF file into a podcast. Meta says Notebook Llama can be considered an open-source version of Google's NotebookLM.

 [ ... ]


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 14 August 2017 )