Abstract
This paper investigates the termination problems of multi-path polynomial programs (MPPs) with equational loop guards. To establish sufficient conditions for termination and nontermination simultaneously, the authors propose the notion of strong/weak non-termination which under/over-approximates non-termination. Based on polynomial ideal theory, the authors show that the set of all strong non-terminating inputs (SNTI) and weak non-terminating inputs (WNTI) both correspond to the real varieties of certain polynomial ideals. Furthermore, the authors prove that the variety of SNTI is computable, and under some sufficient conditions the variety of WNTI is also computable. Then by checking the computed SNTI and WNTI varieties in parallel, termination properties of a considered MPP can be asserted. As a consequence, the authors establish a new framework for termination analysis of MPPs.
Similar content being viewed by others
References
Cook B, Podelski A, and Rybalchenko A, Proving program termination, Communications of the ACM, 2011, 54(5): 88–98.
Yang L, Zhou C, Zhan N, and Xia B, Recent advances in program verification through computer algebra, Frontiers of Computer Science in China, 2010, 4(1): 1–16.
Turing A M, On computable numbers, with an application to the Entscheidungsproblem, Proceedings of the London Mathematical Society, 1936, 42(2): 230–265.
Tiwari A, Termination of linear programs, Proceedings of CAV 2004 (ed. by Alur R and Peled D A), LNCS 3114, Springer, Berlin, 2004, 70–82.
Bradley A R, Manna A, and Sipma H B, Termination of polynomial programs, Proceedings of VMCAI 2005 (ed. by Cousot R), LNCS 3385, Springer, Berlin, 2005, 113–129.
Braverman M, Termination of integer linear programs, Proceedings of CAV 2006 (ed. by Ball T and Jones R B), LNCS 4144, Springer, Berlin, 2006, 372–385.
Harris W R, Lal A, Nori A V, and Rajamani S K, Alternation for termination, Proceedings of SAS 2010 (ed. by Cousot R and Martel M), LNCS 6337, Springer, Berlin, 2010, 304–319.
Colón M A and Sipma H B, Synthesis of linear ranking functions, Proceedings of TACAS 2001 (ed. by Margaria T and Wang Y), LNCS 2031, Springer, Berlin, 2001, 67–81.
Podelski A and Rybalchenko A, A complete method for the synthesis of linear ranking functions, Proceedings of VMCAI 2004 (ed. by Steffen B and Levi G), LNCS 2937, Springer, Berlin, 2004, 239–251.
Xia B and Zhang Z, Termination of linear programs with nonlinear constraints, Journal of Symbolic Computation, 2010, 45(11): 1234–1249.
Xia B, Yang L, Zhan N, and Zhang Z, Symbolic decision procedure for termination of linear programs, Formal Aspects of Computing, 2011, 23(2): 171–190.
Xu M, Chen L, Zeng Z, and Li Z, Termination analysis of linear loops, International Journal of Foundations of Computer Science, 2010, 21(6): 1005–1019.
Xu M and Li Z, Symbolic termination analysis of solvable loops, Journal of Symbolic Computation, 2013, 50: 28–49.
Cook B, Gulwani S, Lev-Ami T, Rybalchenko A, and Sagiv M, Proving conditional termination, Proceedings of CAV 2008 (ed. by Gupta A and Malik S), LNCS 5123, Springer, Berlin, 2008, 328–340.
Sankaranarayanan S, Sipma H B, and Manna Z, Non-linear loop invariant generation using Gröbner bases, Proceedings of POPL 2004 (ed. by Jones N D and Leroy X), ACM Press, New York, 2004, 318–329.
Müller-Olm M and Seidl H, Computing polynomial program invariants, Information Processing Letters, 2004, 91(5): 233–244.
Kapur D, A quantifier-elimination based heuristic for automatically generating inductive assertions for programs, Journal of Systems Science and Complexity, 2006, 19(3): 307–330.
Rodríguez-Carbonell E and Kapur D, Generating all polynomial invariants in simple loops, Journal of Symbolic Computation, 2007, 42(4): 443–476.
Kovács L, Reasoning algebraically about P-solvable loops, Proceedings of TACAS 2008 (ed. by Ramakrishnan C R and Rehof J), LNCS 4963, Springer, Berlin, 2008, 249–264.
Chen Y, Xia B, Yang L, Zhan N, and Zhou C, Discovering non-linear ranking functions by solving semi-algebraic systems, Proceedings of ICTAC 2007 (ed. by Jones C B, Liu Z, and Woodcock J), LNCS 4711, Springer, Berlin, 2007, 34–49.
Gupta A, Henzinger T A, Majumdar R, Rybalchenko A, and Xu R, Proving non-termination, Proceedings of POPL 2008 (ed. by Necula G C and Wadler P), ACM Press, New York, 2008, 147–158.
Cook B, Podelski A, and Rybalchenko A, Termination proofs for systems code, Proceedings of PLDI 2006 (ed. by Schwartzbach M I and Ball T), ACM Press, New York, 2006, 415–426.
Velroyen H and Rümmer P, Non-termination checking for imperative programs, Proceedings of TAP 2008 (ed. by Beckert B and Hähnle R), LNCS 4966, Springer, Berlin, 2008, 154–170.
Brockschmidt M, Ströder T, Otto C, and Giesl J, Automated detection of non-termination and NullPointerExceptions for Java bytecode, Proceedings of FoVeOOS 2011 (ed. by Beckert B, Damiani F, and Gurov D), LNCS 7421, Springer, Berlin, 2011, 123–141.
Cousot P, Proving program invariance and termination by parametric abstraction, Lagrangian relaxation and semidefinite programming, Proceedings of VMCAI 2005 (ed. by Cousot R), LNCS 3385, Springer, Berlin, 2005, 1–24.
Shen L, Wu M, Yang Z, and Zeng Z, Finding positively invariant sets of a class of nonlinear loops via curve fitting, Proceedings of SNC 2009 (ed. by Kai H and Sekigawa H), ACM Press, New York, 2009, 185–190.
Cox D, Little J, and O’Shea D, Ideals, Varieties, and Algorithms: An Introduction to Computational Algebraic Geometry and Commutative Algebra, UTM, Springer, Berlin, 3 edition, 2007.
Xia B and Yang L, An algorithm for isolating the real solutions of semi-algebraic systems, Journal of Symbolic Computation, 2002, 34(5): 461–477.
Xia B, Discoverer: A tool for solving semi-algebraic systems, ACM Sigsam Bulletin, 2007, 41(2): 102–103.
Mayr E W, Membership in polynomial ideals over Q is exponential space complete, Proceedings of STACS 1989 (ed. by Monien B and Cori R), LNCS 349, Springer, Berlin, 1989, 400–406.
Author information
Authors and Affiliations
Corresponding author
Additional information
This research was supported by the National Basic Research Program of China under Grant No. 2014CB340700, the National Science and Technology Major Project of China under Grant No. 2012ZX01039-004, the National Natural Science Foundation of China under Grant Nos. 91118007, 11071273, 61202131, 11401218, cstc2012ggB40004, cstc2013jjys40001, SRFDP under Grant No. 20130076120010, the Open Project of Shanghai Key Laboratory of Trustworthy Computing under Grant No. 07dz22304201307, and West Light Foundation of Chinese Academy of Sciences.
This paper was recommended for publication by Editor LI Ziming.
Rights and permissions
About this article
Cite this article
Liu, J., Xu, M., Zhan, N. et al. Discovering non-terminating inputs for multi-path polynomial programs. J Syst Sci Complex 27, 1286–1304 (2014). https://doi.org/10.1007/s11424-014-2145-6
Received:
Revised:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11424-014-2145-6