Electronic Notes in Theoretical Computer Science · 2009 · 10 citations · 13 references
ComputingComputer ScienceAlgorithmsCompilersProgramming LanguagesAbstract InterpretationAbstract Syntax TreesCompiler ConstructionFunctional ProgrammingIntermediate RepresentationType SystemsAbstract Syntax Tree AnalysisAbstract Syntax Tree ConstructionAbstract Syntax Tree RepresentationAbstract Syntax Tree TraversalConstraintsFixpoint ComputationObject Code Optimization
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.
13
Constructing Induction Rules for Deductive Synthesis Proofs
Alan Bundy, Lucas Dixon, Jeremy Gow et al. · Electronic Notes in Theoretical Computer Science · 2006 · 2.8K citations · Full text
Semantics of context-free languages
Donald E. Knuth · Theory of Computing Systems · 1968 · 2K citations