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 informatik.htw-dresden.de (Boris Hollas)
- Date: Wed, 07 Dec 2011 16:10:17 +0100
- In-reply-to: <CAC3Lx=Y-vLYLcqaWCBrTnTf10VtqqDORrV9eeXkhqYt-gy+-HA@mail.gmail.com>
- References: <CAC3Lx=aPPQOx6_pVXvyvy2qwCmzTPK8iJpk8rqR05R=Dr7AVbA@mail.gmail.com> <4EDF715E.5010601@cea.fr> <CAC3Lx=Y-vLYLcqaWCBrTnTf10VtqqDORrV9eeXkhqYt-gy+-HA@mail.gmail.com>
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) { account_count++; 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, Boris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20111207/4c99573c/attachment.htm>
- References:
- [Frama-c-discuss] Status of global invariant in Jessie, WP and Value Analysis?
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Status of global invariant in Jessie, WP and Value Analysis?
- From: Julien.Signoles at cea.fr (Julien Signoles)
- [Frama-c-discuss] Status of global invariant in Jessie, WP and Value Analysis?
- From: dmentre at linux-france.org (David MENTRE)
- [Frama-c-discuss] Status of global invariant in Jessie, WP and Value Analysis?
- Prev by Date: [Frama-c-discuss] Status of global invariant in Jessie, WP and Value Analysis?
- Next by Date: [Frama-c-discuss] ACSL Parsing
- Previous by thread: [Frama-c-discuss] Status of global invariant in Jessie, WP and Value Analysis?
- Next by thread: [Frama-c-discuss] Status of global invariant in Jessie, WP and Value Analysis?
- Index(es):