summaryrefslogtreecommitdiff
path: root/Test/dafny3/CalcExample.dfy
diff options
context:
space:
mode:
authorGravatar Nadia Polikarpova <nadia.polikarpova@gmail.com>2013-02-08 15:33:23 +0100
committerGravatar Nadia Polikarpova <nadia.polikarpova@gmail.com>2013-02-08 15:33:23 +0100
commit6a73bfff8499eb7a128de01c20488a9f53e397c7 (patch)
tree1958510741be38d9972453b2ad42ab265270fb43 /Test/dafny3/CalcExample.dfy
parentbc0e2a5f6ef893c549c3a244faa17e7f235a2de0 (diff)
Changed calc syntax (custom operators are now written before the hint)
Diffstat (limited to 'Test/dafny3/CalcExample.dfy')
-rw-r--r--Test/dafny3/CalcExample.dfy4
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/dafny3/CalcExample.dfy b/Test/dafny3/CalcExample.dfy
index c94c18d2..dcd41077 100644
--- a/Test/dafny3/CalcExample.dfy
+++ b/Test/dafny3/CalcExample.dfy
@@ -19,8 +19,8 @@ method M(a: int, b: int, c: int, x: int)
f(f(a, b), c);
{ assert f(a, b) == x; }
f(x, c);
- { assert c <= x; Monotonicity(c, x); }
- <= f(x, x);
+ <= { assert c <= x; Monotonicity(c, x); }
+ f(x, x);
{ DiagonalIdentity(x); }
x;
}