07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

312 Christophe Gaston and Dirk Seifert<br />

Relation to the three measures: We consider questions (A), (B) and (C) <strong>in</strong>troduced<br />

<strong>in</strong> the <strong>in</strong>troduction of this section. In order to answer these questions we<br />

consider the follow<strong>in</strong>g example. Doma<strong>in</strong> D of a program P is {0, 1, 2}. M is<br />

the model associated to P. We suppose that SDC1(P, M )={{0, 1}, {0, 2}} and<br />

SDC2(P, M )={{0, 1}, {0, 1, 2}}.S<strong>in</strong>ce{0, 1} ⊆{0, 1} and {0, 2} ⊆{0, 1, 2}, C1<br />

narrows C2.<br />

(A)Does C1 narrow C2 imply M1(C1, P, M ) ≥ M1(C2, P, M )?<br />

We answer <strong>in</strong> the negative. Suppose that only 1 and 2 are failure caus<strong>in</strong>g:<br />

M1(C1, P, M ) = 1<br />

2 while M1(C2, P, M ) = 2<br />

3 and thus M1(C1,<br />

M1(C2, P, M ).<br />

P, M ) <<br />

(B) Does C1 narrow C2 imply M2(C1, P, M ) ≥ M2(C2, P, M )?<br />

We answer <strong>in</strong> the negative. Suppose that only 1 and 2 are failure caus<strong>in</strong>g:<br />

M2(C1, P, M )=1−(1− 1 1 3<br />

2 )(1− 2 )= 4 , M2(C2, P, M )=1−(1− 1 2<br />

2 )(1− 3<br />

and thus M2(C1, P, M ) < M2(C2, P, M ).<br />

(C) Does C1 narrow C2 imply M3(C1, P, M , 1) ≥ M3(C2, P, M , n) where<br />

n = |SDC 1 (P,M )|<br />

|SDC2 (P,M )| ?<br />

)= 5<br />

6<br />

We answer <strong>in</strong> the negative. S<strong>in</strong>ce <strong>in</strong> our example n = 1, question (C) is<br />

equivalent to Question (B).<br />

As stated above, the narrows relation does not necessarily <strong>in</strong>duce a better<br />

fault detection ability for each of the three measures considered. Thus from Theorem<br />

11.1, it is naturally deduced that the subsume relation does not necessarily<br />

<strong>in</strong>duce a better fault detection ability for each of the three measures considered.<br />

The Covers Relation (2) The narrows relation can be strengthened to impose<br />

that each subdoma<strong>in</strong> of the partition <strong>in</strong>duced by C2 can be expressed as a union<br />

of some subdoma<strong>in</strong>s of the partition <strong>in</strong>duced by C1. This gives rises to the<br />

follow<strong>in</strong>g def<strong>in</strong>ition:<br />

C1 covers C2 for (P, M ) if for every subdoma<strong>in</strong> D ∈SDC2(P, M )ifthereisa<br />

non-empty collection of subdoma<strong>in</strong>s {D1,...,Dn} belong<strong>in</strong>g to SDC1(P, M )<br />

such that D1 ∪···∪Dn = D. If for every (P, M ) C1 covers C2, onesaysthat<br />

C1 universally covers C2.<br />

Example: We consider criteria C1 and C2 and Program P used to illustrate the<br />

narrow relation. S<strong>in</strong>ce D3 and D4 both conta<strong>in</strong> D1, C1 narrows C2. However,<br />

s<strong>in</strong>ce D3 �= D1, D3 �= D2 and D3 �= D1 ∪ D2, C1 does not cover C2.<br />

In contrast, we consider a program P ′ whose <strong>in</strong>put doma<strong>in</strong> are the <strong>in</strong>tegers<br />

between −N and N (N > 0). Suppose that criterion C ′ 1 <strong>in</strong>duces a partition <strong>in</strong>to<br />

two subdoma<strong>in</strong>s: D ′ 1 = {x |−N +1≤ x ≤ N } and D ′ 2<br />

= {x |−N ≤ x ≤ N − 1}<br />

and that criterion C ′ 2 <strong>in</strong>duces a partition <strong>in</strong>to one subdoma<strong>in</strong>: D ′ 3 = {x |−N ≤<br />

x ≤ N }. S<strong>in</strong>ceD ′ 3 = D ′ 1 ∪ D ′ 2, C ′ 1 covers C ′ 2.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!