Facebook’s new ‘SapFix’ tool uses AI to automatically fix bugs in code

By Digit NewsDesk | Updated 14 Sept 2018
Facebook’s new ‘SapFix’ tool uses AI to automatically fix bugs in code
  • SapFix users Facebook’s AI to help generate fixes for identified bugs, which are then proposed to engineers for approval and deployment into production.

Facebook has unveiled a new tool for developers, which aims to automatically fix bugs. Called SapFix, it uses Facebook’s AI to help generate fixes for identified bugs, which are then proposed to engineers for approval and deployment to production. In a post, developers Yue Jia, Ke Mao, and Mark Harman write that SapFix is designed to operate independently, without Sapienz, which is Facebook’s “intelligent automated software testing tool”. It was noted that the tool was unveiled at F8, and has already been deployed in production. 

advertisements

The post notes “The process starts with Sapienz, along with Facebook’s Infer static analysis tool, helping localize the point in the code to patch. Once Sapienz and Infer pinpoint a specific portion of code associated with a crash, it can pass that information to SapFix, which automatically picks from a few strategies to generate a patch.”

In order to address “high-firing” bugs, SapFix is able to to create patches that can either fully or partially revert the codes that caused the bug. For compex crashes, it can generate patches by checking outs its collection of templated fixes, which are created by human engineers based on previous fixes. In the event that the templates don’t work, SapFix will try a mutation-based fin. In this fix, it will perform small code modifications to the abstract syntax tree. It will make adjustments to the patch until it finds a potential solution.

The team aims to share the SapFix with the engineering community later, with the aim of boosting the production and stability of new code for companies and research organisations.

advertisements
Digit NewsDesk
The guy who answered the question 'What are you doing?' with 'Nothing'.
advertisements
ASK DIGIT

Recent Questions

APP TO ANSWER CALLS AUTOMATICALLY
t ruth pushpalatha
Sept 3, 2014
Responses 8
Vivek Bhatt
Sept 4, 2014
vishal Pallerla
Sept 4, 2014
Parag Jadhav
Sept 4, 2014
Aditya Malpure
Sept 4, 2014
Jyoti Prakash
Sept 4, 2014
D JAYASHEELA
Sept 5, 2014
Tapajyoti Deb
Sept 5, 2014
Hina
Sept 7, 2014
Comments
Be the first one to post the comment
Post a New Comment
You must be signed in to post a comment
advertisements