--- layout: fc_discuss_archives title: Message 57 from Frama-C-discuss on October 2008 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] New Specification Examples



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