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
cbbe71fd
Commit
cbbe71fd
authored
11 years ago
by
Julien Signoles
Browse files
Options
Downloads
Patches
Plain Diff
[E-ACSL] fixed README
parent
607e2e0c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/e-acsl/README
+0
-38
0 additions, 38 deletions
src/plugins/e-acsl/README
with
0 additions
and
38 deletions
src/plugins/e-acsl/README
+
0
−
38
View file @
cbbe71fd
...
...
@@ -106,44 +106,6 @@ $ echo $?
3) More advanced examples are available in the user manual and in the directory
tests/e-acsl-runtime.
===============================================================================
ADVANCED USAGE
===============================================================================
This E-ACSL plug-in is fully integrated within Frama-C: any standard Frama-C
options may be used in order to customize the Frama-C execution. Read the
Frama-C User Manual for additional information.
The list of E-ACSL option is available through the option -e-acsl-help:
$ frama-c -e-acsl-help
As this example is trivial, the generated code does not require to be linked
against GMP. It is usually not the case.
2) Now consider the following C program:
<false.i>
int main(void) {
int x = 0;
/*@ assert x+1 == 0; */
return 0;
}
Since the assertion is always false, the generated code fails at runtime:
$ frama-c -e-acsl false.i -then-on e-acsl -print -ocode gen_false.c
$ gcc gen_false.c -lgmp -o gen_false
$ ./gen_false
Assertion failed at line 7.
The failing predicate is:
(x+1 == 0).
$ echo $?
1
As this example uses arithmetic's in annotations, the generated code must be
linked against GMP (GCC's option -lgmp) to be able to produce an executable.
3) More advanced examples are available in directory tests/e-acsl-runtime. Note
that these examples never fail at runtime: all the annotations are valid.
===============================================================================
COMPATIBILITY WITH PREVIOUS RELEASES
===============================================================================
...
...
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