Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
fc9137e8
Commit
fc9137e8
authored
Jun 03, 2014
by
Martin Clochard
Browse files
(another example fixed)
parent
15666988
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
examples/all_distinct.mlw
View file @
fc9137e8
...
...
@@ -8,12 +8,10 @@ module AllDistinct
use import ref.Ref
use import array.Array
constant m: int
axiom m_nonneg: 0 <= m
exception Duplicate
let all_distinct (a: array int) : bool
let all_distinct (a: array int) (m:int) : bool
requires { 0 <= m }
requires { forall i: int. 0 <= i < length a -> 0 <= a[i] < m }
ensures { result <-> forall i j: int. 0 <= i < length a ->
0 <= j < length a -> i <> j -> a[i] <> a[j] }
...
...
examples/all_distinct/why3session.xml
View file @
fc9137e8
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment