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
68c6160c
Commit
68c6160c
authored
3 years ago
by
Andre Maroneze
Committed by
Virgile Prevosto
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Doc] Eva manual: improvements to ACSL quick guide after review
parent
a032c35e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/value/main.tex
+6
-2
6 additions, 2 deletions
doc/value/main.tex
with
6 additions
and
2 deletions
doc/value/main.tex
+
6
−
2
View file @
68c6160c
...
...
@@ -6209,7 +6209,8 @@ is presented below. As a reminder, \verb+strcat(d, s)+ appends the string
@ requires valid
_
read
_
string(dest);
@ requires
\valid
(dest+(strlen(dest)..strlen(dest)+strlen(src)));
@ ensures
\result
== dest;
@ assigns dest[strlen(dest)..strlen(dest)+strlen(src)]
\from
src[0..strlen(src)];
@ assigns dest[strlen(dest)..strlen(dest)+strlen(src)]
@
\from
src[0..strlen(src)];
@ assigns
\result
\from
dest;
@*/
char *strcat(char *dest, const char *src);
...
...
@@ -6364,7 +6365,9 @@ This is (or was) the actual, full specification of the function in \FramaC's
standard library. It contains 3 behaviors, separated according to the
finiteness of the input value: finite, infinite, or NaN (
{
\em
not a number
}
).
Each behavior has an
{
\em
assumes
}
clause, which is the precondition for
Each behavior has a named
\footnote
{
Named predicates are an ACSL feature; names,
or
{
\em
ids
}
, are described in Section~
\ref
{
sec:acsl-guide-complements
}
,
{
\em
ACSL ids
}
.
}
{
\em
assumes
}
clause, which is the precondition for
that behavior to be
{
\em
active
}
. ACSL allows several behaviors to be active
at the same time, but in practice, having disjoint behaviors (only a single
behavior active at any time) simplifies reasoning. When behaviors are disjoint,
...
...
@@ -6461,6 +6464,7 @@ it {\em always} refers to a logic function; it is not possible to call
a C function in an ACSL annotation.
\section
{
(Optional) Syntax Complements
}
\label
{
sec:acsl-guide-complements
}
We present here a few more details about ACSL syntax; you may skip this until
you are more familiar with the rest of the guide.
...
...
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