Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] different range in the loop depending de type


  • Subject: [Frama-c-discuss] different range in the loop depending de type
  • From: stephane.duprat at atosorigin.com (Stéphane Duprat)
  • Date: Fri, 06 Nov 2009 22:56:42 +0100

Hi,

There's something curious in this exemple.
Depending the type of i, the range is not the same.
The range of i in the loop is [0..10] (for int) or [0..15] for char or
short.
any idea ?

St?phane


void main(void)
{
char i=0;
int j=0;
while (i<10) i++;
while (j<10) j++;
}

[value] ====== VALUES COMPUTED ======
[value] Values for function main:
i ? {10; 11; 12; 13; 14; 15; }
j ? {10; }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20091106/ddd57e22/attachment.htm