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
e4693ebb
Commit
e4693ebb
authored
Oct 11, 2012
by
Guillaume Melquiond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some documentation typos.
parent
76141703
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
doc/starting.tex
doc/starting.tex
+2
-2
doc/syntaxref.tex
doc/syntaxref.tex
+4
-4
No files found.
doc/starting.tex
View file @
e4693ebb
...
...
@@ -12,7 +12,7 @@ small set of goals.
Any declaration must occur
inside a theory, which is in that example called HelloProof and
label
l
ed with a comment inside double quotes. It contains three goals
labeled with a comment inside double quotes. It contains three goals
named
$
G
_
1
,G
_
2
,G
_
3
$
. The first two are basic propositional goals,
whereas the third involves some integer arithmetic, and thus it
requires to import the theory of integer arithmetic from the
\why
...
...
@@ -62,7 +62,7 @@ allows to browse inside the theories.
% all} or its shortcut \textsf{Ctrl-E}. This will result is something
% like the screenshot of Figure~\ref{fig:gui2}.
In this tree view, we have a structured view of the file: this file
contains one theory, itself containg three goals.
contains one theory, itself contain
in
g three goals.
\begin{figure}
[tbp]
...
...
doc/syntaxref.tex
View file @
e4693ebb
...
...
@@ -261,13 +261,13 @@ The corresponding rules for computing WP are as follows:
The other forms of code contracts allow to abstract a piece of code by specifications.
\begin{itemize}
\item
$
\texttt
{
any
}
~
\{
P
\}
~
\tau
~
\epsilon
~
\{
Q
\}
$
is a
non-deterministic expression
which
requires the precondition
$
P
$
to
hold, then makes some side effects
$
\epsilon
$
and returns any value
non-deterministic expression
that
requires the precondition
$
P
$
to
hold, then makes some side effects
$
\epsilon
$
,
and returns any value
of type
$
\tau
$
such that
$
Q
$
holds. This construct acts as an axiom
in the sense that it
i
s not check whether there exists any program
in the sense that it
doe
s not check whether there exists any program
that can effectively establish the post-condition (similarly as the
introduction of a
\texttt
{
val
}
at the global level).
\item
$
\texttt
{
contract
}
~e~
\{
Q
\}
$
evaluates
expression
$
e
$
and the
\item
$
\texttt
{
contract
}
~e~
\{
Q
\}
$
evaluates
the expression
$
e
$
and
ensures that the post-condition
$
Q
$
holds afterwards.
\item
$
\texttt
{
abstract
}
~e~
\{
Q
\}
$
makes sure that the evaluation of
expression
$
e
$
establishes the post-condition
$
Q
$
, and then abstract
...
...
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