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
cda26419
Commit
cda26419
authored
Apr 20, 2020
by
Cláudio Belo Lourenço
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove documentation comments in example
parent
7a690f2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
examples/use_api/mlw_tree1.ml
examples/use_api/mlw_tree1.ml
+0
-15
No files found.
examples/use_api/mlw_tree1.ml
View file @
cda26419
...
...
@@ -16,16 +16,13 @@ API calls
******************)
(* BEGIN{buildenv} *)
open
Why3
let
config
:
Whyconf
.
config
=
Whyconf
.(
load_default_config_if_needed
(
read_config
None
))
let
main
:
Whyconf
.
main
=
Whyconf
.
get_main
config
let
env
:
Env
.
env
=
Env
.
create_env
(
Whyconf
.
loadpath
main
)
open
Ptree
(* END{buildenv} *)
(* BEGIN{helper1} *)
let
mk_ident
s
=
{
id_str
=
s
;
id_ats
=
[]
;
id_loc
=
Loc
.
dummy_position
}
let
mk_qualid
l
=
...
...
@@ -70,7 +67,6 @@ let pat_wild = mk_pat Pwild
let
mk_ewhile
e1
i
v
e2
=
mk_expr
(
Ewhile
(
e1
,
i
,
v
,
e2
))
(*END{helper2}*)
(* END{helper1} *)
(* declaration of
BEGIN{source1}
...
...
@@ -153,21 +149,14 @@ let () = Debug.set_flag Infer_cfg.infer_print_ai_result;
Debug
.
set_flag
Infer_loop
.
print_inferred_invs
(*END{flags}*)
(* BEGIN{getmodules} *)
let
mlw_file
=
Modules
[
mod_M1
]
(* END{getmodules} *)
(* Printing back the mlw file *)
(* BEGIN{mlwprinter} *)
let
()
=
Format
.
printf
"%a@."
Mlw_printer
.
pp_mlw_file
mlw_file
(* END{mlwprinter} *)
(* BEGIN{typemodules} *)
let
mods
=
Typing
.
type_mlw_file
env
[]
"myfile.mlw"
mlw_file
(* END{typemodules} *)
(* BEGIN{typemoduleserror} *)
let
mods
=
try
Typing
.
type_mlw_file
env
[]
"myfile.mlw"
mlw_file
...
...
@@ -177,11 +166,9 @@ let mods =
(
Mlw_printer
.
with_marker
~
msg
loc
Mlw_printer
.
pp_mlw_file
)
mlw_file
;
exit
1
(* END{typemoduleserror} *)
(* Checking the VCs *)
(* BEGIN{checkingvcs} *)
let
my_tasks
:
Task
.
task
list
=
let
mods
=
Wstdlib
.
Mstr
.
fold
...
...
@@ -238,8 +225,6 @@ let () =
)
1
my_tasks
in
()
(* END{checkingvcs} *)
(* make sure the why3 lib is installed: do "make install-lib"
in the why3 root directory *)
...
...
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