• DocumentCode
    2139666
  • Title

    A Constraint Programming Approach to Conflict-Aware Optimal Scheduling of Prioritized Code Clone Refactoring

  • Author

    Zibran, Minhaz F. ; Roy, Chanchal K.

  • Author_Institution
    Dept. of Comput. Sci., Univ. of Saskatchewan, Saskatoon, SK, Canada
  • fYear
    2011
  • fDate
    25-26 Sept. 2011
  • Firstpage
    105
  • Lastpage
    114
  • Abstract
    Duplicated code, also known as code clones, are one of the malicious ´code smells´ that often need to be removed through refactoring for enhancing maintainability. Among all the potential refactoring opportunities, the choice and order of a set of refactoring activities may have distinguishable effect on the design/code quality. Moreover, there may be dependencies and conflicts among those refactorings. The organization may also impose priorities on certain refactoring activities. Addressing all these conflicts, priorities, and dependencies, manual formulation of an optimal refactoring schedule is very expensive, if not impossible. Therefore, an automated refactoring scheduler is necessary, which will maximize benefit and minimize refactoring effort. In this paper, we present a refactoring effort model, and propose a constraint programming approach for conflict-aware optimal scheduling of code clone refactoring.
  • Keywords
    constraint handling; program compilers; scheduling; software maintenance; conflict aware optimal scheduling; constraint programming approach; duplicated code; maintainability; malicious code smells; optimal refactoring schedule; prioritized code clone refactoring; refactoring effort model; Cloning; Equations; Mathematical model; Measurement; Object oriented modeling; Programming; Schedules; code clone; constraint programming; reengineering; refactoring; scheduling; software maintenance;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Source Code Analysis and Manipulation (SCAM), 2011 11th IEEE International Working Conference on
  • Conference_Location
    Williamsburg, VI
  • Print_ISBN
    978-1-4577-0932-6
  • Type

    conf

  • DOI
    10.1109/SCAM.2011.21
  • Filename
    6065169