Thetransformationofconstraintlogicprograms(CLPprograms)hasbeenshowntobean effective methodology for verifying properties of imperative programs. By following this methodology, we encode the negation of a partial correctness property of an imperative program prog as a predicate incorrect defined by a CLP program T , and we show that prog is correct by transforming T into the empty program (and thus incorrect does not hold) through the application of semantics preserving transformation rules. We can also show that prog is incorrect by transforming T into a program with the fact incorrect (and thus incorrect does hold). Some of the transformation rules perform replacements of constraints that are based on properties of the data structures manipulated by the program prog. In this paper we show that Constraint Handling Rules (CHR) are a suitable formalism for representing and applying constraint replacements during the transformation of CLP programs. In particular, we consider programs that manipulate integer arrays and we present a CHR encoding of a constraint replacement strategy based on the theory of arrays. We also propose a novel generalization strategy for constraints on integer arrays that combines CHR constraint replacements with various generalization operators on integer constraints, such as widening and convex hull. Generalization is controlled by additional constraints that relate the variable identifiers in the imperative program prog and the CLP representation of their values. The method presented in this paper has been implemented and we have demonstrated its effectiveness on a set of benchmark programs taken from the literature.
De Angelis, E., Fioravanti, F., Pettorossi, A., & Proietti, M. (2017). Program verification using constraint handling rules and array constraint generalizations. FUNDAMENTA INFORMATICAE, 150(1), 73-117 [10.3233/FI-2017-1461].
|Tipologia:||Articolo su rivista|
|Citazione:||De Angelis, E., Fioravanti, F., Pettorossi, A., & Proietti, M. (2017). Program verification using constraint handling rules and array constraint generalizations. FUNDAMENTA INFORMATICAE, 150(1), 73-117 [10.3233/FI-2017-1461].|
|Settore Scientifico Disciplinare:||Settore ING-INF/05 - Sistemi di Elaborazione delle Informazioni|
|Revisione (peer review):||Esperti anonimi|
|Digital Object Identifier (DOI):||http://dx.doi.org/10.3233/FI-2017-1461|
|Stato di pubblicazione:||Pubblicato|
|Data di pubblicazione:||2017|
|Titolo:||Program verification using constraint handling rules and array constraint generalizations|
|Autori:||De Angelis, E; Fioravanti, F; Pettorossi, A; Proietti, M|
|Appare nelle tipologie:||01 - Articolo su rivista|