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
119
Issues
119
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
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
e04e93cd
Commit
e04e93cd
authored
Apr 14, 2020
by
Benedikt Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve ce kind labels
parent
e5de602c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
src/core/model_parser.ml
src/core/model_parser.ml
+10
-8
No files found.
src/core/model_parser.ml
View file @
e04e93cd
...
...
@@ -661,8 +661,8 @@ let pp_kind fmt k =
|
Error_message
->
"error_message"
|
Other
->
"other"
|
Loop_before
->
"before loop"
|
Loop_previous_iteration
->
"previous
loop
iteration"
|
Loop_current_iteration
->
"current
loop
iteration"
|
Loop_previous_iteration
->
"previous iteration"
|
Loop_current_iteration
->
"current iteration"
let
print_model_element
~
at_loc
~
print_attrs
vc_attrs
print_model_value
me_name_trans
fmt
m_element
=
match
m_element
.
me_name
.
men_kind
with
...
...
@@ -672,18 +672,20 @@ let print_model_element ~at_loc ~print_attrs vc_attrs print_model_value me_name_
let
me_name
=
me_name_trans
m_element
.
me_name
in
let
attrs
=
m_element
.
me_name
.
men_attrs
in
let
me_name
=
apply_location_label
~
at_loc
~
attrs
me_name
in
let
kind
=
get_kind
vc_attrs
m_element
in
let
pp_kind
fmt
=
match
get_kind
vc_attrs
m_element
with
|
Old
|
Other
->
()
|
kind
->
Format
.
fprintf
fmt
"[%a] "
pp_kind
kind
in
if
print_attrs
then
fprintf
fmt
"@[%
s (%a)
, @[[%a]@] =@ %a@]"
me_name
pp_kind
kind
fprintf
fmt
"@[%
t%s
, @[[%a]@] =@ %a@]"
pp_kind
me_name
(
Pp
.
print_list
Pp
.
comma
Pretty
.
print_attr
)
(
Sattr
.
elements
m_element
.
me_name
.
men_attrs
)
print_model_value
m_element
.
me_value
else
fprintf
fmt
"@[%
s =@ %a (%a)
@]"
me_name
fprintf
fmt
"@[%
t%s =@ %a
@]"
pp_kind
me_name
print_model_value
m_element
.
me_value
pp_kind
kind
let
print_model_elements
~
at_loc
~
print_attrs
vc_attrs
?
(
sep
=
Pp
.
newline
)
print_model_value
me_name_trans
fmt
m_elements
...
...
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