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 173
    • Issues 173
    • 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
  • #268
Closed
Open
Issue created Feb 12, 2018 by Jochen Burghardt@burghardt

loop assigns clause ginored under strange circumstances

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


Id Project Category View Due Date Updated
ID0002366 Frama-C Plug-in > clang public 2018-02-12 2018-02-12
Reporter Jochen Assigned To virgile Resolution open
Priority normal Severity minor Reproducibility always
Platform Sulfur-20171101 OS - OS Version Ubuntu 17.10
Product Version Frama-C 16-Sulfur Target Version - Fixed in Version -

Description :

Running "frama-c -wp reverse_cpp.cpp" on the attached program reports

reverse_cpp.cpp:13:37: Ambiguity when choosing overloaded function Rev. reverse_cpp.cpp:16:[wp] warning: Missing assigns clause (assigns 'everything' instead)

For the 1st message, cf. #2364, using a similar program. The 2nd message disappears if (1) the file is renamed to "reverse_cpp.c", (2) the "assert" clause in line 10 is removed, (3) the "loop invariant" clause in line 13 is removed, or (4) the (possibly imaginary, cf. #2364) "Rev" ambiguity is resolved by removing one of the overloaded predicate definitions in lines 3 and 5.

Attachments

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