Skip to content
GitLab
Projects Groups Topics 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
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 171
    • Issues 171
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • 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
  • #1551
Closed
Open
Issue created Apr 23, 2009 by David Delmas@ddelmas

code normalisation issue when return variable is named __retres

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


Id Project Category View Due Date Updated
ID0000059 Frama-C Kernel public 2009-04-23 2014-02-12
Reporter ddelmas Assigned To monate Resolution fixed
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C Lithium-20081201 Target Version - Fixed in Version Frama-C Beryllium-20090601-beta1

Description :

"frama-c file.c -print" outputs non-compilable code for examples such as the following :

float g() { double __retres=2; return __retres; }

On this example, the output is the following :

float g(void) { double __retres ; float __retres ;

{__retres = (double )2; __retres = (float )__retres; return (__retres);}

}

Because of the normalisation scheme, variable __retres is being defined twice, with conflicting types.

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