Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
121
Issues
121
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
b800fea5
Commit
b800fea5
authored
Mar 14, 2019
by
François Bobot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tagset for FSet renaming
parent
be95ca14
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
111 deletions
+111
-111
examples/stdlib/tagset/why3session.xml
examples/stdlib/tagset/why3session.xml
+102
-102
stdlib/mach/tagset.mlw
stdlib/mach/tagset.mlw
+9
-9
No files found.
examples/stdlib/tagset/why3session.xml
View file @
b800fea5
This diff is collapsed.
Click to expand it.
stdlib/mach/tagset.mlw
View file @
b800fea5
...
...
@@ -35,7 +35,7 @@ module TagSetIntf
type iteration_state = mutable { }
type t = abstract {
mutable elts: S.set key;
mutable elts: S.
f
set key;
mutable iterated: iteration_state;
}
invariant { not (S.mem S.dummy elts) }
...
...
@@ -66,9 +66,9 @@ module TagSetIntf
type iterator = abstract {
iterating: iteration_state;
mutable seen: S.set key;
mutable todo: S.set key;
all: S.set key;
mutable seen: S.
f
set key;
mutable todo: S.
f
set key;
all: S.
f
set key;
}
invariant { S.(union seen todo == all) }
invariant { S.(inter seen todo == S.empty) }
...
...
@@ -118,7 +118,7 @@ module TagSet
clone import S as S with axiom tag_correct
type iteration_state = mutable {
ghost mutable elts': S.set key;
ghost mutable elts': S.
f
set key;
mutable value: array key;
}
invariant { not (S.mem S.dummy elts') }
...
...
@@ -132,7 +132,7 @@ module TagSet
}
type t = {
ghost mutable elts: S.set key;
ghost mutable elts: S.
f
set key;
mutable iterated: iteration_state;
}
invariant { elts = iterated.elts' }
...
...
@@ -204,9 +204,9 @@ module TagSet
type iterator = {
iterating: iteration_state;
ghost mutable seen: S.set key;
ghost mutable todo: S.set key;
ghost all: S.set key;
ghost mutable seen: S.
f
set key;
ghost mutable todo: S.
f
set key;
ghost all: S.
f
set key;
mutable offset: int63;
}
invariant { S.(==) all (S.union seen todo) }
...
...
Write
Preview
Markdown
is supported
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