MORE INFORMATION on Domain.f


This example illustrates the reliability of P-testing. (Please refer to Combination.f)
If we assume that P is a set of programs which are either correct or contain domain errors, we may establish a relationship between the paths in the incorrect programs P and in the corresponding correct programs P* so that:

C(Pi) = C(Pi*)

for all paths in P. The conditions for the reliability of P-testing for domain errors are simplified when a program's paths are 'distinct'. A definition for distinction of paths in a program is defined by Howden thus:

In this program, an incorrect transfer statement causes a domain error. The paths in the program are not distinct. P-testing is neither reliable nor almost reliable for this example.




Click here for the source code