Skip to content

GitLab

  • Menu
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 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
  • #282

Closed
Open
Created Jan 31, 2018 by Jens Gerlach@gerlach

no diagnostics on wrong keyword

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


Id Project Category View Due Date Updated
ID0002351 Frama-C Plug-in > clang public 2018-01-31 2018-01-31
Reporter jens Assigned To virgile Resolution open
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C 16-Sulfur Target Version - Fixed in Version -

Description :

The attached ACSL/C code contains a typo in the assigns clause: "assign" instead of "assigns".

Frama-Clang provides no diagnostic message on this

frama-c -wp -wp-rte wrong_keyword.cpp [kernel] Parsing wrong_keyword.cpp (external front-end) Now output intermediate result [rte] annotating function foo [wp] 0 goal scheduled [wp] Proved goals: 0 / 0

When processed as a normal C file by Frama-C/WP a more appropriated message is shown

frama-c -wp -wp-rte wrong_keyword.c [kernel] Parsing wrong_keyword.c (with preprocessing) wrong_keyword.c:5:[kernel] user error: unexpected token 'a' [kernel] user error: stopping on file "wrong_keyword.c" that has errors. Add '-kernel-msg-key pp' for preprocessing command. [kernel] Frama-C aborted: invalid user input.

Attachments

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