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: virgile.prevosto at cea.fr (Virgile Prevosto)
- Date: Fri, 18 Feb 2011 13:23:56 +0100
- In-reply-to: <e11e2d4c2989e01ee7018ea76faa6672.squirrel@webmail.informatik.htw-dresden.de>
- References: <e11e2d4c2989e01ee7018ea76faa6672.squirrel@webmail.informatik.htw-dresden.de>
Le ven. 18 f?vr. 2011 12:42:25 CET, "Boris Hollas" <hollas at informatik.htw-dresden.de> a ?crit : > > /*@ 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". > I'm not sure of what you mean by ensures unchanged{P,H}(..). In an ensures clause, the only label you have are Old, Pre, Post and Here. In the declaration of the predicate, {P,H} are parameters, so that you can give them any name. On the other hand, when you use the predicate, you must instantiate these parameters with labels that exist in the context. That said, the error should be logic label P not found. Could you give a complete example that reproduce your issue? -- Virgile Prevosto Ing?nieur-Chercheur, CEA, LIST Laboratoire de S?ret? des Logiciels +33/0 1 69 08 82 98
- References:
- [Frama-c-discuss] Problem with predicate and location labels
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- [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):