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
125
Issues
125
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
f47f00e8
Commit
f47f00e8
authored
Jun 21, 2018
by
Sylvain Dailler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: typos chapter 3
parent
ab20bcb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/api.tex
doc/api.tex
+3
-3
No files found.
doc/api.tex
View file @
f47f00e8
...
...
@@ -296,7 +296,7 @@ quantifier.
\lstinputlisting
{
generated/transform
__
negate.ml
}
The following illustrates how to turn such an OCaml function into a
transformation in the sens
of Why3 API. m
oreover, it registers that
transformation in the sens
e of the Why3 API. M
oreover, it registers that
transformation to make it available for example in Why3 IDE.
\lstinputlisting
{
generated/transform
__
register.ml
}
...
...
@@ -331,7 +331,7 @@ module, then the module itself called \verb|Program|.
\lstinputlisting
{
generated/mlw
_
tree
__
openmodule.ml
}
Notice the use of a first
simple helper function
\verb
|
mk_ident
|
to build an identifier without
any
label
nor any location.
any
attributes
nor any location.
To write our programs, we need to import some other modules from the
standard library. The following introduces two helper functions for
...
...
@@ -367,7 +367,7 @@ file, under the form of a map of module names to modules.
\lstinputlisting
{
generated/mlw
_
tree
__
closemodule.ml
}
We can then construct the proofs tasks for our module, and then try to
call the Alt-Ergo prover. The rest
e
of that code is using OCaml
call the Alt-Ergo prover. The rest of that code is using OCaml
functions that were already introduced before.
\lstinputlisting
{
generated/mlw
_
tree
__
checkingvcs.ml
}
...
...
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