PofoliaPofolia ile paylaşıldı

IEEE Transactions on Software Engineering· 2016Q1

Nopol: Java Programlarındaki Koşullu İfade Hatalarının Otomatik Onarımı

Nopol: Automatic Repair of Conditional Statement Bugs in Java Programs

Jifeng Xuan, Matías Martínez, Favio DeMarco, Maxime Clément ve diğerleri

Kısa özet

Nopol, SMT çözücüleri kullanarak yama üreten ve Apache Commons projelerindeki 22 gerçek dünya hatasını başarıyla düzelten, Java koşullu ifadelerindeki hataları otomatik olarak onaran bir yaklaşımdır.

Yapay zekâ ile başlık ve abstract'tan üretildi; tam metin okunmaz.

Ana noktalar

  • Nopol, Java'daki koşullu ifadelerdeki (if-then-else) hataları otomatik olarak onarır.
  • Yaklaşım, onarım sürecini yönlendirmek için geçen ve başarısız testler içeren bir test paketini kullanır.
  • Yama üretimi için beklenen koşul değerlerini belirler ve çalışma zamanı verilerini toplar.
  • Uygulanabilir bir yama bulmak için Bir Tatmin Edilebilirlik Modülü Teorisi (SMT) çözücüsü kullanılır.
  • Nopol, Apache Commons Math ve Lang projelerindeki 22 gerçek dünya hatasını başarıyla onarmıştır.

Yapay zekâ ile başlık ve abstract'tan üretildi; tam metin okunmaz.

Özet (abstract)

We propose Nopol, an approach to automatic repair of buggy conditional statements (i.e., if-then-else statements). This approach takes a buggy program as well as a test suite as input and generates a patch with a conditional expression as output. The test suite is required to contain passing test cases to model the expected behavior of the program and at least one failing test case that reveals the bug to be repaired. The process of Nopol consists of three major phases. First, Nopol employs angelic fix localization to identify expected values of a condition during the test execution. Second, runtime trace collection is used to collect variables and their actual values, including primitive data types and objected-oriented features (e.g., nullness checks), to serve as building blocks for patch generation. Third, Nopol encodes these collected data into an instance of a Satisfiability Modulo Theory (SMT) problem; then a feasible solution to the SMT instance is translated back into a code patch. We evaluate Nopol on 22 real-world bugs (16 bugs with buggy if conditions and six bugs with missing preconditions) on two large open-source projects, namely Apache Commons Math and Apache Commons Lang. Empirical analysis on these bugs shows that our approach can effectively fix bugs with buggy if conditions and missing preconditions. We illustrate the capabilities and limitations of Nopol using case studies of real bug fixes.

Yazarların özeti; kaynağından alınmıştır. IEEE Transactions on Software Engineering, 2016 · DOI ↗

ÇıkarımlarPremium
Makaleye SorÜcretsiz hesapla

Ücretsiz hesapla devam et

Makaleye Sor ile bu makaleye günde 3 soru ücretsiz; makaleyi kaydet, kaynakçasını al, ilgi alanına göre her gün yeni özetler. Çıkarımlar Premium.

Web'de ücretsiz devam et

Google ya da Apple hesabınla giriş; kart istemez. Bu makaleye geri dönersin.

Telefonda:

Alan: Yazılım

SoftwareComputer Science