System and method for identifying viable refactorings of program code using a comprehensive test suite
US7669188B2 · kind B2 · utility
Assignee
Inventors
Key dates
| Filing date | Dec 3, 2004 |
| Grant date | Feb 23, 2010 |
| Priority date | — |
| Expiry date | Jun 18, 2027 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F8/72
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
A system and method for identifying viable refactorings of program code using a comprehensive test suite is presented. Program code is maintained, including program statements written in accordance with a programming language and defining operations executed following transformation into machine code. A test suite associated with the program code is specified and includes one or more additional program operations to determine satisfactory generation of expected results during the operations execution. A plurality of refactorings are speculatively applied to the program code by evaluating one or more of the program statements against a set of refactoring rules and restructuring the program statements pursuant to at least one refactoring rule. The test suite is executed against the program code following each restructuring of the program statements and each refactoring that passes the test suite is determined.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.