REENGINEERING LOOPS

Authors
Citation
S. Pan et Rg. Dromey, REENGINEERING LOOPS, Computer journal, 39(3), 1996, pp. 184-202
Citations number
26
Categorie Soggetti
Computer Sciences","Computer Science Hardware & Architecture
Journal title
ISSN journal
00104620
Volume
39
Issue
3
Year of publication
1996
Pages
184 - 202
Database
ISI
SICI code
0010-4620(1996)39:3<184:RL>2.0.ZU;2-U
Abstract
Loops with multiple-exits and flags detract from the quality of impera tive programs. They tend to make control-structures difficult to under stand and, at the same time, introduce the risk of non-termination and other correctness problems. A systematic, generally applicable proced ure, called loop rationalization, which removes such features and logi cally simplifies loop structures is presented. This method, which is f ounded on the principle of separation of concerns, employs strongest p ostcondition calculations and congruent equivalence transformations to improve loops, A byproduct of the process is that it detects a range of defects such as unreachable code and a class of non termination pro blems.