Frama-C Bug Tracking System

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000798Frama-CPlug-in > value analysispublic2011-04-17 10:252014-02-12 16:59
Reporterpascal 
Assigned Topascal 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionFrama-C Carbon-20110201 
Target VersionFixed in VersionFrama-C Nitrogen-20111001 
Summary0000798: Serial conversions in function result (csmith)
Descriptionshort x = -10;
int y, z, t;

unsigned short f(void)
{
  return x;
}

unsigned short g(void)
{
  unsigned short l = *(unsigned short*)&x;
  return l;
}

main(){
  y = *(unsigned short*)&x;
  z = f();
  t = g();
}

y and z are computed correctly, but t is wrong:

[value] Values for function main:
          y IN {65526; }
          z IN {65526; }
          t IN {-10; }
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004804)
pascal (reporter)
2014-02-12 16:59

Fix committed to stable/neon branch.

- Issue History
Date Modified Username Field Change
2011-04-17 10:25 pascal New Issue
2011-04-17 10:25 pascal Status new => assigned
2011-04-17 10:25 pascal Assigned To => pascal
2011-04-17 10:37 svn Checkin
2011-04-17 10:37 svn Status assigned => resolved
2011-04-17 10:37 svn Resolution open => fixed
2011-10-10 14:13 signoles Fixed in Version => Frama-C Nitrogen-20111001
2011-10-10 14:14 signoles Status resolved => closed
2014-02-12 16:59 pascal Note Added: 0004804
2014-02-12 16:59 pascal Status closed => resolved


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker