{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2023,1,14]],"date-time":"2023-01-14T07:50:25Z","timestamp":1673682625223},"reference-count":30,"publisher":"Cambridge University Press (CUP)","issue":"4-5","license":[{"start":{"date-parts":[[2015,9,3]],"date-time":"2015-09-03T00:00:00Z","timestamp":1441238400000},"content-version":"unspecified","delay-in-days":64,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Theory and Practice of Logic Programming"],"published-print":{"date-parts":[[2015,7]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>We present a method for verifying the correctness of imperative programs which is based on the automated transformation of their specifications. Given a program<jats:italic>prog<\/jats:italic>, we consider a partial correctness specification of the form {\u03d5},<jats:italic>prog<\/jats:italic>{\u03c8}, where the assertions \u03d5 and \u03c8 are predicates defined by a set<jats:italic>Spec<\/jats:italic>of possibly recursive Horn clauses with linear arithmetic (<jats:italic>LA<\/jats:italic>) constraints in their premise (also called<jats:italic>constrained Horn clauses<\/jats:italic>). The verification method consists in constructing a set<jats:italic>PC<\/jats:italic>of constrained Horn clauses whose satisfiability implies that {\u03d5},<jats:italic>prog<\/jats:italic>, {\u03c8} is valid. We highlight some limitations of state-of-the-art constrained Horn clause solving methods, here called<jats:italic>LA-solving methods<\/jats:italic>, which prove the satisfiability of the clauses by looking for linear arithmetic interpretations of the predicates. In particular, we prove that there exist some specifications that cannot be proved valid by any of those<jats:italic>LA<\/jats:italic>-solving methods. These specifications require the proof of satisfiability of a set<jats:italic>PC<\/jats:italic>of constrained Horn clauses that contain<jats:italic>nonlinear clauses<\/jats:italic>(that is, clauses with more than one atom in their premise). Then, we present a transformation, called<jats:italic>linearization<\/jats:italic>, that converts<jats:italic>PC<\/jats:italic>into a set of<jats:italic>linear<\/jats:italic>clauses (that is, clauses with at most one atom in their premise). We show that several specifications that could not be proved valid by<jats:italic>LA<\/jats:italic>-solving methods, can be proved valid after linearization. We also present a strategy for performing linearization in an automatic way and we report on some experimental results obtained by using a preliminary implementation of our method.<\/jats:p>","DOI":"10.1017\/s1471068415000289","type":"journal-article","created":{"date-parts":[[2015,9,3]],"date-time":"2015-09-03T08:21:21Z","timestamp":1441268481000},"page":"635-650","source":"Crossref","is-referenced-by-count":14,"title":["Proving correctness of imperative programs by linearizing constrained Horn clauses"],"prefix":"10.1017","volume":"15","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":"56","published-online":{"date-parts":[[2015,9,3]]},"reference":[{"key":"S1471068415000289_ref30","first-page":"325","volume-title":"Logic Programming","author":"Sebelik","year":"1982"},{"key":"S1471068415000289_ref7","first-page":"84","volume-title":"Proceedings of the Fifth ACM Symposium on Principles of Programming Languages, POPL '78","author":"Cousot","year":"1978"},{"key":"S1471068415000289_ref3","first-page":"204","volume-title":"Proceedings of the 6th International Workshop on Logic Program Synthesis and Transformation, LOPSTR '96, Stockholm, Sweden, August 28-30, 1996","author":"Benoy","year":"1997"},{"key":"S1471068415000289_ref19","first-page":"85","volume-title":"Proceedings of the 2015 Workshop on Partial Evaluation and Program Manipulation, PEPM '15, Mumbai, India, January 15\u201317, 2015","author":"Kafle","year":"2015"},{"key":"S1471068415000289_ref26","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511626364"},{"key":"S1471068415000289_ref14","doi-asserted-by":"publisher","DOI":"10.1017\/S1471068411000627"},{"key":"S1471068415000289_ref6","first-page":"238","volume-title":"Proceedings of the 4th ACM-SIGPLAN Symposium on Principles of Programming Languages, POPL '77","author":"Cousot","year":"1977"},{"key":"S1471068415000289_ref21","first-page":"63","volume-title":"Proceedings of the 9th International Workshop on Logic-based Program Synthesis and Transformation (LOPSTR '99), Venezia, Italy","author":"Leuschel","year":"2000"},{"key":"S1471068415000289_ref20","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-83189-8"},{"key":"S1471068415000289_ref8","unstructured":"De Angelis E. , Fioravanti F. , Pettorossi A. , and Proietti M. 2014a. Program verification via iterated specialization. Science of Computer Programming 95, Part 2, 149\u2013175. Selected and extended papers from Partial Evaluation and Program Manipulation 2013."},{"key":"S1471068415000289_ref12","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(95)00148-4"},{"key":"S1471068415000289_ref24","first-page":"246","volume-title":"Proceedings of the 5th International Symposium on Static Analysis, SAS '98","author":"Peralta","year":"1998"},{"key":"S1471068415000289_ref11","doi-asserted-by":"publisher","DOI":"10.1016\/S0743-1066(99)00030-8"},{"key":"S1471068415000289_ref16","doi-asserted-by":"publisher","DOI":"10.1145\/363235.363259"},{"key":"S1471068415000289_ref15","doi-asserted-by":"crossref","unstructured":"Grebenshchikov S. , Lopes N. P. , Popeea C. , and Rybalchenko A. 2012. Synthesizing software verifiers from proof rules. In Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI '12. 405\u2013416.","DOI":"10.1145\/2254064.2254112"},{"key":"S1471068415000289_ref23","first-page":"279","article-title":"Enumerable sets are diophantine","volume":"191","author":"Matijasevic","year":"1970","journal-title":"Doklady Akademii Nauk SSSR (in Russian)"},{"key":"S1471068415000289_ref28","doi-asserted-by":"publisher","DOI":"10.1016\/j.jsc.2007.01.002"},{"key":"S1471068415000289_ref27","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2006.03.003"},{"key":"S1471068415000289_ref5","first-page":"93","volume-title":"Proceedings of TACAS","author":"Cimatti","year":"2013"},{"key":"S1471068415000289_ref25","first-page":"245","volume-title":"Practical Aspects of Declarative Languages, PADL '07","author":"Podelski","year":"2007"},{"key":"S1471068415000289_ref10","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78800-3_24"},{"key":"S1471068415000289_ref22","doi-asserted-by":"publisher","DOI":"10.1142\/S0129054108006066"},{"key":"S1471068415000289_ref29","first-page":"347","volume-title":"Proceedings of the 25th International Conference on Computer Aided Verification, CAV '13, Saint Petersburg, Russia, July 13\u201319, 2013","author":"R\u00fcmmer","year":"2013"},{"key":"S1471068415000289_ref17","doi-asserted-by":"publisher","DOI":"10.1016\/0743-1066(94)90033-7"},{"key":"S1471068415000289_ref9","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-54862-8_47"},{"key":"S1471068415000289_ref13","doi-asserted-by":"crossref","first-page":"349","DOI":"10.1145\/2642937.2642987","volume-title":"Proceedings of the 29th ACM\/IEEE International Conference on Automated Software Engineering, ASE '14","author":"Felsing","year":"2014"},{"key":"S1471068415000289_ref1","first-page":"124","volume-title":"Practical Aspects of Declarative Languages","author":"Albert","year":"2007"},{"key":"S1471068415000289_ref2","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-84882-745-5"},{"key":"S1471068415000289_ref4","unstructured":"Bj\u00f8rner N. , McMillan K. , and Rybalchenko A. 2012. Program verification as satisfiability modulo theories. In Proceedings of the 10th International Workshop on Satisfiability Modulo Theories, SMT-COMP '12. 3\u201311."},{"key":"S1471068415000289_ref18","doi-asserted-by":"crossref","first-page":"758","DOI":"10.1007\/978-3-642-31424-7_61","volume-title":"Proceedings 24th International Conference on Computer Aided Verification, CAV '12","author":"Jaffar","year":"2012"}],"container-title":["Theory and Practice of Logic Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S1471068415000289","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,5,21]],"date-time":"2022-05-21T09:40:14Z","timestamp":1653126014000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S1471068415000289\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2015,7]]},"references-count":30,"journal-issue":{"issue":"4-5","published-print":{"date-parts":[[2015,7]]}},"alternative-id":["S1471068415000289"],"URL":"https:\/\/doi.org\/10.1017\/s1471068415000289","relation":{},"ISSN":["1471-0684","1475-3081"],"issn-type":[{"value":"1471-0684","type":"print"},{"value":"1475-3081","type":"electronic"}],"subject":[],"published":{"date-parts":[[2015,7]]}}}