On checking whether a predicate definitely holds


ŞEN M. A., Garg V. K.

Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), cilt.2931, ss.15-29, 2004 (SCI-Expanded, Scopus)

Özet

Predicate detection is an important problem in testing and debugging distributed programs. Cooper and Marzullo introduced two modalities possibly and definitely as a solution to this problem. Given a predicate p, a computation satisfies possibly: p if p is true for some global state in the computation. A computation satisfies definitely: p if all paths from the initial to the final global state go through some global state that satisfies p. In general, definitely modality is used to detect good conditions such as "a leader is eventually chosen by all processes", or "a commit point is reached by every process", whereas possibly modality is used to detect bad conditions such as violation of mutual exclusion. There are several efficient algorithms for possibly modality in the literature [10, 14, 1, 2, 30]. However, this is not the case for definitely modality. Cooper and Marzullo's definitely: p algorithm for arbitrary p has a worst-case space and time complexity exponential in the number of processes. This is due to the state explosion problem. In this paper we present efficient algorithms for detecting definitely: p. In particular, we give a simple algorithm that uses polynomial space. Then, we present an algorithm that can significantly reduce the global state-space. We determine necessary conditions and sufficient conditions under which detecting definitely: p may be efficiently solved. We apply our algorithms to example protocols, achieving a speedup of over 100, compared to partial order reduction based technique of SPIN [13]. © Springer-Verlag Berlin Heidelberg 2004.