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
91be7ba5
Commit
91be7ba5
authored
Sep 07, 2015
by
David Hauzar
Browse files
Using whole name stored in the model_trace annotation of record fields.
parent
55d1902f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/transform/eval_match.ml
View file @
91be7ba5
...
...
@@ -70,17 +70,19 @@ let rec add_quant kn (vl,tl,f) v =
|
Some
pj_ls
->
begin
try
Ident
.
get_model_element_name
~
labels
:
pj_ls
.
ls_name
.
id_label
let
tl
=
Ident
.
get_model_trace_label
~
labels
:
pj_ls
.
ls_name
.
id_label
in
let
splitted
=
Str
.
bounded_split
(
Str
.
regexp_string
":"
)
tl
.
lab_string
2
in
match
splitted
with
|
[
_
;
t_str
]
->
t_str
|
_
->
assert
false
with
Not_found
->
pj_ls
.
ls_name
.
id_string
end
|
_
->
""
)
in
let
field_str
=
if
field_name
<>
""
then
"."
^
field_name
else
""
in
let
field_str
=
"."
^
field_name
in
let
label
=
Ident
.
append_to_model_element_name
~
labels
:
v
.
vs_name
.
id_label
~
to_append
:
(
field_str
)
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
let
f
=
t_let_close_simp
v
t
f
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