Priority Ranker : A Slice-Based Approach to Enhance State Coverage
碩士 === 國立清華大學 === 資訊工程學系 === 95 === Lots of fault localization techniques have been developed to reduce the time in debugging a faulty program. The technique of code coverage has been recognized by its effectiveness in identifying suspicious statements that may contain the fault. However, a programm...
Main Authors: | , |
---|---|
Other Authors: | |
Format: | Others |
Language: | en_US |
Published: |
2007
|
Online Access: | http://ndltd.ncl.edu.tw/handle/24086172078798183303 |
id |
ndltd-TW-095NTHU5392105 |
---|---|
record_format |
oai_dc |
spelling |
ndltd-TW-095NTHU53921052015-10-13T16:51:15Z http://ndltd.ncl.edu.tw/handle/24086172078798183303 Priority Ranker : A Slice-Based Approach to Enhance State Coverage 優先權判斷器:一個基於程式切片的程式狀態除錯法的改進 Hsin-An Chen 陳信安 碩士 國立清華大學 資訊工程學系 95 Lots of fault localization techniques have been developed to reduce the time in debugging a faulty program. The technique of code coverage has been recognized by its effectiveness in identifying suspicious statements that may contain the fault. However, a programmer still needs to manually examine each variable referenced in a suspicious statement and such a process can become extremely time-consuming. In our previous work, we proposed a novel technique called state coverage to significantly reduce the time in examining variables. However, the previous state coverage was built on top of code coverage so that its improvement is limited. In this paper, we further propose a slice-based approach to enhance state coverage. We first insert a set of checkpoints to record the state of each variable referenced in a branching statement. We next execute the faulty program by a test suite consisting of both passed and failed cases. A state is statistically considered to be more suspicious if it appears more in failed cases and less in passed cases. State coverage will then elect the program state having highest relativity against the fault. We implemented both code coverage and state coverage in a debugging tool and used a commonly-used benchmark consisting of 61 faulty programs to evaluate their performance. For 49% of these programs, their faults are within 20 statements of the most suspicious statement identified by code coverage. On the other hand, state coverage increases this ratio to 82%, a 67% performance improvement. Tai-Yi Huang 黃泰一 2007 學位論文 ; thesis 36 en_US |
collection |
NDLTD |
language |
en_US |
format |
Others
|
sources |
NDLTD |
description |
碩士 === 國立清華大學 === 資訊工程學系 === 95 === Lots of fault localization techniques have been developed to reduce the time in debugging a faulty program. The technique of code coverage has been recognized by its effectiveness in identifying suspicious statements that may contain the fault. However, a programmer still needs to manually examine each variable referenced in a suspicious statement and such a process can become extremely time-consuming.
In our previous work, we proposed a novel technique called state coverage to significantly reduce the time in examining variables. However, the previous state coverage was built on top of code coverage so that its improvement is limited. In this paper, we further propose a slice-based approach to enhance state coverage. We first insert a set of checkpoints to record the state of each variable referenced in a branching statement. We next execute the faulty program by a test suite consisting of both passed and failed cases. A state is statistically considered to be more suspicious if it appears more in failed cases and less in passed cases. State coverage will then elect the program state having highest relativity against the fault. We implemented both code coverage and state coverage in a debugging tool and used a commonly-used benchmark consisting of 61 faulty programs to evaluate their performance. For 49% of these programs, their faults are within 20 statements of the most suspicious statement identified by code coverage. On the other hand, state coverage increases this ratio to 82%, a 67% performance improvement.
|
author2 |
Tai-Yi Huang |
author_facet |
Tai-Yi Huang Hsin-An Chen 陳信安 |
author |
Hsin-An Chen 陳信安 |
spellingShingle |
Hsin-An Chen 陳信安 Priority Ranker : A Slice-Based Approach to Enhance State Coverage |
author_sort |
Hsin-An Chen |
title |
Priority Ranker : A Slice-Based Approach to Enhance State Coverage |
title_short |
Priority Ranker : A Slice-Based Approach to Enhance State Coverage |
title_full |
Priority Ranker : A Slice-Based Approach to Enhance State Coverage |
title_fullStr |
Priority Ranker : A Slice-Based Approach to Enhance State Coverage |
title_full_unstemmed |
Priority Ranker : A Slice-Based Approach to Enhance State Coverage |
title_sort |
priority ranker : a slice-based approach to enhance state coverage |
publishDate |
2007 |
url |
http://ndltd.ncl.edu.tw/handle/24086172078798183303 |
work_keys_str_mv |
AT hsinanchen priorityrankeraslicebasedapproachtoenhancestatecoverage AT chénxìnān priorityrankeraslicebasedapproachtoenhancestatecoverage AT hsinanchen yōuxiānquánpànduànqìyīgèjīyúchéngshìqièpiàndechéngshìzhuàngtàichúcuòfǎdegǎijìn AT chénxìnān yōuxiānquánpànduànqìyīgèjīyúchéngshìqièpiàndechéngshìzhuàngtàichúcuòfǎdegǎijìn |
_version_ |
1717776136738439168 |