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
4421df38
Commit
4421df38
authored
8 years ago
by
Jean-Christophe Filliâtre
Browse files
Options
Downloads
Patches
Plain Diff
new function Extset.print
parent
4ead4697
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.in
+2
-2
2 additions, 2 deletions
Makefile.in
src/util/extset.ml
+7
-0
7 additions, 0 deletions
src/util/extset.ml
src/util/extset.mli
+3
-0
3 additions, 0 deletions
src/util/extset.mli
with
12 additions
and
2 deletions
Makefile.in
+
2
−
2
View file @
4421df38
...
@@ -165,8 +165,8 @@ LIBGENERATED = src/util/config.ml \
...
@@ -165,8 +165,8 @@ LIBGENERATED = src/util/config.ml \
lib/ocaml/why3__BigInt_compat.ml
lib/ocaml/why3__BigInt_compat.ml
LIB_UTIL
=
config bigInt util opt lists strings
\
LIB_UTIL
=
config bigInt util opt lists strings
\
extmap extset exthtbl weakhtbl
\
pp
extmap extset exthtbl weakhtbl
\
hashcons stdlib exn_printer
pp
json debug loc lexlib print_tree
\
hashcons stdlib exn_printer json debug loc lexlib print_tree
\
cmdline warning sysutil rc plugin bigInt number pqueue
cmdline warning sysutil rc plugin bigInt number pqueue
LIB_CORE
=
ident ty term pattern decl coercion theory
\
LIB_CORE
=
ident ty term pattern decl coercion theory
\
...
...
This diff is collapsed.
Click to expand it.
src/util/extset.ml
+
7
−
0
View file @
4421df38
...
@@ -50,6 +50,7 @@ module type S = sig
...
@@ -50,6 +50,7 @@ module type S = sig
val
contains
:
t
->
elt
->
bool
val
contains
:
t
->
elt
->
bool
val
add_left
:
t
->
elt
->
t
val
add_left
:
t
->
elt
->
t
val
remove_left
:
t
->
elt
->
t
val
remove_left
:
t
->
elt
->
t
val
print
:
(
Format
.
formatter
->
elt
->
unit
)
->
Format
.
formatter
->
t
->
unit
end
end
module
MakeOfMap
(
M
:
Extmap
.
S
)
=
struct
module
MakeOfMap
(
M
:
Extmap
.
S
)
=
struct
...
@@ -97,6 +98,12 @@ module MakeOfMap (M: Extmap.S) = struct
...
@@ -97,6 +98,12 @@ module MakeOfMap (M: Extmap.S) = struct
let
contains
=
M
.
contains
let
contains
=
M
.
contains
let
add_left
s
e
=
M
.
add
e
()
s
let
add_left
s
e
=
M
.
add
e
()
s
let
remove_left
s
e
=
M
.
remove
e
s
let
remove_left
s
e
=
M
.
remove
e
s
let
print
print_elt
fmt
s
=
if
is_empty
s
then
Format
.
fprintf
fmt
"{}"
else
begin
Format
.
fprintf
fmt
"@[<hov 2>{ "
;
Pp
.
print_iter1
iter
Pp
.
comma
print_elt
fmt
s
;
Format
.
fprintf
fmt
"}@]"
end
end
end
module
type
OrderedType
=
Set
.
OrderedType
module
type
OrderedType
=
Set
.
OrderedType
...
...
This diff is collapsed.
Click to expand it.
src/util/extset.mli
+
3
−
0
View file @
4421df38
...
@@ -170,6 +170,9 @@ module type S =
...
@@ -170,6 +170,9 @@ module type S =
val
remove_left
:
t
->
elt
->
t
val
remove_left
:
t
->
elt
->
t
(** [remove_left s x] is the same as [remove x s]. *)
(** [remove_left s x] is the same as [remove x s]. *)
val
print
:
(
Format
.
formatter
->
elt
->
unit
)
->
Format
.
formatter
->
t
->
unit
end
end
module
MakeOfMap
(
M
:
Extmap
.
S
)
:
S
with
module
M
=
M
module
MakeOfMap
(
M
:
Extmap
.
S
)
:
S
with
module
M
=
M
...
...
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