diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2015-06-28 01:44:30 +0100 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2015-06-28 01:44:30 +0100 |
commit | 962f8d5252b3f5ec4d19e0cd2a430934bd55cc6d (patch) | |
tree | 27d5f9b0d130c6c1a6758bc0b7456b0aa51e34e0 /Test/test2/ContractEvaluationOrder.bpl | |
parent | e11d65009d0b4ba1327f5f5dd6b26367330611f0 (diff) |
Normalise line endings using a .gitattributes file. Unfortunately
this required that this commit globally modify most files. If you
want to use git blame to see the real author of a line use the
``-w`` flag so that whitespace changes are ignored.
Diffstat (limited to 'Test/test2/ContractEvaluationOrder.bpl')
-rw-r--r-- | Test/test2/ContractEvaluationOrder.bpl | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/Test/test2/ContractEvaluationOrder.bpl b/Test/test2/ContractEvaluationOrder.bpl index 8719dcfa..4115c4b0 100644 --- a/Test/test2/ContractEvaluationOrder.bpl +++ b/Test/test2/ContractEvaluationOrder.bpl @@ -1,36 +1,36 @@ -// RUN: %boogie "%s" > "%t"
-// RUN: %diff "%s.expect" "%t"
-procedure P() returns (x, y: int)
- ensures x == y; // ensured by the body
- ensures x == 0; // error: not ensured by the body
- ensures y == 0; // follows from the previous two ensures clauses (provided they are
- // indeed evaluated in this order, which they are supposed to be)
-{
- x := y;
-}
-
-procedure Q() returns (x, y: int)
-{
- x := y;
-
- assert x == y; // ensured by the body
- assert x == 0; // error: not ensured by the body
- assert y == 0; // follows from the previous two asserts (provided they are
- // indeed evaluated in this order, which they are supposed to be)
-}
-
-procedure R()
-{
- var a, b: int;
- a := b;
- call S(a, b);
-}
-
-procedure S(x, y: int)
- // In the call from R:
- requires x == y; // ensured by the body of R
- requires x == 0; // error: not ensured by the body of R
- requires y == 0; // follows from the previous two requires clauses (provided they are
- // indeed evaluated in this order, which they are supposed to be)
-{
-}
+// RUN: %boogie "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +procedure P() returns (x, y: int) + ensures x == y; // ensured by the body + ensures x == 0; // error: not ensured by the body + ensures y == 0; // follows from the previous two ensures clauses (provided they are + // indeed evaluated in this order, which they are supposed to be) +{ + x := y; +} + +procedure Q() returns (x, y: int) +{ + x := y; + + assert x == y; // ensured by the body + assert x == 0; // error: not ensured by the body + assert y == 0; // follows from the previous two asserts (provided they are + // indeed evaluated in this order, which they are supposed to be) +} + +procedure R() +{ + var a, b: int; + a := b; + call S(a, b); +} + +procedure S(x, y: int) + // In the call from R: + requires x == y; // ensured by the body of R + requires x == 0; // error: not ensured by the body of R + requires y == 0; // follows from the previous two requires clauses (provided they are + // indeed evaluated in this order, which they are supposed to be) +{ +} |