Personal tools
You are here: Home Members Torbjörn Ekman publications Extending attribute grammars with collection attributes - evaluation and applications
Document Actions

Extending attribute grammars with collection attributes - evaluation and applications

In: Source Code Analysis and Manipulation (SCAM 2007), pages 69-80. IEEE Press, 2007.

Authors: Eva Magnusson, Torbjörn Ekman, Görel Hedin

Abstract

Collection attributes, as defined by Boyland, can be used as a mechanism for concisely specifying cross-reference-like properties such as callee sets, subclass sets, and sets of variable uses.
We have implemented collection attributes in our declarative meta programming system JastAdd, and used them for a variety of applications including devirtualization analysis, metrics, and flow analysis. We propose a series of evaluation algorithms for collection attributes, and compare their performance and applicability. The key design criteria for our algorithms are 1) that they work well with demand evaluation, i.e., defined properties are computed only if they are actually needed for a particular source code analysis problem and a particular source program, and 2) that they work in the presence of circular (fixed-point) definitions that are common for many source code analysis problems, e.g., flow analysis. We show that the best algorithms work well on large practical problems, including the analysis of large Java programs.

(PDF)

BIBTEX:

@inproceedings{JastAddCollections,
    author = "Eva Magnusson and Torbj{\"o}rn Ekman and G{\"o}rel Hedin",
    title = "Extending Attribute Grammars with Collection Attributes ---
         Evaluation and Applications",
    booktitle = "Source Code Analysis and Manipulation",
    pages = "69--80",
    publisher = "IEEE Press",
    year = "2007"
}


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: