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] New Specification Examples


  • Subject: [Frama-c-discuss] New Specification Examples
  • From: yannick.moy at gmail.com (Yannick Moy)
  • Date: Tue Oct 14 15:04:00 2008
  • In-reply-to: <565DBA90B61C4EA99DF27E1709C4E101@AHARDPLACE>
  • References: <41A1C9B7510644ABBFFD7ABB57065E88@AHARDPLACE> <48F47FE2.4080308@inria.fr> <565DBA90B61C4EA99DF27E1709C4E101@AHARDPLACE>

Hi,

I checked your example with the current version of Frama-C, and it is proved
correct. Frama-C sticks to the semantics of C which, contrary to what you
say, returns the number of array elements between [a] and [b] for the
pointer difference [b - a]. Thus, your last example with sizeof is
incorrect.

About sizeof, the Helium release aborts as well. The nest release corrects
this problem by constant folding the value of sizeof expressions.

Cheers
-- 
Yannick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20081014/9c0fc030/attachment.htm