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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4 Conformance Test<strong>in</strong>g 109<br />

Example. Consider the mach<strong>in</strong>e <strong>in</strong> Fig. 4.8 as faulty implementation of the specification<br />

mach<strong>in</strong>e MS of Fig. 4.1 with one state more, namely s4. The orig<strong>in</strong>al<br />

sequences generated with the W method assum<strong>in</strong>g that the mach<strong>in</strong>e has the<br />

same number of states are not capable to discover the fault. If we use the W<br />

method with m = 4, we generate for bbb <strong>in</strong> P, b <strong>in</strong> I and b <strong>in</strong> W the sequence<br />

rbbbbb that is able to expose the fault.<br />

4.8 Summary<br />

b/1<br />

a/0<br />

s1<br />

b/1<br />

b/0<br />

a/0<br />

a/1 s2 s3 a/0<br />

b/1<br />

Fig. 4.8. A faulty implementation of mach<strong>in</strong>e MS with 4 states<br />

In this chapter we have presented several methods, which can uncover any fault<br />

<strong>in</strong> an implementation under different assumptions and produc<strong>in</strong>g check<strong>in</strong>g sequences<br />

of different length and with different cost. We have <strong>in</strong>itially supposed<br />

that all the assumptions of Section 4.2 hold, ma<strong>in</strong>ly that the mach<strong>in</strong>es are m<strong>in</strong>imal,<br />

that the implementation does not add extra states, and that the mach<strong>in</strong>es<br />

have reset, status and set messages. Throughout the chapter we have presented<br />

the follow<strong>in</strong>g methods which are capable to discover faults under a successively<br />

restricted subset of assumptions.<br />

• The method of Section 4.3, the Transition Tour (TT) method, exploits all<br />

the assumptions, except the set message. It uses a status message to check<br />

that the implementation is <strong>in</strong> the correct state. The check<strong>in</strong>g sequence has<br />

length and cost l<strong>in</strong>ear with pn. Without a status message this method does<br />

not guarantee the detection of transfer faults.<br />

• If even a status message is not available, but the mach<strong>in</strong>e has still a reset<br />

message, one can use one of the methods proposed <strong>in</strong> Section 4.4, namely<br />

the W method, the Wp method, the unique <strong>in</strong>put output (UIO) sequence<br />

method, the UIOv method, and the method us<strong>in</strong>g dist<strong>in</strong>guish<strong>in</strong>g sequences<br />

(DS) with reset. The DS method requires a dist<strong>in</strong>guish<strong>in</strong>g sequence, the<br />

UIO methods need UIOs, while W and Wp method are always applicable<br />

for m<strong>in</strong>imized mach<strong>in</strong>es. The W, Wp, UIOv, and DS methods detect faults<br />

s4

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

Saved successfully!

Ooh no, something went wrong!