Skip to content
Snippets Groups Projects
Commit 5996b675 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[wp/doc] Remove some alt-ergo related driver doc

parent 73c1452e
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,7 @@ Moreover, the following lemmas are added to complement the reference ones: ...@@ -141,7 +141,7 @@ Moreover, the following lemmas are added to complement the reference ones:
\vskip 1em \vskip 1em
\hrule \hrule
\label{builtin-exp-log} \label{builtin-exp-log}
\paragraph{$\builtin{exp}(x)$, $\builtin{log}(x)$ and $\builtin{log10}(x)$} are declared \paragraph{$\builtin{exp}(x)$, $\builtin{log}(x)$ and $\builtin{log10}(x)$} are declared
to be injective, monotonically increasing and are associated with the following simplifiers: to be injective, monotonically increasing and are associated with the following simplifiers:
\[ \[
\begin{array}{rcl@{\quad}l} \begin{array}{rcl@{\quad}l}
...@@ -188,14 +188,14 @@ imported from \textsf{Why-3}. ...@@ -188,14 +188,14 @@ imported from \textsf{Why-3}.
\vskip 1em \vskip 1em
\hrule \hrule
\label{builtin-trigo} \label{builtin-trigo}
\paragraph{$\builtin{sin}(x)$, $\builtin{cos}(x)$ and $\builtin{tan}(x)$} trigonometric \paragraph{$\builtin{sin}(x)$, $\builtin{cos}(x)$ and $\builtin{tan}(x)$} trigonometric
operations. Useful lemmas are already defined in the reference implementation from operations. Useful lemmas are already defined in the reference implementation from
\textsf{Why-3} library. \textsf{Why-3} library.
\label{builtin-arctrigo} \label{builtin-arctrigo}
\paragraph{$\builtin{asin}(x)$, $\builtin{acos}(x)$ and $\builtin{atan}(x)$} trigonometric \paragraph{$\builtin{asin}(x)$, $\builtin{acos}(x)$ and $\builtin{atan}(x)$} trigonometric
operations. Except definition of $\builtin{atan}$ which is available from reference, operations. Except definition of $\builtin{atan}$ which is available from reference,
definition for arc-$\builtin{sin}$ and arc-$\builtin{cos}$ have been added. Moreover, definition for arc-$\builtin{sin}$ and arc-$\builtin{cos}$ have been added. Moreover,
all the arc-trigonometric operations are declared to be injective. In addition, the all the arc-trigonometric operations are declared to be injective. In addition, the
following simplifiers are also registered: following simplifiers are also registered:
...@@ -216,7 +216,7 @@ and are actually provided by custom extensions installed in the \textsf{WP} shar ...@@ -216,7 +216,7 @@ and are actually provided by custom extensions installed in the \textsf{WP} shar
\vskip 1em \vskip 1em
\hrule \hrule
\label{builtin-hyperbolic} \label{builtin-hyperbolic}
\paragraph{$\builtin{sinh}(x)$, $\builtin{cosh}(x)$ and $\builtin{tanh}(x)$} trigonometric \paragraph{$\builtin{sinh}(x)$, $\builtin{cosh}(x)$ and $\builtin{tanh}(x)$} trigonometric
operations. Useful lemmas are already defined in the reference implementation from operations. Useful lemmas are already defined in the reference implementation from
\textsf{Why-3} library. \textsf{Why-3} library.
...@@ -256,21 +256,21 @@ Since all the builtin symbols of \textsf{ACSL} are actually linked to the standa ...@@ -256,21 +256,21 @@ Since all the builtin symbols of \textsf{ACSL} are actually linked to the standa
of \textsf{Why-3}, any user theory also referring to the standard symbols can be added to the proof of \textsf{Why-3}, any user theory also referring to the standard symbols can be added to the proof
environment by using option \verb+-wp-why-lib 'file...'+. environment by using option \verb+-wp-why-lib 'file...'+.
Otherwise, a driver shall be written. For instance, the additional lemma regarding $\builtin{exp}$ Otherwise, a driver can be written. For instance, the additional lemma regarding $\builtin{exp}$
p.\pageref{builtin-hyperbolic} for \textsf{Alt-Ergo} is simply defined in the following way: p.\pageref{builtin-hyperbolic} for \textsf{Why3} is simply defined in the following way:
\begin{logs} \begin{logs}
// MyExp.mlw file // MyExp.mlw file
axiom exp_pos : (forall x:real. (0.0 < exp(x))) axiom exp_pos : forall x:real. (0.0 < exp(x))
\end{logs} \end{logs}
Of course, this piece of \textsf{Alt-Ergo} input file must be integrated after the symbol Of course, this piece of \textsf{Why3} input file must be integrated after the symbol
\verb+exp+ has been defined. The corresponding driver is then: \verb+exp+ has been defined. The corresponding driver is then:
\begin{logs} \begin{logs}
// MyExp.driver file // MyExp.driver file
library exponential: library exponential:
ergo.file += "MyExp.mlw" ; why3.file += "MyExp.mlw" ;
\end{logs} \end{logs}
Such a driver, once loaded with option \verb+-wp-driver+, instructs \textsf{Frama-C/WP} to Such a driver, once loaded with option \verb+-wp-driver+, instructs \textsf{Frama-C/WP} to
...@@ -278,5 +278,5 @@ append your extension file to the other necessary resources for library \verb+"e ...@@ -278,5 +278,5 @@ append your extension file to the other necessary resources for library \verb+"e
which the logic ACSL builtin \verb+\exp+ belongs to. which the logic ACSL builtin \verb+\exp+ belongs to.
The file \verb+share/wp/wp.driver+ located into the shared directory of \textsf{Frama-C}, The file \verb+share/wp/wp.driver+ located into the shared directory of \textsf{Frama-C},
and the associated files in sub-directories \verb+share/wp/ergo+ and \verb+share/wp/why3+ shall provide and the associated files in sub-directory \verb+share/wp/why3+ shall provide
all the necessary hints for extending the capabilities of \textsf{Frama-C/WP} in a similar way. all the necessary hints for extending the capabilities of \textsf{Frama-C/WP} in a similar way.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment