--- layout: fc_discuss_archives title: Message 9 from Frama-C-discuss on July 2019 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] Help with -wp-init-const and static evaluation of constants



On 18/07/2019 07:14, Virgile Prevosto wrote:
> //@ assert c1 == 300;
>
> at the beginning of the function and everything gets proved.

That seems to work, but is unacceptable - the whole point of having 
named constants (especially a set of them where the values depend on 
each other) is to avoid having literal "magic numbers" all over the place.

  - Rod


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20190718/4cc8b637/attachment.html>