Frama-C Bug Tracking System - Frama-C
View Issue Details
0000244Frama-CPlug-in > Evapublic2009-09-14 14:142014-02-12 16:56
Reporterpascal 
Assigned Topascal 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionFrama-C Beryllium-20090901 
Target VersionFixed in VersionFrama-C Carbon-20101201-beta1 
Summary0000244: block-local variables not handled correctly in conjunction with -ulevel
Descriptionint R,*p;

void main(void)
{
  int a,i;
  a=2;
  for(i=0; i<2; i++)
  {
    int u=a;
    p = &u;
  }
  R = *p;
}

Commandline:
bin/toplevel.opt -val u.c -ulevel 5

Result:
          R ? {2; }

Should be:
          NON TERMINATING FUNCTION
TagsNo tags attached.
Attached Files

Notes
(0001135)
pascal   
2010-09-08 15:07   
This sample program should also emit an "assert" alarm corresponding to the undefined behavior.

Issue History
2009-09-14 14:14pascalNew Issue
2009-09-14 14:14pascalStatusnew => assigned
2009-09-14 14:14pascalAssigned To => pascal
2009-09-14 14:15pascalAssigned Topascal => virgile
2009-09-28 09:22svn
2009-09-28 09:22svnStatusassigned => resolved
2009-09-28 09:22svnResolutionopen => fixed
2010-04-13 15:30signolesStatusresolved => new
2010-04-13 15:31signolesStatusnew => closed
2010-04-13 15:33signolesFixed in Version => Frama-C Boron
2010-09-08 15:07pascalAssigned Tovirgile => pascal
2010-09-08 15:07pascalNote Added: 0001135
2010-09-08 15:07pascalStatusclosed => feedback
2010-09-08 15:07pascalResolutionfixed => reopened
2010-09-08 15:10svn
2010-09-08 15:12pascalStatusfeedback => resolved
2010-09-08 15:12pascalResolutionreopened => fixed
2010-12-10 15:45signolesFixed in VersionFrama-C Boron-20100401 => Frama-C Carbon-20101201-beta1
2010-12-17 19:37signolesStatusresolved => closed
2013-12-19 01:12pascalSource_changeset_attached => framac master 98d02437
2013-12-19 01:13Source_changeset_attached => framac master 066b7196
2014-02-12 16:55pascalSource_changeset_attached => framac stable/neon 98d02437
2014-02-12 16:56Source_changeset_attached => framac stable/neon 066b7196
2018-01-12 14:26signolesCategoryPlug-in > value analysis => Plug-in > Eva