We present a method for verifying properties of imperative programs by using techniques based on the specialization of constraint logic programs (CLP). We consider a class of imperative programs with integer variables and we focus our attention on safety properties, stating that no error configuration can be reached from any initial configuration. We introduce a CLP program I that encodes the interpreter of the language and defines a predicate unsafe equivalent to the negation of the safety property to be verified. Then, we specialize the CLP program I with respect to the given imperative program and the given initial and error configurations, with the objective of deriving a new CLP program I_sp that either contains the fact unsafe (and in this case the imperative program is proved unsafe) or contains no clauses with head unsafe (and in this case the imperative program is proved safe). If I_sp enjoys neither of these properties, we iterate the specialization process with the objective of deriving a CLP program where we can prove unsafety or safety. During the various specializations we may apply different strategies for propagating information (either propagating forward from an initial configuration to an error configuration, or propagating backward from an error configuration to an initial configuration) and different operators (such as the widening and the convex hull operators) for generalizing predicate definitions. Each specialization step is guaranteed to terminate, but due to the undecidability of program safety, the iterated specialization process may not terminate. By an experimental evaluation carried out on a significant set of examples taken from the literature, we show that our method improves the precision of program verification with respect to state-of-the-art software model checkers.
De Angelis, E., Fioravanti, F., Pettorossi, A., & Proietti, M. (2014). Program verification via iterated specialization. SCIENCE OF COMPUTER PROGRAMMING, 95(P2), 149-175.
|Tipologia:||Articolo su rivista|
|Citazione:||De Angelis, E., Fioravanti, F., Pettorossi, A., & Proietti, M. (2014). Program verification via iterated specialization. SCIENCE OF COMPUTER PROGRAMMING, 95(P2), 149-175.|
|IF:||Con Impact Factor ISI|
|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.1016/j.scico.2014.05.017|
|Stato di pubblicazione:||Pubblicato|
|Data di pubblicazione:||2014|
|Titolo:||Program verification via iterated specialization|
|Autori:||De Angelis, E; Fioravanti, F; Pettorossi, A; Proietti, M|
|Appare nelle tipologie:||01 - Articolo su rivista|