diff options
author | rustanleino <unknown> | 2010-05-08 02:19:17 +0000 |
---|---|---|
committer | rustanleino <unknown> | 2010-05-08 02:19:17 +0000 |
commit | e5fcbeda373f505f4ebfd29cafe776d9ec7b8db5 (patch) | |
tree | 3834527ee456068deb8e21fc57751df0bce0645c /Util/latex | |
parent | ac513a64b44e33847f84750c8382f0aa2f4ed745 (diff) |
Dafny:
Previously, a "use" function was one whose definition was applied only in limited ways, namely when the function was uttered in a program (possibly in a "use" statement). Now, recursive functions are always limited, unless declared with the new modifier "unlimited". Non-recursive functions are always unlimited. Also new is that only function calls within the same SCC of the call graph use the limited form of the callee.
The "use" modifier is no longer supported. The "use" statement is still supported, now for both limited and unlimited functions; but it's probably better and easier to just explicitly mention a function in an assertion, if needed.
Diffstat (limited to 'Util/latex')
-rw-r--r-- | Util/latex/dafny.sty | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Util/latex/dafny.sty b/Util/latex/dafny.sty index 2b9918f9..1f891a71 100644 --- a/Util/latex/dafny.sty +++ b/Util/latex/dafny.sty @@ -6,9 +6,9 @@ \lstdefinelanguage{dafny}{
morekeywords={class,datatype,bool,int,object,set,seq,%
- function,returns,
+ function,unlimited,
ghost,var,static,
- method,module,imports,in,
+ method,returns,module,imports,in,
requires,modifies,ensures,reads,decreases,free,
% expressions
match,case,false,true,null,old,fresh,this,
|