Abstract
Key ideas in our recent work on automatically generating polynomial equalities and inequalities as invariants/inductive assertions for imperative programs are reviewed. Two approaches based on elimination techniques are briefly discussed. The first approach is algebraic and is based on giving the semantics of programming language constructs in terms of polynomial ideals. The second approach is based on assuming a priori the shapes of inductive assertions of interest and then using quantifier elimination techniques to generate constraints on parameters specifying the shape. The key ideas of these approaches are illustrated through examples.
This paper is based on a talk given at the Ganzinger Memorial Symposium held at the Max Planck Institute in May 2005. Most of this paper was written in the summer of 2006. This research was partially supported by NSF awards CCF-0541315 and CCF-0729097.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Bressoud, D.: Factorization and Primality Testing. Springer (1989)
Cohen, E.: Programming in the 1990s. Springer (1990)
Colón, M.A.: Approximating the Algebraic Relational Semantics of Imperative Programs. In: Giacobazzi, R. (ed.) SAS 2004. LNCS, vol. 3148, pp. 296–311. Springer, Heidelberg (2004)
Colón, M.A., Sankaranarayanan, S., Sipma, H.B.: Linear Invariant Generation Using Non-linear Constraint Solving. In: Hunt Jr., W.A., Somenzi, F. (eds.) CAV 2003. LNCS, vol. 2725, pp. 420–432. Springer, Heidelberg (2003)
Cousot, P., Cousot, R.: Abstract Interpretation: a Unified Lattice Model for Static Analysis of Programs by Construction or Approximation of Fixpoints. In: Conference Record of the Fourth Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, Los Angeles, California, pp. 238–252. ACM Press, New York (1977)
Cousot, P., Halbwachs, N.: Automatic Discovery of Linear Restraints among Variables of a Program. In: Conference Record of the Fifth Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, Tucson, Arizona, pp. 84–97. ACM Press, New York (1978)
Cox, D., Little, J., O’Shea, D.: Ideals, Varieties and Algorithms. An Introduction to Computational Algebraic Geometry and Commutative Algebra. Springer (1998)
Delzanno, G.: Constraint-based verification of parameterized cache coherence protocols. Formal Methods in System Design 23(3), 257–301 (2003)
Dijkstra, E.: A Discipline of Programming. Prentice-Hall (1976)
Freire, P.: http://www.pedrofreire.com/crea2_en.htm
German, S., Wegbreit, B.: A Synthesizer of Inductive Assertions. IEEE Transactions on Software Engineering 1(1), 68–75 (1975)
Gulwani, S., Tiwari, A.: Assertion Checking over Combined Abstraction of Linear Arithmetic and Uninterpreted Functions. In: Sestoft, P. (ed.) ESOP 2006. LNCS, vol. 3924, pp. 279–293. Springer, Heidelberg (2006)
Kaldewaij, A.: Programming. The Derivation of Algorithms. Prentice-Hall (1990)
Kapur, D.: An approach for solving systems of parametric polynomial equations. In: Saraswat, Hentenryck, V. (eds.) Principles and Practices of Constraint Programming, pp. 217–244. MIT Press (1995)
Kapur, D.: Automatically Generating Loop Invariants using Quantifier Elimination. Technical report, Department of Computer Science, University of New Mexico, Albuquerque, NM, USA (2003)
Kapur, D.: A Quantifier Elimination based Heuristic for Automatically Generating Inductive Assertions for Programs. J. of Systems Science and Complexity 19(3), 307–330 (2006)
Kapur, D., Majumdar, R., Zarba, C.: Interpolation for data structures. In: Proceedings of the 14th ACM SIGSOFT Symp. on Foundations of Software Engineering (2006)
Kapur, D., Narendran, P.: An equational approach to theorem proving in first-order predicate calculus. In: Proceedings of the Ninth International Joint Conference on Artificial Intelligence (IJCAI 1985), pp. 1146–1153 (1985)
Kapur, D., Zarba, C.: A Reduction Approach to Decison Procedures. Technical Report, Department of Computer Science, UNM, (December 2006)
Knuth, D.E.: The Art of Computer Programming. Seminumerical Algorithms, vol. 2. Addison-Wesley (1969)
Kuncak, V.: Modular Data Structure Verification. PhD thesis, Department of EECS, MIT, Cambridge, MA (2007)
Manna, Z.: Mathematical Theory of Computation. McGraw-Hill (1974)
Manna, Z., Zarba, C.: Combining Decision Procedures. In: Formal Methods at the Crossroads: from Panacea to Foundational Support (2003)
Müller-Olm, M., Seidl, H.: Program Analysis through Linear Algebra. In: Symposium on Principles of Programming Languages, pp. 330–341 (2004)
Müller-Olm, M., Petter, M., Seidl, H.: Interprocedurally Analyzing Polynomial Identities. In: Durand, B., Thomas, W. (eds.) STACS 2006. LNCS, vol. 3884, pp. 50–67. Springer, Heidelberg (2006)
Nelson, G.: Techniques for Program Verification. PhD thesis, Department of Computer Science, Stanford University, Palo Alto, CA (1981)
Petter, M.: Berechnung von polynomiellen invarianten. Master’s thesis, Fakultät für Informatik, Technische Universität München (2004), http://www2.cs.tum.edu/~petter/da
Rodríguez-Carbonell, E.: Automatic Generation of Polynomial Invariants for System Verification. PhD thesis, Universitat Politecnica de Catalunya (2006)
Rodríguez-Carbonell, E., Kapur, D.: Automatic Generation of Polynomial Loop Invariants: Algebraic Foundations. In: Intl. Symp. on Symbolic and Algebraic Computation (ISSAC), pp. 266–273 (July 2004)
Rodríguez-Carbonell, E., Kapur, D.: Automatic generation of polynomial invariants of bounded degree using abstract interpretation. J. of Science of Programming 64(1), 54–75 (2007)
Rodríguez-Carbonell, E., Kapur, D.: Generating all polynomial invariants in simple loops. J. of Symbolic Computation 42(4), 443–476 (2007)
Rodríguez-Carbonell, E., Kapur, D.: An Abstract Interpretation Approach for Automatic Generation of Polynomial Invariants. In: Giacobazzi, R. (ed.) SAS 2004. LNCS, vol. 3148, pp. 280–295. Springer, Heidelberg (2004)
Sankaranarayanan, S., Sipma, H., Manna, Z.: Non-linear Loop Invariant Generation using Gröbner Bases. In: Symp. on Principles of Programming Languages (2004)
Schrijver, A.: Theory of Linear and Integer Programming. John Wiley (1998)
Shelburne, B.J.: Zuse’s Z3 square root algorithm, http://www4.wittenberg.edu/academics/mathcomp/bjsdir/ZuseZ3Talk.pdf
Shostak, R.: A Practical Decision Procedure for Arithmetic with Function Symbols. J. ACM 26(2), 351–360 (1979)
Wegbreit, B.: The Synthesis of Loop Predicates. Communications of the ACM 17(2), 102–112 (1974)
Wu, W.: Basic principles of mechanical theorem proving in geometries. J. of Automated Reasoning 2, 221–252 (1986)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Kapur, D. (2013). Elimination Techniques for Program Analysis. In: Voronkov, A., Weidenbach, C. (eds) Programming Logics. Lecture Notes in Computer Science, vol 7797. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-37651-1_8
Download citation
DOI: https://doi.org/10.1007/978-3-642-37651-1_8
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-37650-4
Online ISBN: 978-3-642-37651-1
eBook Packages: Computer ScienceComputer Science (R0)