Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
272d19f7
Commit
272d19f7
authored
Oct 21, 2013
by
Guillaume Melquiond
Browse files
Add function t_label_remove.
parent
d7eef731
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/core/term.ml
View file @
272d19f7
...
...
@@ -485,6 +485,9 @@ let t_label ?loc l t =
let
t_label_add
l
t
=
Hsterm
.
hashcons
{
t
with
t_label
=
Slab
.
add
l
t
.
t_label
}
let
t_label_remove
l
t
=
Hsterm
.
hashcons
{
t
with
t_label
=
Slab
.
remove
l
t
.
t_label
}
let
t_label_copy
{
t_label
=
lab
;
t_loc
=
loc
}
t
=
let
lab
=
Slab
.
union
lab
t
.
t_label
in
let
loc
=
if
t
.
t_loc
=
None
then
loc
else
t
.
t_loc
in
...
...
src/core/term.mli
View file @
272d19f7
...
...
@@ -238,6 +238,7 @@ val t_exists_close : vsymbol list -> trigger -> term -> term
val
t_label
:
?
loc
:
Loc
.
position
->
Slab
.
t
->
term
->
term
val
t_label_add
:
label
->
term
->
term
val
t_label_remove
:
label
->
term
->
term
val
t_label_copy
:
term
->
term
->
term
(** Constructors with propositional simplification *)
...
...
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