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



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