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
f0a03190
Commit
f0a03190
authored
Jul 25, 2016
by
MARCHE Claude
Browse files
Print counter example: small fixes
parent
d94c3df0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/model_parser.ml
View file @
f0a03190
...
@@ -198,9 +198,10 @@ let print_model_file fmt me_name_trans filename model_file =
...
@@ -198,9 +198,10 @@ let print_model_file fmt me_name_trans filename model_file =
fprintf
fmt
"File %s:"
filename
;
fprintf
fmt
"File %s:"
filename
;
IntMap
.
iter
IntMap
.
iter
(
fun
line
m_elements
->
(
fun
line
m_elements
->
fprintf
fmt
"
\n
Line %d:
\n
"
line
;
fprintf
fmt
"
@
\n
Line %d:
@
\n
"
line
;
print_model_elements
me_name_trans
fmt
m_elements
)
print_model_elements
me_name_trans
fmt
m_elements
)
model_file
model_file
;
fprintf
fmt
"@
\n
"
let
why_name_trans
me_name
=
let
why_name_trans
me_name
=
match
me_name
.
men_kind
with
match
me_name
.
men_kind
with
...
@@ -376,6 +377,7 @@ let print_model_json
...
@@ -376,6 +377,7 @@ let print_model_json
fmt
fmt
model_files_bindings
model_files_bindings
let
model_to_string_json
let
model_to_string_json
?
(
me_name_trans
=
why_name_trans
)
?
(
me_name_trans
=
why_name_trans
)
?
(
vc_line_trans
=
(
fun
i
->
string_of_int
i
))
?
(
vc_line_trans
=
(
fun
i
->
string_of_int
i
))
...
...
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