Title :
Formal specification of extended refactoring guidelines
Author :
Basit, Wafa ; Lodhi, Fakhar ; Bhatti, Muhammad Usman
Author_Institution :
Dept. of Comput. Sci., FAST-NUCES, Lahore, Pakistan
Abstract :
Refactoring is considered a disciplined and strict process of code restructuring. It requires evaluation of a complex set of pre and post conditions that ensure preservation of externally observable behavior and also improvement in the internal attributes of the software system. On the contrary refactoring process is rarely documented using formal methods of specification. We have found the existing formal/informal specifications of refactorings incomplete from the perspective of client and unit test adaptation. Also, these specifications do not take into account many semantic issues introduced by refactorings that are not flagged by the compiler. In this paper we have provided extended guidelines for key primitive refactorings. We have used these guidelines to develop a model for addressing adaptations in the clients and test code as well. We also provide formal specifications for: the functions in our model, a primitive refactoring and a composite refactoring.
Keywords :
formal specification; code restructuring; contrary refactoring process; extended refactoring guidelines; formal methods; informal specifications; key primitive refactorings; software system; Adaptation models; Catalogs; Formal specifications; Guidelines; Semantics; Software systems; Syntactics; Refactoring; behavior preservation; clients; formal specification; postconditions; preconditions; semantic errors; unit tests;
Conference_Titel :
Emerging Technologies (ICET), 2012 International Conference on
Conference_Location :
Islamabad
Print_ISBN :
978-1-4673-4452-4
DOI :
10.1109/ICET.2012.6375450