Bytecode rewriting in Tom

Emilie Balland 1 Pierre-Etienne Moreau 1 Antoine Reilles 1
1 PROTHEO - Constraints, automatic deduction and software properties proofs
INRIA Lorraine, LORIA - Laboratoire Lorrain de Recherche en Informatique et ses Applications
Abstract : In this paper, we present a term rewriting based library for manipulating Java bytecode. We define a mapping from bytecode programs to algebraic terms, and we use Tom, an extension of Java that adds pattern-matching facilities, to describe transformations. An originality of Tom is that it provides a powerful strategy language to express traversals over trees and to control how transformation rules are applied. To be even more expressive, we use CTL formulae as conditions and we show how their satisfiability can be ensured using the strategy formalism. Through small examples, we show how bytecode analysis and transformations can be defined in an elegant way. In particular, we outline the implementation of a ClassLoader parameterized by a security policy that restricts file access.
Type de document :
Communication dans un congrès
Marieke Huisman and Fausto Spoto. Second Workshop on Bytecode Semantics, Verification, Analysis and Transformation - BYTECODE 07, Mar 2007, Braga, Portugal. ELSEVIER, 190, pp.19-33, 2007, ENTCS; BYTECODE 2007
Liste complète des métadonnées


https://hal.inria.fr/inria-00129513
Contributeur : Emilie Balland <>
Soumis le : mercredi 7 février 2007 - 17:12:45
Dernière modification le : mardi 25 octobre 2016 - 17:02:37
Document(s) archivé(s) le : vendredi 21 septembre 2012 - 11:13:11

Fichier

bytecode.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : inria-00129513, version 1

Collections

Citation

Emilie Balland, Pierre-Etienne Moreau, Antoine Reilles. Bytecode rewriting in Tom. Marieke Huisman and Fausto Spoto. Second Workshop on Bytecode Semantics, Verification, Analysis and Transformation - BYTECODE 07, Mar 2007, Braga, Portugal. ELSEVIER, 190, pp.19-33, 2007, ENTCS; BYTECODE 2007. <inria-00129513>

Partager

Métriques

Consultations de
la notice

287

Téléchargements du document

164