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] Some information on invariant needs

  • Subject: [Frama-c-discuss] Some information on invariant needs
  • From: hollas at (Boris Hollas)
  • Date: Fri, 05 Oct 2012 19:59:37 +0200
  • In-reply-to: <>
  • References: <> <> <>

On 05.10.2012 16:56, David MENTRE wrote:
>> Note that type invariants work on types, not on individual variables. So you
>> can't uses them for the global variables in your examples.
> But the same approach could be used to annotate each function's pre
> and post-condition with the logic formula corresponding to the global
> invariant. An added condition would be to verify that the initial

That's indeed what happens, however only for the functions's formal 
parameters. This avoids unnecessary contracts. Global variables used by 
a function would have to be considered as auxiliary parameters, which 
requires more work.

I think that invariants are very useful and that weak invariants are 
easier to use than strong invariants. For the latter, see how this is 
handled in Spec# and Vcc.

Best regards,