diff options
author | leino <unknown> | 2015-06-30 23:42:57 -0700 |
---|---|---|
committer | leino <unknown> | 2015-06-30 23:42:57 -0700 |
commit | 1697a133cababe66fef1fbf7a1ed9036255d8e68 (patch) | |
tree | e91d749fad97fcb7471599e342c6ad823d58503b /Test/hofs/Naked.dfy | |
parent | e7430a9b1d17ea92e986470e898d6b74fae3cea6 (diff) |
Fixed bugs in encoding of preconditions of function values, Issue #84.
Diffstat (limited to 'Test/hofs/Naked.dfy')
-rw-r--r-- | Test/hofs/Naked.dfy | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Test/hofs/Naked.dfy b/Test/hofs/Naked.dfy index fa99377f..d23eb507 100644 --- a/Test/hofs/Naked.dfy +++ b/Test/hofs/Naked.dfy @@ -19,17 +19,17 @@ module Functions { module Requires { function t(x: nat): nat - requires !t.requires(x); + requires !t.requires(x); // error: use of naked function in its own SCC { x } function g(x: nat): nat - requires !(g).requires(x); + requires !(g).requires(x); // error: use of naked function in its own SCC { x } - function g2(x: int): int { h(x) } - + function D(x: int): int // used so termination errors don't mask other errors + function g2(x: int): int decreases D(x) { h(x) } // error: precondition violation function h(x: int): int - requires !g2.requires(x); + requires !g2.requires(x); // error: use of naked function in its own SCC { x } } |