{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2024,9,4]],"date-time":"2024-09-04T03:58:09Z","timestamp":1725422289534},"reference-count":0,"publisher":"EasyChair","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"abstract":"<jats:p>The transformation of constraint logic programs (CLP programs)<\/jats:p><jats:p>has been shown to be an effective methodology<\/jats:p><jats:p>for verifying properties of imperative programs.<\/jats:p><jats:p>By following this methodology, we encode the negation<\/jats:p><jats:p>of a partial correctness property of an imperative<\/jats:p><jats:p>program prog as a predicate incorrect defined by a CLP program P, and we show that<\/jats:p><jats:p>prog is correct by transforming P into<\/jats:p><jats:p>the empty program through the application<\/jats:p><jats:p>of semantics preserving transformation rules.<\/jats:p><jats:p>Some of these rules perform replacements of constraints<\/jats:p><jats:p>that encode properties of the data structures manipulated<\/jats:p><jats:p>by the program prog.<\/jats:p><jats:p>In this paper we show that Constraint Handling Rules (CHR)<\/jats:p><jats:p>are a suitable formalism for representing and applying<\/jats:p><jats:p>constraint replacements during the transformation of CLP programs.<\/jats:p><jats:p>In particular, we consider programs that manipulate integer<\/jats:p><jats:p>arrays and we present a CHR encoding of a constraint replacement<\/jats:p><jats:p>strategy based on the theory of arrays.<\/jats:p><jats:p>We also propose a novel generalization strategy for<\/jats:p><jats:p>constraints on integer arrays that combines<\/jats:p><jats:p>the CHR constraint replacement strategy<\/jats:p><jats:p>with various generalization operator for linear constraints,<\/jats:p><jats:p>such as widening and convex hull.<\/jats:p><jats:p>Generalization is controlled by additional constraints<\/jats:p><jats:p>that relate the variable identifiers in the imperative<\/jats:p><jats:p>program and the CLP representation of their values.<\/jats:p><jats:p>The method presented in this paper has been implemented and<\/jats:p><jats:p>we have demonstrated its<\/jats:p><jats:p>effectiveness on a set of<\/jats:p><jats:p>benchmark programs taken from the literature.<\/jats:p>","DOI":"10.29007\/dkxs","type":"proceedings-article","created":{"date-parts":[[2018,1,23]],"date-time":"2018-01-23T18:03:00Z","timestamp":1516730580000},"page":"3--14","source":"Crossref","is-referenced-by-count":0,"title":["Program Verification using Constraint Handling Rules and Array Constraint Generalizations"],"prefix":"10.29007","volume":"28","author":[{"given":"Emanuele","family":"De Angelis","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Fabio","family":"Fioravanti","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Alberto","family":"Pettorossi","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Maurizio","family":"Proietti","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"11545","event":{"name":"VPT 2014. Second International Workshop on Verification and Program Transformation"},"container-title":["EPiC Series in Computing"],"original-title":[],"deposited":{"date-parts":[[2018,1,23]],"date-time":"2018-01-23T18:03:01Z","timestamp":1516730581000},"score":1,"resource":{"primary":{"URL":"https:\/\/easychair.org\/publications\/paper\/8Gp"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[null]]},"references-count":0,"URL":"https:\/\/doi.org\/10.29007\/dkxs","relation":{},"ISSN":["2398-7340"],"issn-type":[{"type":"print","value":"2398-7340"}],"subject":[]}}