This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,12 @@
|
||||
// The run checks DECREASES >= 0 on every call, the first one too. No
|
||||
// obligation covers that check, so a unit with everything proved still stops.
|
||||
// MUST-NOT-PROVE: decreases-bound@5
|
||||
FUNCTION F(N : INTEGER) RETURNS INTEGER
|
||||
DECREASES N
|
||||
IF N <= 0 THEN
|
||||
RETURN 0
|
||||
ENDIF
|
||||
RETURN F(N - 1)
|
||||
ENDFUNCTION
|
||||
|
||||
OUTPUT F(-5)
|
||||
Reference in new issue
Block a user