Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Fitinghoff
why3
Commits
74c29c96
Commit
74c29c96
authored
7 years ago
by
Guillaume Melquiond
Browse files
Options
Downloads
Patches
Plain Diff
Fix broken links.
parent
9d26e427
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/api.tex
+2
-2
2 additions, 2 deletions
doc/api.tex
doc/exec.tex
+8
-2
8 additions, 2 deletions
doc/exec.tex
doc/whyml.tex
+1
-0
1 addition, 0 deletions
doc/whyml.tex
with
11 additions
and
4 deletions
doc/api.tex
+
2
−
2
View file @
74c29c96
...
...
@@ -189,8 +189,8 @@ constructed.
Here is the way we build the formula
$
2
+
2
=
4
$
. The main difficulty is to
access the internal identifier for addition: it must be retrieved from
the standard theory
\texttt
{
Int
}
of the file
\texttt
{
int.why
}
(see
Chap~
\ref
{
sec:library
}
).
the standard theory
\texttt
{
Int
}
of the file
\texttt
{
int.why
}
.
% (see
Chap~\ref{sec:library}).
\lstinputlisting
{
generated/logic
__
buildfmla.ml
}
An important point to notice as that when building the application of
$
+
$
to the arguments, it is checked that the types are correct. Indeed
...
...
This diff is collapsed.
Click to expand it.
doc/exec.tex
+
8
−
2
View file @
74c29c96
...
...
@@ -118,8 +118,14 @@ extraction command line:
\paragraph
{
Examples.
}
We illustrate different ways of using the
\texttt
{
extract
}
command through some
examples. Consider the program in Figure~
\ref
{
fig:AQueue
}
on
page~
\pageref
{
fig:AQueue
}
. If we are only interested in extracting function
examples.
\begin{latexonly}
Consider the program in Figure~
\ref
{
fig:AQueue
}
on page~
\pageref
{
fig:AQueue
}
.
\end{latexonly}
\begin{htmlonly}
Consider the program of Section~
\ref
{
sec:AQueue
}
.
\end{htmlonly}
If we are only interested in extracting function
\texttt
{
enqueue
}
, we can proceed as follows:
\begin{verbatim}
> why3 extract -D ocaml64 -L . aqueue.AmortizedQueue.enqueue -o aqueue.ml
...
...
This diff is collapsed.
Click to expand it.
doc/whyml.tex
+
1
−
0
View file @
74c29c96
...
...
@@ -931,6 +931,7 @@ end
%END LATEX
\section
{
Problem 5: Amortized Queue
}
\label
{
sec:AQueue
}
The last problem consists in verifying the implementation of a
well-known purely applicative data structure for queues.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment