DocumentCode
1004986
Title
Diagnosis of Inconsistency in Contracts using Design by Contract
Author
Guerrero, R.C. ; de la Rosa Troyano, F. ; Pozo, T.S.
Volume
3
Issue
1
fYear
2005
fDate
3/1/2005 12:00:00 AM
Firstpage
137
Lastpage
142
Abstract
Design by contract allows to develop more reliable and robust applications. Software is reliable if it can perform its work as it was specified, and it is robust if it can control abnormal situations. In this paper it is proposed a methodology to diagnose errors (bugs) in software. It is based on the combination of design by contract, model based diagnosis and constraint programming. Contracts are specified in the design by contract using asserts. These asserts with an abstraction of the source code are transformed into constraints, and these constraints compose the system model. A goal function is established according to the constraints of the system model. With this function is possible to detect which asserts or source code blocks are incorrect. It is proposed a typical diagnosis problem with the design by contract and the source code. The originality of this work is based in the transformation of contracts and source code to constraints in order to obtain which asserts and source code blocks are not consistent with the specification. To obtain these results it is proposed a novel methodology that automatize this task using constraint programming.
Keywords
constraint; design by contract; model based diagnosis; testing; Contracts; constraint; design by contract; model based diagnosis; testing;
fLanguage
English
Journal_Title
Latin America Transactions, IEEE (Revista IEEE America Latina)
Publisher
ieee
ISSN
1548-0992
Type
jour
DOI
10.1109/TLA.2005.1468673
Filename
1468673
Link To Document