• DocumentCode
    2436488
  • 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
  • fYear
    2012
  • fDate
    8-9 Oct. 2012
  • Firstpage
    1
  • Lastpage
    6
  • 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;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Emerging Technologies (ICET), 2012 International Conference on
  • Conference_Location
    Islamabad
  • Print_ISBN
    978-1-4673-4452-4
  • Type

    conf

  • DOI
    10.1109/ICET.2012.6375450
  • Filename
    6375450