Abstract Interpretation Of Functional Programs Using An Attribute Grammar System

Ehc

Abstract Interpretation of Functional Programs using an Attribute Grammar System

  • Jeroen Fokker and S. Doaitse Swierstra, 2008
  • LDTA 2008
  • Abstract: We describe an algorithm for abstract interpretation of an intermediate language in a Haskell compiler, itself also written in Haskell. It computes approximations of possible values for all variables in the program, which can be used for optimizing the object code. The analysis is done by collecting constraints on variables, which are then solved by fixpoint iteration. The set of constraints grows while solving, as possible values of unknown functions become known. The constraints are collected by decorating the abstract syntax tree with an attribute grammar based preprocessor for Haskell. An introduction to this preprocessor is also given.

-- AtzeDijkstra - 19 Jun 2008

Topic attachments
I Attachment Action Size Date Who Comment
pdfpdf 20080215-ldta08-abstrint-revised.pdf manage 166.3 K 19 Jun 2008 - 11:52 AtzeDijkstra