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] Problem with predicate and location labels
- Subject: [Frama-c-discuss] Problem with predicate and location labels
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- Date: Fri, 18 Feb 2011 12:42:25 +0100 (CET)
On Thu, 2011-02-17 at 16:16 +0100, BAUDIN Patrick wrote: Perhaps you needs to defines predicates having pointers as arguments. > > For example, contract > //@ensures x==\old(x) ; > bar(); > > can be defined as follow: > //@predicate bar_spec{L1,L2}(int * p) = \at(*p, L1) == at(*p, L1); > //@ensures bar_spec{Here,Old}(&x) ; > bar(); > With /*@ predicate unchanged{P,H}(bool* p) = \at(*p, P) <==> \at(*p, H); */ and ensures unchanged{P,H}(&this->active) I get "user error: no label in the context". -- Regards, Boris
- Follow-Ups:
- [Frama-c-discuss] Problem with predicate and location labels
- From: virgile.prevosto at cea.fr (Virgile Prevosto)
- [Frama-c-discuss] Problem with predicate and location labels
- Prev by Date: [Frama-c-discuss] Type of ghost variables
- Next by Date: [Frama-c-discuss] Type of ghost variables
- Previous by thread: [Frama-c-discuss] Problem with predicate and location labels
- Next by thread: [Frama-c-discuss] Problem with predicate and location labels
- Index(es):