2013 IEEE Sixth International Conference on Software Testing, Verification and Validation (2008)
Apr. 9, 2008 to Apr. 11, 2008
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/ICST.2008.36
Refactoring is a method for improving a program's structure without changing its external behavior. Refactoring is a promising approach to assist reliable and safe software evolution. However, in aspect-oriented programming (AOP), it is not necessarily easy for a programmer to understand the overall behavior of a woven program because the weaving modifies the behavior. Unexpected bugs can be embedded in a program if the programmer does not modify the program carefully. In order to deal with this problem, we propose the notion of RbC (refactoring by contract), a technique to verify refactoring based on contracts. Contracts in RbC consist of preconditions, postconditions, and invariants. A precondition states under which conditions refactoring can be applied. A postcondition states what condition should be verified after refactoring has been accomplished, and an invariant states what conditions refactoring should preserve. After introducing RbC, we check whether refactoring preserves behavior and whether it actually improves internal structure. A contract is described in COW (contract writing language), a language for describing a predicate based on first-order logic. COW provides a set of primitive predicates that represent program structure and behavior. Adopting our approach, software evolution in AOP becomes reliable and safe.
Contracts, Programming profession, Software safety, Weaving, Computer bugs, Writing, Software testing, Logic programming, Data mining, Program processors, Contract, AOP, Refactoring, Verification
"Contract-Based Verification for Aspect-Oriented Refactoring", 2013 IEEE Sixth International Conference on Software Testing, Verification and Validation, vol. 00, no. , pp. 180-189, 2008, doi:10.1109/ICST.2008.36