Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
75be7eb6
Commit
75be7eb6
authored
7 years ago
by
Guillaume Melquiond
Browse files
Options
Downloads
Patches
Plain Diff
Fix some documentation.
parent
c656dc97
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
examples/balance.mlw
+1
-1
1 addition, 1 deletion
examples/balance.mlw
examples/defunctionalization.mlw
+3
-3
3 additions, 3 deletions
examples/defunctionalization.mlw
examples/linear_probing.mlw
+1
-1
1 addition, 1 deletion
examples/linear_probing.mlw
examples/ropes.mlw
+1
-1
1 addition, 1 deletion
examples/ropes.mlw
with
6 additions
and
6 deletions
examples/balance.mlw
+
1
−
1
View file @
75be7eb6
...
...
@@ -48,7 +48,7 @@ module Puzzle8
use import Roberval
use import array.Array
(** All values in [balls(lo..hi-1)] are equal to [w], apart from balls[lb]
(** All values in [balls(lo..hi-1)] are equal to [w], apart from
[
balls[lb]
]
which is smaller. *)
predicate spec (balls: array int) (lo hi: int) (lb w: int) =
0 <= lo <= lb < hi <= length balls &&
...
...
This diff is collapsed.
Click to expand it.
examples/defunctionalization.mlw
+
3
−
3
View file @
75be7eb6
...
...
@@ -239,8 +239,8 @@ function size_c (c:cont) : int =
lemma size_c_pos: forall c: cont. size_c c >= 0
(** WhyML programs (declared with
"
let
"
instead of
"
function
"
),
mutually recursive, resulting from de-functionalization *)
(** WhyML programs (declared with
[
let
]
instead of
[
function
]
),
mutually recursive, resulting from de-functionalization *)
let rec continue_2 (c:cont) (v:int) : int
variant { size_c c }
...
...
@@ -349,7 +349,7 @@ function size_c (c:cont) (acc:nat) : nat =
| A2 _ k -> S (size_c k acc)
end
(** WhyML programs (declared with
"
let
"
instead of
"
function
"
),
(** WhyML programs (declared with
[
let
]
instead of
[
function
]
),
mutually recursive, resulting from de-functionalization *)
let rec continue_2 (c:cont) (v:int) : int
...
...
This diff is collapsed.
Click to expand it.
examples/linear_probing.mlw
+
1
−
1
View file @
75be7eb6
...
...
@@ -46,7 +46,7 @@ module LinearProbing
ensures { 0 <= result < n }
= mod (hash k) n
(**
j
lies between
l
and
r
, cyclically *)
(**
[j]
lies between
[l]
and
[r]
, cyclically *)
predicate between (l j r: int) =
l <= j < r || r < l <= j || j < r < l
...
...
This diff is collapsed.
Click to expand it.
examples/ropes.mlw
+
1
−
1
View file @
75be7eb6
...
...
@@ -249,7 +249,7 @@ module Balance
ensures { 2 <= result }
function string_of_array (q: Array.array rope) (l u: int) : string
(** q[u-1] + q[u-2] + ... + q[l] *)
(**
[
q[u-1] + q[u-2] + ... + q[l]
]
*)
axiom string_of_array_empty:
forall q: Array.array rope, l: int.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment