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] Status of global invariant in Jessie, WP and Value Analysis?

  • Subject: [Frama-c-discuss] Status of global invariant in Jessie, WP and Value Analysis?
  • From: hollas at (Boris Hollas)
  • Date: Wed, 07 Dec 2011 16:10:17 +0100
  • In-reply-to: <>
  • References: <> <> <>

On Wed, 2011-12-07 at 15:36 +0100, David MENTRE wrote:

> * Use an "atomic update" construct to avoid check strong invariant
> between the two statements. I agree this approach might open a can of
> worms. :-)

that's how it's done in Spec#. For your example, assuming a global
invariant access_count > 3 <==> locked == 1:

// access_count = 3 and locked == 0 here
// strong invariant holds here
expose(this) {
  locked = 1;
// strong invariant holds here again

In addition, calling a method of an object B, that does not know
anything about the invariants of object A, might break the invariant of
object A. To ensure modular verification, Spec# therefore requires that
such method calls are also enclosed in an expose-block.

In his most recent verifier, Dafny, Rustan Leino doesn't use
ownership-based invariants anymore.
Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>