Citations
1245 |
A Complexity Measure
- McCabe
- 1976
(Show Context)
Citation Context ...nal re-engineered loop has the ideal reachability ratio of 1. We therefore suggest that as an indicator of branch structure quality this semantic-based index is far more useful than the McCabe Number =-=[24]-=- because it indicates an ideal and how the structure might be improved to realize the ideal. We have shown elsewhere how BSG have an important role to play in developing a theory of normal forms for p... |
266 |
Predicate Calculus and Program Semantics
- Dijkstra, Scholten
- 1990
(Show Context)
Citation Context ...est precondition under which each assignment may execute. Imposing this requirement also effectively collapses complex branch structures within a loop to a simple uniform form. Using guarded commands =-=[19]-=- we call this structure the multiply branched statement (MBS) form, i.e: do G 3 if C1 3 S1 [] C2 3 S2 []....[]Cn3Snfiod R E-ENGINEERING LOOPS A loop that has undergone transformation to the MBS form e... |
194 | Exception handling: issues and a proposed notation - Goodenough - 1975 |
120 |
A model for software product quality
- Dromey
- 1995
(Show Context)
Citation Context ... in this loop structure. Both procedures share the same input x but while the output fx is always produced during iteration, the output fd is not (this leads to an inhomogeneous loop invariant defect =-=[6]-=-). This discrepancy in the relationship between fx and fd arises because of the exit branch 3 zerodivattempted X� state zerodivinf. It is necessary to remove this inconsistency, by grouping the two pr... |
23 | Program Structures for Exceptional Condition Handling - Levin - 1977 |
22 |
Exits in the Refinement Calculus
- King, Morgan
- 1995
(Show Context)
Citation Context ...ture that is being transformed—such benefits are not possible using simple transformation-based restructuring methods. The only other recent formal work on exits has been published by King and Morgan =-=[26]-=-. The focus of that work is upon formally accommodating exits and exceptions. These objectives are quite different from what we have tried to do here. The processes we have developed can be used to de... |
11 |
Exception handling in C programs.
- Lee
- 1983
(Show Context)
Citation Context ...oop to which they have been propagated. To illustrate how the overall process is applied we will transform the following nested multiple-exit C loop structure which has been taken from the literature =-=[10]-=-: NoReply � TRUE; do { if (SendMessage(RequestMsg)<0)) { printf(‘‘Bad send\n’’); return(RPC-FAILED); }; while (NoReply) if ((status � ReceiveMessage(ReplyMsg,10*Seconds))<0) { if (status �� TIMEOUT) {... |
7 | Software Quality Improvement, Specification Derivation and Quality Measurement Using Formal Methods - Pan - 1994 |
7 |
On Specifying Software Quality
- Dromey, McGettrick
- 1992
(Show Context)
Citation Context ... a read(s) or procedure(s) or loop(s) in both S and SXe. For instance, do G(x,y) 3 read(x); if C(x) 3 S1; break [] XC(x) 3 read(y); S2 fiodis a typical example. From the viewpoint of software quality =-=[21, 22]-=- this sort of loop has an inconsistent (inhomogeneous) invariant which should always be avoided. Because the exiting branch C e 3 S e is executed only once, it should not be in the loop structure. For... |
4 | Jumping to some purpose - Arblaster, Sime, et al. - 1979 |
4 |
Loop Normalization
- Pan, Dromey
- 1993
(Show Context)
Citation Context ...tion formally. We may use this information to construct the branch successor graph (BSG) for the loop (see Figure 2). The BSG may be used to both assess and improve the structural quality of programs =-=[20]-=-. Important logical (semantic) and structural characteristics of a loop may be conveniently interpreted in terms of features of the BSG. Well-structured loops have a BSG where each node (corresponding... |
3 | Exception Handing and SoftwareFault Tolerance - Cristian - 1980 |
3 | Snyder,A.: Exception Handing in CLU - Liskov - 1979 |
3 | Ada Exception Handing: an Axiomatic Approach - Luckham, Polak - 1980 |
3 | Exception Handing - MacLaren - 1977 |
2 | Know the State Your're in - Atkinson - 1978 |
2 |
Jumping about and Getting into a State, The
- Atkinson
- 1984
(Show Context)
Citation Context ... return statements. After removal of gotos from a loop body only breaks, returns and the statements that make the loop guard false are left to cause multiple-exits. Generally, the last kind of ‘exit’ =-=[4]-=- may not be detected by pure syntactic analysis, because it is often difficult to neatly capture in a powerful pattern description all possible forms that a particular kind of statement might assume. ... |
2 |
Selling off the State: Privatization in Hungary in Clarke T and C Pitelis, The Political Economy of Privatization
- unknown authors
- 1993
(Show Context)
Citation Context ...t directly following the loop; F return transfers control directly out of the function/procedure that encapsulates it. F 2.1. Preliminary transformations We have previously developed a formal process =-=[16]-=- to eliminate all gotos from any program. Here, we will therefore focus only upon removal of break and return statements. After removal of gotos from a loop body only breaks, returns and the statement... |
1 | Pascal Scalars are State Indicators - Atkinson - 1979 |
1 |
Jumping to Some Purpose
- Hill
- 1980
(Show Context)
Citation Context ...onds to the inner loop. 6.3. Removal of guard-terminating branches We now consider an example (in a Pascal-like language) proposed by Atkinson [4] that was put forward as a strategy for handling MELs =-=[7, 15, 18, 25]-=-. According to our earlier definition the proposed solution is still a MEL. It has the following form: ...... PROCEDURE Evaluatef(x: real; VAR f:real; VAR zerodiv:boolean); ...... PROCEDURE Evaluatefd... |
1 | Jumping to Some Purpose - Inglis - 1982 |
1 |
Jumping to Some Purpose
- Missala, Rudnicki
- 1982
(Show Context)
Citation Context ...onds to the inner loop. 6.3. Removal of guard-terminating branches We now consider an example (in a Pascal-like language) proposed by Atkinson [4] that was put forward as a strategy for handling MELs =-=[7, 15, 18, 25]-=-. According to our earlier definition the proposed solution is still a MEL. It has the following form: ...... PROCEDURE Evaluatef(x: real; VAR f:real; VAR zerodiv:boolean); ...... PROCEDURE Evaluatefd... |
1 |
Jumping to Some Purpose
- Robinson
- 1980
(Show Context)
Citation Context ...onds to the inner loop. 6.3. Removal of guard-terminating branches We now consider an example (in a Pascal-like language) proposed by Atkinson [4] that was put forward as a strategy for handling MELs =-=[7, 15, 18, 25]-=-. According to our earlier definition the proposed solution is still a MEL. It has the following form: ...... PROCEDURE Evaluatef(x: real; VAR f:real; VAR zerodiv:boolean); ...... PROCEDURE Evaluatefd... |
1 |
Agricultural Producer Co-operatives in Bardhan P (ed), The Economic Theory of Agrarian Institutions
- unknown authors
- 1989
(Show Context)
Citation Context ...R E-ENGINEERING LOOPS }while ((Op �� Opl)�(Op �� Ops)); if (Op �� Opq) { QFlag � TRUE; Error � TRUE; } elsif (Op ! � ERROR) && (Op ! � Opq)&& (Op ! � Opl)&& (Op ! � Ops)) {Error � TRUE; } } Elsewhere =-=[23]-=- we have shown how a property of the BSG provides an excellent metric for assessing the quality of branched loop structures. The ideal for a multiple-branched loop structure is that in passing from on... |