Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 209
    • Issues 209
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #1024

Closed
Open
Created Jun 06, 2014 by mantis-gitlab-migration@mantis-gitlab-migration

WP doesn't warn about volatile variables

ID0001801: This issue was created automatically from Mantis Issue 1801. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0001801 Frama-C Plug-in > wp public 2014-06-06 2014-06-06
Reporter Anne Assigned To correnson Resolution open
Priority normal Severity major Reproducibility have not tried
Platform - OS - OS Version -
Product Version Frama-C Neon-20140301 Target Version - Fixed in Version -

Description :

I noticed that WP doesn't handle volatile variables, which is not a problem, but the problem is that it proves properties about them without any warning at all, which a quiet embarrassing I suppose.

Steps To Reproduce :

$ frama-c -wp-fct main test_volatile.c

volatile int v = 10; //@ ensures \result == 10; int main (void) { int x = v; //@ assert v == 10; v = 3; //@ assert v == 3; return x; }

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking