Slicing vs Dicing in Data Flow Testing

Slicing vs Dicing

A (static) program slice is a part of a program (example: a selected set of statements) defined with respect to a given variable X (where X is a simple variable or a data vector)
A statement i: it is the set of all statements that could (potentially, under static analysis) affect the value of X at statement i - where the influence of faulty statement could result from an improper computational use or predicate use of some other variables at prior statements
If X is incorrect at statement i, it follows that the bug must be in the program slice for X with respect to i
A program dice is a part of slice in which all statements which are known to be correct, have been removed
In other words, a dice is obtained form a slice by incorporating information obtained through testing or experiment (example: debugging)
The debugger first limits its scope to those prior statements that could have caused the faulty value at statement i (the slice), and then eliminates (from further consideration) those statements that testing has shown to be correct
Debugging can be modeled as an iterative procedure in which slices are further refined by dicing, where the dicing information is obtained from ad hoc test aimed primarily at eliminating possibilities
Debugging ends when the dice has been reduced to one faulty statement
Dynamic slicing is a refinement of static slicing in which only statements on achievable paths to the statement in question are included
Share on Google Plus

About Data Sciences by Venu

Hi, My name is Venugopala Chary and I'm Currently working as Associate Professor in Reputed Engineerng College, Hyderabad. I have B.Tech and M.tech in regular from JNTU Hyderabad. I have 11 Years of Teaching Experience for both B.Tech and M.Tech Courses.
    Blogger Comment
    Facebook Comment

2 comments:

  1. Your blog article is outstanding; it is informative; in fact, I write on a variety of issues, including app development technology. Please

    read and give your thoughts on content related to mobile app development company for businesses.

    ReplyDelete
  2. IT's very informative blog and useful article thank you for sharing with us , keep posting learn more about Product engineering services | Product engineering solutions.

    ReplyDelete