Abstract:
Formal proving of program correctness is the only reliable method that ensures proper functioning of program systems. Existing verification methods are quite complicated in practice, that obstructs their extensive application. In this article an approach using “Design By Contract” conception is proposed, where class protocols formulated in terms of Petri nets makes it possible to analyze workability of classes and programs separately that facilitates the procedure of program correctness checking.
Keywords:programming languages, formal program verification, object-oriented programming, Petri nets.