Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frama-C Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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 Website
Commits
2b9cadf6
Commit
2b9cadf6
authored
4 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
add page for counter-examples plugin
parent
746fb599
No related branches found
No related tags found
1 merge request
!105
add page for counter-examples plugin
Pipeline
#31708
passed
4 years ago
Stage: test
Stage: css
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_fc-plugins/counter-examples.md
+66
-0
66 additions, 0 deletions
_fc-plugins/counter-examples.md
with
66 additions
and
0 deletions
_fc-plugins/counter-examples.md
0 → 100644
+
66
−
0
View file @
2b9cadf6
---
layout
:
plugin
title
:
Counter-Examples
description
:
Counter-example generation from failed proof attempts
key
:
specifications
distrib_mode
:
proprietary
---
## Overview
The
**Counter-Examples**
plug-in aims at providing counter-examples from failed
proof attempts by the
[
WP
](
wp.html
)
plug-in.
More precisely, it generates a test case for the C function under analysis from
the model given by the automated theorem prover
(currently, only Alt-Ergo is supported).
## Usage
Here are a few usage examples of the
**Counter-Examples**
plug-in:
```
frama-c -wp [WP options] -then -ce-unknown
```
This will generate counter-examples for any annotations marked with
*Unknown*
status by WP.
```
frama-c -eva [Eva options] -then -ce-alarms
```
This will try to generate a counter-example for each alarm generated by Eva.
Note, however, that in the absence of additional annotations, such as function
contracts and loop invariants, the context in which the counter-example is
searched for will be too broad, and the generated counter-examples might be
irrelevant.
Other options are listed in the
`README.md`
and via the command-line option
`-ce-help`
.
Counter-Examples also includes some GUI features, such as popup menu entries
and a panel listing all generated counter-examples, with highlighting features.
## Technical Notes
-
Since the logical theories in which WP's proof obligations are expressed are
undecidable, the logical model might be only partial. Namely, provers aim at
being correct (when they answer that the property is true, this is always the
case), and the price to pay is incompleteness (when they give a model that
might falsify the property, the model might be spurious).
-
The Counter-Examples plug-in itself is not always able to take into account
all the information provided by the prover, which make the counter-example
generated at the C level less conmplete.
## Dependencies
Counter-Examples depends mainly on results of the
[
WP
](
wp.html
)
plug-in.
A few options depend on
[
Eva
](
eva.html
)
.
## Contact
The plug-in is currently available under a proprietary licence.
For any questions, remarks or suggestions, please contact
[
Virgile Prevosto
](
mailto:virgile.prevosto@cea.fr?subject=[Counter-Examples]
)
.
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