{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,23]],"date-time":"2026-07-23T01:04:38Z","timestamp":1784768678728,"version":"3.55.0"},"reference-count":35,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2008,5,1]],"date-time":"2008-05-01T00:00:00Z","timestamp":1209600000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2008,5]]},"abstract":"<jats:p>This article considers an algorithmic problem related to the termination analysis of programs. More specifically, we are given bounds on differences in sizes of data values before and after every transition in the program's control-flow graph. Our goal is to infer program termination via the following reasoning (\u201cthe size-change principle\u201d): if in any infinite (hypothetic) execution of the program, some size must descend unboundedly, the program must always terminate, since infinite descent of a natural number is impossible.<\/jats:p><jats:p>The problem of inferring termination from such abstract information is not the halting problem for programs and may well be decidable. If this is the case, the decision algorithm forms a \u201cback end\u201d of a termination verifier, and it is interesting to find out the computational complexity of the problem.<\/jats:p><jats:p>A restriction of the problem described above, which only uses monotonicity information (but not difference bounds), is already known to be decidable. We prove that the unrestricted problem is undecidable, which gives a theoretical argument for studying restricted cases. We consider a case where the termination proof is allowed to make use of at most one bound per target variable in each transition. For this special case, which we claim is practically significant, we give (for the first time) an algorithm and show that the problem is in PSPACE, in fact that it is PSPACE-complete. The algorithm is based on combinatorial arguments and results from the theory of integer programming not previously used for similar problems.<\/jats:p><jats:p>The algorithm has interesting connections to other work in termination, in particular to methods for generating linear ranking functions or invariants.<\/jats:p>","DOI":"10.1145\/1353445.1353450","type":"journal-article","created":{"date-parts":[[2008,5,20]],"date-time":"2008-05-20T12:41:26Z","timestamp":1211287286000},"page":"1-31","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":22,"title":["Size-change termination with difference constraints"],"prefix":"10.1145","volume":"30","author":[{"given":"Amir M.","family":"Ben-Amram","sequence":"first","affiliation":[{"name":"The Academic College Tel-Aviv Yaffo, Tel Aviv, Israel"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2008,5,21]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Proceedings of the First Asian Symposium on Programming Languages and Systems (APLAS 2003)","volume":"2895","author":"Anderson H."},{"key":"e_1_2_1_2_1","doi-asserted-by":"crossref","unstructured":"Apt K. R. and Pedreschi D. 1994. Modular termination proofs for logic and pure prolog programs. In Advances in Logic Programming Theory. Oxford University Press Oxford UK 183--229. Apt K. R. and Pedreschi D. 1994. Modular termination proofs for logic and pure prolog programs. In Advances in Logic Programming Theory. Oxford University Press Oxford UK 183--229.","DOI":"10.1093\/oso\/9780198538530.003.0004"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1007\/11737414_14"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/1180475.1180480"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/113413.113434"},{"key":"e_1_2_1_6_1","volume-title":"Proceedings of the International Symposium on Logic Programming. MIT Press","author":"Bueno F."},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1007\/11562931_25"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.5555\/647709.734953"},{"key":"e_1_2_1_9_1","volume-title":"Proceedings of the 14th International Conference on Computer Aided Verification (CAV). Lecture Notes in Computer Science","volume":"2404","author":"Col\u00f3n M."},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1007\/11547662_8"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1007\/11817963_37"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1007\/s002000100065"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539792228228"},{"key":"e_1_2_1_14_1","doi-asserted-by":"crossref","unstructured":"Graham R. L. 1981. Rudiments of Ramsey Theory. American Mathematical Society. Graham R. L. 1981. Rudiments of Ramsey Theory. American Mathematical Society.","DOI":"10.1090\/cbms\/045"},{"key":"e_1_2_1_15_1","unstructured":"Jones N. D. 1988. Automatic program specialization: A re-examination from basic principles. In Partial Evaluation and Mixed Computation D. Bj\u00f8rner A. P. Ershov and N. D. Jones Eds. North-Holland Amsterdam The Netherlands 225--282. Jones N. D. 1988. Automatic program specialization: A re-examination from basic principles. In Partial Evaluation and Mixed Computation D. Bj\u00f8rner A. P. Ershov and N. D. Jones Eds. North-Holland Amsterdam The Netherlands 225--282."},{"key":"e_1_2_1_16_1","doi-asserted-by":"crossref","unstructured":"Jones N. D. 1997. Computability and Complexity from a Programming Perspective. Foundations of Computing Series. MIT Press Cambridge MA. Jones N. D. 1997. Computability and Complexity from a Programming Perspective. Foundations of Computing Series. MIT Press Cambridge MA.","DOI":"10.7551\/mitpress\/2003.001.0001"},{"key":"e_1_2_1_17_1","volume-title":"Proceedings of the 15th International Conference on Rewriting Techniques and Applications (RTA'04)","volume":"3091","author":"Jones N. D."},{"key":"e_1_2_1_18_1","unstructured":"Jones N. D. Gomard C. K. and Sestoft P. 1993. Partial Evaluation and Automatic Program Generation. Prentice-Hall Englewood Cliffs NJ. Jones N. D. Gomard C. K. and Sestoft P. 1993. Partial Evaluation and Automatic Program Generation. Prentice-Hall Englewood Cliffs NJ."},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(77)90014-7"},{"key":"e_1_2_1_20_1","unstructured":"Lee C. S. 2002. Program termination analysis and termination of offline partial evaluation. Ph.D. dissertation University of Western Australia. Lee C. S. 2002. Program termination analysis and termination of offline partial evaluation. Ph.D. dissertation University of Western Australia."},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1498926.1498928"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/360204.360210"},{"key":"e_1_2_1_23_1","doi-asserted-by":"crossref","unstructured":"Lindenstrauss N. and Sagiv Y. 1997a. Automatic termination analysis of logic programs (with detailed experimental results). http:\/\/www.cs.huji.ac.il\/~naomil\/. Lindenstrauss N. and Sagiv Y. 1997a. Automatic termination analysis of logic programs (with detailed experimental results). http:\/\/www.cs.huji.ac.il\/~naomil\/.","DOI":"10.7551\/mitpress\/4299.003.0011"},{"key":"e_1_2_1_24_1","volume-title":"Proceedings of the 14th International Conference on Logic Programming","author":"Lindenstrauss N."},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/11817963_36"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1016\/0743-1066(85)90017-2"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/322276.322287"},{"key":"e_1_2_1_28_1","volume-title":"Lecture Notes in Artificial Intelligence","volume":"446","author":"Pl\u00fcmer L.","year":"1990"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.5555\/1018438.1021840"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1112\/plms\/s2-30.1.264"},{"key":"e_1_2_1_31_1","volume-title":"Proceedings of the International Symposium on Logic Programming","author":"Sagiv Y.","year":"1991"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1016\/0743-1066(94)90027-2"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/113413.113433"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00200-005-0179-7"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/42282.42285"}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1353445.1353450","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1353445.1353450","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T13:56:13Z","timestamp":1750254973000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1353445.1353450"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2008,5]]},"references-count":35,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2008,5]]}},"alternative-id":["10.1145\/1353445.1353450"],"URL":"https:\/\/doi.org\/10.1145\/1353445.1353450","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"value":"0164-0925","type":"print"},{"value":"1558-4593","type":"electronic"}],"subject":[],"published":{"date-parts":[[2008,5]]},"assertion":[{"value":"2006-04-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2007-03-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2008-05-21","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}