Abstract Interpretation”

Abstract Interpretation”

‟Next 40 years of Abstract Interpretation” Abstract Interpretation – 40 years back + some years ahead Abstract interpretation: origin (abridged) N40AI 2017 January 21st, 2017 Paris, France Patrick Cousot [email protected]@yu.e1du cs.nyu.edu/~pcousot N40AI, 2017/01/21, Paris, France 1 © P. Cousot N40AI, 2017/01/21, Paris, France 2 © P. Cousot Before starting (1972-73): formal syntax Before starting (1972-73): formal semantics • Radhia Rezig: works on precedence parsing (R.W. • Patrick Cousot: works on the operational semantics of Floyd, N. Wirth and H. Weber, etc.) for Algol 68 programming languages and the derivation of ➡ P r e - p r o c e s s i n g ( by s t a t i c a n a l y s i s a n d implementations from the formal definition transformation) of the grammar before building the ➡ Static analysis of the formal definition and bottom-up parser transformation to get the implementation by “pre- • Patrick Cousot: works on context-free grammar evaluation” (similar to the more recent “partial parsing (J. Earley and F. De Remer) evaluation”) ➡ P r e - p r o c e s s i n g ( by s t a t i c a n a l y s i s a n d transformation) of the grammar before building the top-down parser • Radhia Rezig. Application de la méthode de précédence totale à l’analyse d’Algol 68, Master thesis, Université Joseph Fourier, Grenoble, France, September 1972. • Patrick Cousot. Définition interprétative et implantation de languages de programmation. Thèse de Docteur Ingénieur en Informatique, Université Joseph Fourier, Grenoble, France, 14 Décembre 1974 (submitted in 1973 • Patrick Cousot. Un analyseur syntaxique pour grammaires hors contexte ascendant sélectif et général. In Congrès AFCET 72, Brochure 1, pages 106-130, Grenoble, France, 6-9 November 1972. but defended after finishing military service with J.D. Ichbiah at CII). N40AI, 2017/01/21, Paris, France 3 © P. Cousot N40AI, 2017/01/21, Paris, France 4 © P. Cousot Vision (1973) An important encounter • I do my military service as a scientist with Jean Ichbiah • Work on the revision of LIS (ancestor of Green → ADA) Intervals ➞ • Will always be a very strong support on our work Assertions ➞ Static analysis ➞ N40AI, 2017/01/21, Paris, France 5 © P. Cousot N40AI, 2017/01/21, Paris, France 6 © P. Cousot 1973: Dijkstra’s handmade proofs 1974: origin Radhia Rezig: attends Marktoberdorf summer • Radhia Rezig shows her interval analysis • ideas to Patrick Cousot school, July 25–Aug. 4, 1973 ➡ Patrick very critical on going backwards ➡ Dijkstra shows program proofs (inventing from [-∞, +∞] and claims that going elegant backward invariants) forward would be much better ➡ Patrick also very skeptical on forward termination for loops • Radhia comes back with the idea of ➡ Radhia has the idea of automatically inferring extrapolating bounds to ±∞ for the forward the invariants by a backward calculus to analysis determine intervals • We discover widening = induction in the abstract and that the idea is very general N40AI, 2017/01/21, Paris, France 7 © P. Cousot N40AI, 2017/01/21, Paris, France 8 © P. Cousot First seminar in Grenoble: a warm welcome Notes of Radhia Rezig on forward iteration • “Not all functions are increasing, for example, sin” (1) from ☐ = ⊥ versus • “This is woolly” (fumeux) backward iteration • “This will have applications in hundred years” from [-∞, +∞] (2) (1) i.e. forward least fixed point (2) i.e. backward greatest fixed point N40AI, 2017/01/21, Paris, France 9 © P. Cousot N40AI, 2017/01/21, Paris, France 10 © P. Cousot The IRIA-SESORI contract (1975–76) The IRIA-SESORI contract (1975-76) • The project evaluator (Bernard Lohro) points us to the • New general ideas literature on constant propagation in data flow analysis - The formal notions of abstraction/approximation (Kildall thesis). - The formal notion of abstract induction (widening) to • It appears that it is completely related to some of ours handle infiniteness and/or complexity ideas, but a.o. - The systematic correct design with respect to a formal semantics - We are not syntactic (as in boolean DFA) - ... - We have no need for some hypotheses (e.g. distributivity not even satisfied by constant propagation!) - We have no restriction to finite lattices (or ACC) - We have no need of an a-posteriori proof of correctness (e.g. with respect to the MOP as in DFA) - ... N40AI, 2017/01/21, Paris, France 11 © P. Cousot N40AI, 2017/01/21, Paris, France 12 © P. Cousot The IRIA-SESORI contract (1975-76) The first reports (1975) • The first contract report: 3I}Ti\ilTIIO 3I}Ti\ilTIIO NOIJ\DICITEA NOIJ\DICITEA JO f,IIVIS s'fl{vluv s'fl{vluv c0 c0 sgrrul@ud sgrrul@ud sdrt Pue Pue JCISrp3 JCISrp3 {f,rrlBd JOSfp3 JOSfp3 TqPeU TqPeU € s/6T s/6T 5Z 5Z er$E^oN 'trtl 30 30 ruoddvu 3H3U3HC3U The first abstract The first research interpreter with report widening (Nov. 1975) (as of 23 Sep. 1975) N40AI, 2017/01/21, Paris, France 13 © P. Cousot N40AI, 2017/01/21, Paris, France 14 © P. Cousot The first publication (1976) Maturation (1976 – 77): from an • The first publication (ISOP II, Apr. 76) algorithmic to an algebraic point of view • Narrowing, duality • Transition systems, traces • Fixpoints, chaotic/asynchronous iterations, approximation • Abstraction, formalized by Galois connections, closure operators, Moore families, ...; • Numeric and symbolic abstract domains, combinations of abstract domains • Recursive procedures, relational analyses, heap analysis • etc. cited by 551 N40AI, 2017/01/21, Paris, France 15 © P. Cousot N40AI, 2017/01/21, Paris, France 16 © P. Cousot A Visitor POPL’77 FDPC’77 POPL’79 • Hi, I am Steve Warshall • The theorem? • Yes • Steve Schuman told me you are doing interesting work • … • You should publish in Principles of Programming On this page: dual, Galois connections, Languages. conjugate and Topology, higher-order closure operators, Moore inversion:lfp/gfp wp/sp fixpoints, operational/ families, ideals,... (i.e. pre/post) wp/sp)˜ ˜ summary/... analysis • Stephen Warshall. A theorem on Boolean matrices. Journal of the ACM, 9(1):11–12 , January 1962. Cited by 6381 Cited by 225 Cited by 1638 N40AI, 2017/01/21, Paris, France 17 © P. Cousot N40AI, 2017/01/21, Paris, France 18 © P. Cousot And a bit of mathematics… On submitting to POPL PA.IFIC'?:lTii HEMATI.S ::',''ffi • For POPL’77, we submit (on Aug. 12, 1976) CONSTRUCTIVEVERSIONS OF TARSKI'S FIXED POINT THEOREMS P,q.rnrcN Cousor l.No RlpnlA Cousor Let F be a monotone operator on the complete lattice copies of a two-hands written manuscript of 100 Z into itself. Tarski's lattice theoretical fixed point theorern states that the set of fixed points of l' is a nonempty cornplete lattice for the ordering of Z. We give a constructive proof of this theorern showing that the set of fixed points of .F is the image of L by a lower and an upper preclosure operator. These preclosure operators are the composition of lower and upper closure operators which are defined by means of pages. The paper is accepted ! limits of stationary transfinite iteration sequencesfor ,F. In the same wey we give a constructive characterization of the set of common fixed points of a family of commuting operators. Finally we examine some consequencesof additional semi- continuity hypotheses. 1. Introduction. LetL(s:, L,T,U, |-l) beanonempty complete g, Lutt'ice with parti,al ordering least upper bound, u , greatest lower bound, ft. The i,nf,munL I of tr is f-lL, the supremum T of L is UL. (Birkhoff's standard referenee book I3l provides the necessary background materiai.) Set inclusion, union and intersection are respectively denoted by e , U and f-l . Let tr be a monotone operator on L(e, L, T, U, fl) into itself (i.e., YX, Y e L, {X =Y) - {F(X) e lr(y)}). The fundamental theorem of Tarski [19] states that the set fp(F) of f,red"poi,ntsof f'(i.e., fp(F): {Xe L:X: f'(X)}) is a nonempty complete iattice with ordering e . The proof of this theorem is based on the definition of the least fixed point tfp(F) of lI by Lfp(F) : g n{Xe L:F(X) X}. The least upper bounclof S c fe@) in fp(F) ASYNCHRONOUSITERATIVE METHODS is the least fixed point of the restriction of f'to the completelattice FORSOLVING A FIXED POINTSYSTEM OF MONOTONE {X e L: ( u S1 q 11. An application of the duality principte completes EQUATIONSIN A COMPLETILATTICE the proof. Patri ck Cousot This deflnition is not constructive and many appiications of R.R. B8 lanl- omlrno LYI I Tarski's theorem (specially in computer science (Cousot [5]) and numerical analysis (Amann Iz])) use the alternative characterization of lfp(F) as U {tr"( -r ): i e N}. This iteration schemewhich originates from Kleene [tO]'s first recursion theorem and which was used by Tarski [fl] for complete morphisms, has the drawback to require the additional assumptionthat F is semi-conti,nuous(F(US) : U,F'(S) 'increas'ing l for every nonempty ch,ai,tt,S, see e.g., Kolodner [ff]). RAFPORT DE REGT-!ERCHE l I cited by 208 cited by 31 cited by 42 N40AI, 2017/01/21, Paris, France 19 © P. Cousot N40AI, 2017/01/21, Paris, France 20 © P. Cousot On abstracting: transition system On convincing ... Reachability semantics is an abstraction of the relational semantics (in PC’s thesis, 21 march 1978 also § 3 of POPL’79) • During PC’s thesis defense, it was suggested that abstraction/approximation is useless since computers i.e. pre i.e. post transformer are finite and executions are timed-out (so, the second part of the thesis on fixpoint approximation/ widening/narrowing/..

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    13 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us