A Correct Refactoring Operation to Rename Global Variables in C Programs

Julien Cohen 1, 2
2 ASCOLA - Aspect and composition languages
Inria Rennes – Bretagne Atlantique , Département informatique - EMN, LINA - Laboratoire d'Informatique de Nantes Atlantique
Abstract : Most integrated development environments are shipped with refactoring tools. However, their refactoring operations are often known to be unreliable. As a consequence, developers have to test their code after applying an automatic refactoring. In this report, we consider a refactoring operation (renaming of global variables in C), and we prove that its core implementation preserves the set of possible behaviors of transformed programs. That proof of correctness relies on the operational semantics of C provided by Compcert C in Coq. We also prove some static properties of the considered refactoring operation and we use them to find properties of some composed refactoring operations.
Type de document :
Rapport
[Research Report] LINA-University of Nantes. 2015
Liste complète des métadonnées

Littérature citée [26 références]  Voir  Masquer  Télécharger

https://hal.archives-ouvertes.fr/hal-01248121
Contributeur : Julien Cohen <>
Soumis le : mercredi 23 décembre 2015 - 18:48:03
Dernière modification le : vendredi 16 septembre 2016 - 15:16:58

Fichier

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

Identifiants

  • HAL Id : hal-01248121, version 1

Collections

Citation

Julien Cohen. A Correct Refactoring Operation to Rename Global Variables in C Programs. [Research Report] LINA-University of Nantes. 2015. 〈hal-01248121〉

Partager

Métriques

Consultations de la notice

201

Téléchargements de fichiers

152