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
101ed70b
Commit
101ed70b
authored
Sep 03, 2015
by
David Hauzar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: instead of replacing original labels with new labels, new labels
were added to original labels.
parent
f4a22d69
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
src/core/ident.ml
src/core/ident.ml
+3
-0
src/core/ident.mli
src/core/ident.mli
+3
-0
src/transform/eval_match.ml
src/transform/eval_match.ml
+1
-1
No files found.
src/core/ident.ml
View file @
101ed70b
...
...
@@ -140,6 +140,9 @@ let id_fresh ?(label = Slab.empty) ?loc nm =
let
id_user
?
(
label
=
Slab
.
empty
)
nm
loc
=
create_ident
nm
label
(
Some
loc
)
let
id_lab
label
id
=
create_ident
id
.
id_string
label
id
.
id_loc
let
id_clone
?
(
label
=
Slab
.
empty
)
id
=
let
ll
=
Slab
.
union
label
id
.
id_label
in
create_ident
id
.
id_string
ll
id
.
id_loc
...
...
src/core/ident.mli
View file @
101ed70b
...
...
@@ -87,6 +87,9 @@ val id_fresh : ?label:Slab.t -> ?loc:Loc.position -> string -> preid
(* create a localized pre-ident *)
val
id_user
:
?
label
:
Slab
.
t
->
string
->
Loc
.
position
->
preid
(* create a duplicate pre-ident with given labels *)
val
id_lab
:
Slab
.
t
->
ident
->
preid
(* create a duplicate pre-ident *)
val
id_clone
:
?
label
:
Slab
.
t
->
ident
->
preid
...
...
src/transform/eval_match.ml
View file @
101ed70b
...
...
@@ -77,7 +77,7 @@ let rec add_quant kn (vl,tl,f) v =
end
in
let
label
=
Ident
.
append_to_model_element_name
~
labels
:
v
.
vs_name
.
id_label
~
to_append
:
(
"."
^
field_name
)
in
create_vsymbol
(
id_
clone
~
label
v
.
vs_name
)
(
ty_inst
s
ty
)
in
create_vsymbol
(
id_
lab
label
v
.
vs_name
)
(
ty_inst
s
ty
)
in
let
nvl
=
List
.
map2
mk_v
ls
.
ls_args
pjl
in
let
t
=
fs_app
ls
(
List
.
map
t_var
nvl
)
ty
in
...
...
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