Skip to content
GitLab
Projects Groups Snippets
  • /
  • 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 174
    • Issues 174
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #518
Closed
Open
Issue created Aug 19, 2014 by mantis-gitlab-migration@mantis-gitlab-migration

WP detect a non-natural loop on a do-while(0) loop

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


Id Project Category View Due Date Updated
ID0001911 Frama-C Plug-in > wp public 2014-08-19 2016-03-07
Reporter Anne Assigned To correnson Resolution open
Priority normal Severity minor Reproducibility have not tried
Platform - OS - OS Version -
Product Version - Target Version - Fixed in Version -

Description :

In the attached example, the do-while(0) "false" loop makes the WP fail with the message:

wp2.c:8:[wp] warning: calculus failed on strategy for 'main', behavior 'default!', all properties, both assigns or not because unsupported non-natural loop without invariant property. (abort)

Maybe it can be detected that this is not a loop in fact ?

Additional Information :

It is ok with -wp-invariants option.

Steps To Reproduce :

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

Attachments

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