Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
pub
frama-c
Commits
5984984f
Commit
5984984f
authored
2 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[doc] start moving documentation of @calls from WP to userman
parent
db4476ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/userman/user-acsl.tex
+23
-0
23 additions, 0 deletions
doc/userman/user-acsl.tex
doc/userman/userman.tex
+1
-0
1 addition, 0 deletions
doc/userman/userman.tex
src/plugins/wp/doc/manual/wp_plugin.tex
+5
-5
5 additions, 5 deletions
src/plugins/wp/doc/manual/wp_plugin.tex
with
29 additions
and
5 deletions
doc/userman/user-acsl.tex
0 → 100644
+
23
−
0
View file @
5984984f
\chapter
{
\acsl
extensions
}
\label
{
cha:acsl-extensions
}
\section
{
Handling indirect calls with
\texttt
{
calls
}}
\label
{
acsl:calls
}
In order to help plug-ins support indirect calls (i.e. calls through
a function pointer), an
\acsl
extension is provided. It is introduced
by keyword
\lstinline
|calls| and can be placed before
a statement with an indirect call to give the list of
functions that may be the target of the call. As an example,
\begin{ccode}
/*@ calls f1, f2, ... , fn */
*f(args);
\end{ccode}
indicates that the pointer
\lstinline
|f| can point to any one of
\lstinline
|f1|,
\lstinline
|f2|, ...,
\lstinline
|fn|.
It is in particular used by the WP plug-in (see
\cite
{
wp
}
for more information).
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "userman"
%%% End:
This diff is collapsed.
Click to expand it.
doc/userman/userman.tex
+
1
−
0
View file @
5984984f
...
...
@@ -62,6 +62,7 @@ Baudin, Mickaël Delahaye, Philippe Hermann, Benjamin Monate and Dillon Pariente
\include
{
user-start
}
\include
{
user-plugins
}
\include
{
user-sources
}
\include
{
user-acsl
}
\include
{
user-analysis
}
\include
{
user-properties
}
\include
{
user-services
}
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/doc/manual/wp_plugin.tex
+
5
−
5
View file @
5984984f
...
...
@@ -1043,11 +1043,11 @@ weakest precondition calculus.
\subsubsection
{
ACSL extension
\texttt
{
@calls
}}
\label
{
acsl:calls
}
The handling of functions pointers is done via the ACSL code annotatio
n
extension
\verb
+
@calls
+
. For each call to a function pointer
\verb
+
fp
+
in
the
instruction or block under the annotation
\verb
+
calls f1,\ldots,fn
+
,
\verb
+
fp
+
is required to belongs to the set
\verb
+
f1,\ldots,fn
+
and
a case analysis is performed with the contract of
each provided function.
Frama-C provides an ACSL extension
\texttt
{
@calls
}
that can be writte
n
before an indirect call to indicate which functions can be the target
of
the
pointer (see
\cite
{
userman
}
for more information). Upon encountering
such annotation, WP will perform a case analysis with the contract of
each provided function.
For example:
...
...
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